Run self-versioning from Dockerhub

This commit is contained in:
Layla 2019-12-20 12:16:11 -05:00
parent d74b0ad05d
commit 9876ad734f

6
Jenkinsfile vendored
View File

@ -13,12 +13,14 @@ pipeline {
//Image tag to use for self-versioning
SELF_SEMVER_TAG = "master"
}
}
stages {
//Runs versioning in docker container
stage('Self Version') {
steps {
sh("docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}")
withCredentials([usernamePassword(credentialsId: env.DOCKER_CREDENTIALS, usernameVariable: 'DOCKER_USERNAME', passwordVariable: 'DOCKER_PASSWORD')]) {
sh("docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}")
}
runAutoSemver("rbnops/auto-semver:${SELF_SEMVER_TAG}")
}
post{