declarative try
jenkinsfiles_play/declarative_branch This commit looks good
Details
jenkinsfiles_play/declarative_branch This commit looks good
Details
parent
09548f7f90
commit
59cd71e13f
@ -1,15 +1,15 @@
|
|||||||
#!/usr/bin/env groovy
|
pipeline {
|
||||||
|
agent any
|
||||||
|
|
||||||
properties(
|
parameters {
|
||||||
[
|
booleanParam(defaultValue: true, description: 'blabla?', name: 'userFlag')
|
||||||
string(name: 'Name', defaultValue: 'denes'),
|
}
|
||||||
string(name: 'Age', defaultValue: '34')
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
node('master') {
|
stages {
|
||||||
stage('Print params') {
|
stage("foo") {
|
||||||
sh "echo "${params.Name}"
|
steps {
|
||||||
sh "echo "${params.Age}"
|
echo "flag: ${params.userFlag}"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue