Atualizar 'PipelineTestJenkins'

master
Alberto Trevezani 2020-01-22 18:22:53 +00:00
parent 5a800a48e5
commit 5cf5584950
1 changed files with 9 additions and 26 deletions

View File

@ -20,36 +20,19 @@
} }
stages { stages {
stage('1') { stage('api-test-1') {
steps { when {
if (${params.apitest1}) { expression { return ${params.apitest1} }
echo "Teste 1"
}
sh 'exit 0'
} }
steps {
echo "Teste 1"
}
} }
stage('2') { stage('info') {
steps {
script {
try {
sh 'exit 0'
} finally {
echo "... finished"
}
}
}
}
stage('3') {
when {
expression {
return build_ok;
}
}
steps { steps {
sh 'exit 0' echo "api-test-1: ${params.api-test-1}"
echo "api-test-2: ${params.api-test-2}"
} }
} }
} }