Adicionar 'PipelineTestJenkins'
parent
c074c21c42
commit
eb8bc6b66d
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue