Adicionar 'PipelineTestJenkins'

master
Alberto Trevezani 2020-01-22 18:10:14 +00:00
parent c074c21c42
commit eb8bc6b66d
1 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,38 @@
import hudson.plugins.accurev.*
def build_ok = true
pipeline {
agent any
stages {
stage('1') {
steps {
sh 'exit 0'
}
}
stage('2') {
steps {
script {
try {
sh 'exit 0'
} finally {
echo "... finished"
}
}
}
}
stage('3') {
when {
expression {
return build_ok;
}
}
steps {
sh 'exit 0'
}
}
}
}