Files
jenkinsdeclarativepipelines/03-multipleProperties.groovy
Guillem Hernández Sola 25ada802f4 Added some scripts
2017-04-04 09:58:42 +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"
}
}
}
}