Jenkins build
Some checks failed
test/timeline-frontend/pipeline/head There was a failure building this commit
Some checks failed
test/timeline-frontend/pipeline/head There was a failure building this commit
This commit is contained in:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@@ -133,16 +133,11 @@ pipeline {
|
||||
stage('Push Docker Image') {
|
||||
steps {
|
||||
script {
|
||||
withCredentials([usernamePassword(credentialsId: 'docker-registry-credentials',
|
||||
usernameVariable: 'DOCKER_USER',
|
||||
passwordVariable: 'DOCKER_PASS')]) {
|
||||
sh 'echo $DOCKER_PASS | docker login $DOCKER_REGISTRY -u $DOCKER_USER --password-stdin'
|
||||
sh "docker push ${DOCKER_IMAGE}:${env.IMAGE_TAG}"
|
||||
sh "docker push ${DOCKER_IMAGE}:latest"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Deploy to Environment') {
|
||||
parallel {
|
||||
|
||||
Reference in New Issue
Block a user