Added TODOS for Jenkinsfile
This commit is contained in:
parent
079d4e7aab
commit
c675da7379
1 changed files with 3 additions and 18 deletions
21
simple-pipeline/Jenkinsfile
vendored
21
simple-pipeline/Jenkinsfile
vendored
|
|
@ -1,6 +1,3 @@
|
||||||
// NOTE, the "pipeline" directive/closure from the declarative pipeline syntax needs to include, or be nested outside,
|
|
||||||
// any "openshift" directive/closure from the OpenShift Client Plugin for Jenkins. Otherwise, the declarative pipeline engine
|
|
||||||
// will not be fully engaged.
|
|
||||||
pipeline {
|
pipeline {
|
||||||
options {
|
options {
|
||||||
// set a timeout of 30 minutes for this pipeline
|
// set a timeout of 30 minutes for this pipeline
|
||||||
|
|
@ -8,8 +5,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
agent {
|
agent {
|
||||||
node {
|
node {
|
||||||
// run this simple pipeline on jenkins 'master' node
|
// TODO: run this simple pipeline on jenkins 'master' node
|
||||||
label 'master'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -27,20 +23,9 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('stage 2') {
|
// TODO: ADD A STAGE THAT SAYS HELLO
|
||||||
steps {
|
|
||||||
// you can execute regular shell commands here
|
|
||||||
sh 'echo hello from stage 2!'
|
|
||||||
} // steps
|
|
||||||
} // stage
|
|
||||||
|
|
||||||
stage('manual approval') {
|
// TODO: ADD AN APPROVAL STAGE
|
||||||
steps {
|
|
||||||
timeout(time: 60, unit: 'MINUTES') {
|
|
||||||
input message: "Move to stage 3?"
|
|
||||||
} // input
|
|
||||||
} //steps
|
|
||||||
} // stage
|
|
||||||
|
|
||||||
stage('stage 3') {
|
stage('stage 3') {
|
||||||
steps {
|
steps {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue