-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbbb
56 lines (55 loc) · 1.55 KB
/
bbb
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
node('main'){
properties([
parameters([
choice(
choices: ['ONE', 'TWO', 'THREE', 'FOUR', 'FIVE'],
name: 'CHOCIE_Param'
),
booleanParam(
defaultValue: true,
description: '',
name: 'BOOLEAN'
),
text(
defaultValue: '''
default value for Multi Line
''',
name: 'MULTI_LINE_STRING'
),
booleanParam(
defaultValue: true,
description: '',
name: 'Update_Param'
),
string(
defaultValue: 'Siva AWS #$@!%',
name: 'STRING_PARAMETER',
trim: true
)
])
])
if(params.Update_Param){
println('This Update_Param flag was set to True. SO its only going to update parameters and skip code execution part')
currentBuild.result = 'SUCCESS'
return
}
stage('Stage 1'){
if(params.BOOLEAN == true){
println("As value is " + BOOLEAN)
timeout(unit: 'SECONDS', time: 60) {
def returnValue = input message: 'Need some input', submitter: '123456',
parameters: [
string(defaultValue: '', description: '', name: 'Name'),
choice(choices: ['Siva' , 'Vignesh'], name: 'CHOCIE_Param')
]
println(returnValue)
}
}
}
stage('Stage 2'){
println('Hello CHOCIE-Param!! ' + CHOCIE_Param)
println("Hello BOOLEAN!! $BOOLEAN")
println("Hello MULTI-LINE-STRING!! ${MULTI_LINE_STRING}")
println('Hello STRING-PARAMETER!! ' + STRING_PARAMETER)
}
}