Skip to content

Commit ef66c3c

Browse files
authored
Update Jenkinsfile-parameters.groovy
1 parent a6d7db0 commit ef66c3c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Jenkinsfile-parameters.groovy

+2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ pipeline {
44
parameters {
55
string defaultValue: 'rick', description: 'just for testing', name: 'name', trim: true
66
booleanParam defaultValue: false, description: 'You can use this flag to debug your Pipeline', name: 'debug'
7+
choice choices: ['v1.18.8', 'v1.18.9'], description: 'Please choose the target Kubernetes version', name: 'kubernetesVersion'
78
}
89

910
stages{
1011
stage('simple'){
1112
steps{
1213
echo "My name is ${params.name}."
14+
echo "Target Kubernetes version is " + params.kubernetesVersion
1315

1416
script {
1517
if ("${params.debug}" == "true") {

0 commit comments

Comments
 (0)