Bugfix intenum

Fix creds

attempt documented workaround

Set system prop

Use privileged container to work around Jenkins bug

Remove property set
This commit is contained in:
2020-11-22 23:15:47 -05:00
parent 11a4ff35fc
commit f3bc97206a
3 changed files with 20 additions and 14 deletions

7
Jenkinsfile vendored
View File

@ -1,4 +1,4 @@
library('pipeline-library')
library('pipeline-library@bugfix/durable-task-workaround')
pipeline {
options { timestamps() }
@ -18,7 +18,7 @@ pipeline {
stage('Self Version') {
steps {
withCredentials([usernamePassword(credentialsId: env.DOCKER_CREDENTIALS, usernameVariable: 'DOCKER_USERNAME', passwordVariable: 'DOCKER_PASSWORD')]) {
sh("docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}")
sh("docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD")
}
runAutoSemver("rightbrainnetworks/auto-semver:${SELF_SEMVER_TAG}")
}
@ -59,6 +59,7 @@ pipeline {
agent {
docker {
image "rightbrainnetworks/auto-semver:${env.VERSION}"
args "--privileged"
}
}
steps
@ -85,7 +86,7 @@ pipeline {
// Authenticate & push to DockerHub
withCredentials([usernamePassword(credentialsId: env.DOCKER_CREDENTIALS, usernameVariable: 'DOCKER_USERNAME', passwordVariable: 'DOCKER_PASSWORD')]) {
sh("""
docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker push rightbrainnetworks/auto-semver:${env.VERSION}
""")
}