Commit 35b1dbdd authored by Marco Ortiz's avatar Marco Ortiz

Preparación para la integración con el nuevo jenkins

parent 6b93123b
pipeline {
agent any
environment {
include_docker = 'no'
include_docker = false
IMAGE = readMavenPom().getArtifactId()
VERSION = readMavenPom().getVersion()
......@@ -78,7 +78,7 @@ pipeline {
}
stage('Build Docker Image') {
when {
expression { environment name: 'include_docker', value: 'yes' }
expression { environment name: 'include_docker', value: true }
}
steps {
withMaven(maven: 'Maven', mavenSettingsConfig: '2ea57b6f-d6f0-42bc-9770-f24d4170a439') {
......@@ -88,7 +88,7 @@ pipeline {
}
stage('Deploy Image') {
when {
expression { environment name: 'include_docker', value: 'yes' }
expression { environment name: 'include_docker', value: true }
}
steps{
script {
......@@ -102,7 +102,7 @@ pipeline {
}
stage('Remove Unused docker image') {
when {
expression { environment name: 'include_docker', value: 'yes' }
expression { environment name: 'include_docker', value: true }
}
steps {
sh "docker rmi ${imagename}:latest"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment