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
|
//Image tag to use for self-versioning
|
||||||
SELF_SEMVER_TAG = "master"
|
SELF_SEMVER_TAG = "master"
|
||||||
|
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
//Runs versioning in docker container
|
//Runs versioning in docker container
|
||||||
stage('Self Version') {
|
stage('Self Version') {
|
||||||
steps {
|
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}")
|
runAutoSemver("rbnops/auto-semver:${SELF_SEMVER_TAG}")
|
||||||
}
|
}
|
||||||
post{
|
post{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user