forked from sathishbob/jenkins_test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile1
29 lines (28 loc) · 865 Bytes
/
Jenkinsfile1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
pipeline {
agent any
stages {
stage('Setup Parameter') {
steps {
script {
properties([
parameters([
choice(
choices: ["dev", "uat", "prod"],
name: "ENVIRONMENT"
),
string(
defaultValue: "training",
name: "STRING")
])
])
}
}
}
stage('print parameter') {
steps {
echo "Choice parameter is $ENVIRONMENT"
echo "String parameter is $STRING"
}
}
}
}