Update Jenkinsfile

This commit is contained in:
Mihai Georgescu 2023-11-29 10:55:21 +02:00 committed by GitHub
parent e4fd84de57
commit 0a9ac99617
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
Jenkinsfile vendored
View file

@ -92,7 +92,7 @@ pipeline {
echo "now we will tag the docker image for the main branch" echo "now we will tag the docker image for the main branch"
script { script {
def tagDockerImage = sh(script: 'docker tag imagine_spring_petclinic:0.1 mihaivalentingeorgescu/main:0.1', returnStatus: true) def tagDockerImage = sh(script: 'docker tag imagine_spring_petclinic:0.1 mihaivalentingeorgescu/main:0.1', returnStatus: true)
if (tagDockerImager == 0) { if (tagDockerImage == 0) {
echo "Docke tag ended successfully" echo "Docke tag ended successfully"
} else { } else {
error "Docker tag FAILED" error "Docker tag FAILED"