try2
jenkinsfiles_play/master This commit looks good
Details
jenkinsfiles_play/master This commit looks good
Details
parent
50e2d5d7e7
commit
d4d75c3ca8
@ -1,13 +1,17 @@
|
||||
#!/usr/bin/env groovy
|
||||
|
||||
properties(
|
||||
[
|
||||
booleanParam(defaultValue: true, description: '', name: 'userFlag')
|
||||
]
|
||||
)
|
||||
properties([
|
||||
parameters([
|
||||
booleanParam(defaultValue: false, description: 'dog', name: 'cat'),
|
||||
string(defaultValue: 'lisa', description: 'uninteresting', name: 'name', trim: false)
|
||||
])
|
||||
])
|
||||
|
||||
|
||||
|
||||
node('master') {
|
||||
stage('Print params') {
|
||||
echo "flag: ${params.userFlag}"
|
||||
echo "flag: ${params.cat}"
|
||||
echo "flag: ${params.name}"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue