forked from sheetalverma2/RPS-ANT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scripted-pipeline
43 lines (26 loc) · 1007 Bytes
/
scripted-pipeline
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
node {
//Declare a global variable for mvnHome
stage('Version') {
//build job: 'version-check'
}
stage('Environment') {
// build job: 'environment-check'
}
stage('Document') {
//build job: 'document-roshambo', parameters: [booleanParam(name: 'generate_javadoc', value: false), stringParam(name: 'javadoc_location', value: 'C:\\_javadoc00')]
}
stage('Compile'){
// build job: 'compile-roshambo'
}
stage('Acceptance') {
//def response = input message: 'UAT Tests', parameters: [choice(choices: 'Pass\nFail', description: 'Proceed or Abort?', name: 'Pass or Fail?')]
}
stage('Conclusion') {
def response = input message: 'Whatcha think?', parameters: [choice(choices: 'Yes\nNo', description: 'Proceed or Abort?', name: 'Wasn\'t that cool?')]
if (response=="Yes") {
echo "I agree!"
} else {
echo "You are hard to please."
}
}
}