declarative try
jenkinsfiles_play/declarative_branch This commit looks good Details

declarative_branch
Denes Matetelki 6 years ago
parent 09548f7f90
commit 59cd71e13f

22
Jenkinsfile vendored

@ -1,15 +1,15 @@
#!/usr/bin/env groovy
pipeline {
agent any
properties(
[
string(name: 'Name', defaultValue: 'denes'),
string(name: 'Age', defaultValue: '34')
]
)
parameters {
booleanParam(defaultValue: true, description: 'blabla?', name: 'userFlag')
}
node('master') {
stage('Print params') {
sh "echo "${params.Name}"
sh "echo "${params.Age}"
stages {
stage("foo") {
steps {
echo "flag: ${params.userFlag}"
}
}
}
}

Loading…
Cancel
Save