Files
jenkinsdeclarativepipelines/003-multipleProperties.groovy
Guillem Hernandez Sola 8d3b814b4a Added zero
2018-07-19 22:37:58 +02:00

22 lines
552 B
Groovy

pipeline {
agent any
parameters {
booleanParam(defaultValue: true, description: '', name: 'flag')
// TODO: Be prepared to change this to "stringParam" once we're on a new enough core.
string(defaultValue: '', description: '', name: 'SOME_STRING')
}
triggers {
cron('@daily')
}
options {
buildDiscarder(logRotator(numToKeepStr:'1'))
disableConcurrentBuilds()
}
stages {
stage("foo") {
steps {
echo "hello"
}
}
}
}