File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -198,19 +198,15 @@ def dotnet(Closure body){
198198
199199def deploy (Map args = [:]) {
200200 def secret = args. secret
201- def repo = getVaultSecret( secret : secret)
202- wrap([$ class : ' MaskPasswordsBuildWrapper ' , varPasswordPairs : [
203- [ var : ' REPO_API_KEY ' , password : repo . data . apiKey],
204- [var : ' REPO_API_URL ' , password : repo. data. url ],
205- ]]) {
206- if (isUnix() ) {
201+ dotnet(){
202+ def repo = getVaultSecret( secret : secret)
203+ wrap([$ class : ' MaskPasswordsBuildWrapper ' , varPasswordPairs : [
204+ [var : ' REPO_API_KEY ' , password : repo. data. apiKey ],
205+ [ var : ' REPO_API_URL ' , password : repo . data . url],
206+ ]] ) {
207207 withEnv([" REPO_API_KEY=${ repo.data.apiKey} " , " REPO_API_URL=${ repo.data.url} " ]) {
208208 sh(label : ' Deploy' , script : ' .ci/deploy.sh ${REPO_API_KEY} ${REPO_API_URL}' )
209209 }
210- } else {
211- withEnv([" REPO_API_KEY=${ repo.data.apiKey} " , " REPO_API_URL=${ repo.data.url} " ]) {
212- bat(label : ' Deploy' , script : ' .ci/deploy.bat ${REPO_API_KEY} ${REPO_API_URL}' )
213- }
214210 }
215211 }
216212}
You can’t perform that action at this time.
0 commit comments