Update Jenkinsfile

This commit is contained in:
Oleksandr Butenko 2021-06-13 14:23:55 +03:00 committed by GitHub
parent 80773dcf0e
commit 732770e625
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

9
Jenkinsfile vendored
View file

@ -1,4 +1,9 @@
pipeline {
environment {
registry = "sprientera/pet"
registryCredential = 'dockerhub_id'
dockerImage = ''
}
agent any
stages {
stage('Build') {
@ -10,7 +15,7 @@ pipeline {
}
stage('Build Docker Image') {
when {
branch 'master'
branch 'main'
}
steps {
script {
@ -23,7 +28,7 @@ pipeline {
}
stage('Push Docker Image') {
when {
branch 'master'
branch 'main'
}
steps {
script {