Skip to content

Commit adb907c

Browse files
authored
deploy from within container (#155)
1 parent 7696ed6 commit adb907c

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.ci/Jenkinsfile

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -198,19 +198,15 @@ def dotnet(Closure body){
198198

199199
def 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
}

0 commit comments

Comments
 (0)