forked from sathishbob/jenkins_test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkinsfile1
34 lines (29 loc) · 992 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
30
31
32
33
34
properties([pipelineTriggers([githubPush()])])
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"
}
}
}
}