You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
638 B
42 lines
638 B
pipeline {
|
|
agent any
|
|
|
|
parameters {
|
|
booleanParam(defaultValue: true, description: 'blabla?', name: 'userFlag')
|
|
}
|
|
|
|
stages {
|
|
stage("foo") {
|
|
steps {
|
|
echo "flag: ${params.userFlag}"
|
|
}
|
|
|
|
post {
|
|
always {
|
|
echo 'One way or another, I have finished'
|
|
}
|
|
success {
|
|
echo 'I succeeeded!'
|
|
}
|
|
unstable {
|
|
echo 'I am unstable :/'
|
|
}
|
|
failure {
|
|
echo 'I failed :('
|
|
}
|
|
changed {
|
|
echo 'Things were different before...'
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
stage('archiving test results') {
|
|
steps {
|
|
junit: 'testresults.xml'
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|