Commit 5daff1e8 authored by Marco Ortiz's avatar Marco Ortiz

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

parent 85006a00
...@@ -78,7 +78,7 @@ pipeline { ...@@ -78,7 +78,7 @@ pipeline {
} }
stage('Build Docker Image') { stage('Build Docker Image') {
when { when {
expression { include_docker == 'yes' } expression { environment name: 'include_docker', value: 'yes' }
} }
steps { steps {
withMaven(maven: 'Maven', mavenSettingsConfig: '2ea57b6f-d6f0-42bc-9770-f24d4170a439') { withMaven(maven: 'Maven', mavenSettingsConfig: '2ea57b6f-d6f0-42bc-9770-f24d4170a439') {
...@@ -88,7 +88,7 @@ pipeline { ...@@ -88,7 +88,7 @@ pipeline {
} }
stage('Deploy Image') { stage('Deploy Image') {
when { when {
expression { include_docker == 'yes' } expression { environment name: 'include_docker', value: 'yes' }
} }
steps{ steps{
script { script {
...@@ -102,7 +102,7 @@ pipeline { ...@@ -102,7 +102,7 @@ pipeline {
} }
stage('Remove Unused docker image') { stage('Remove Unused docker image') {
when { when {
expression { include_docker == 'yes' } expression { environment name: 'include_docker', value: 'yes' }
} }
steps { steps {
sh "docker rmi ${imagename}:latest" 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