Run self-versioning from Dockerhub
This commit is contained in:
parent
d74b0ad05d
commit
9876ad734f
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user