@@ -26,20 +26,22 @@ try {
2626 stage(" Build" ) {
2727 milestone 1
2828 if (env. BRANCH_NAME =~ / ^PR-/ ) {
29- userInput = input(message : ' Launch tests?' , parameters : [
30- choice(choices : ' yes\n no' , description : ' Run unit tests and code style checks' , name : ' launchUnitTests' ),
31- choice(choices : ' yes\n no' , description : ' Run end-to-end tests' , name : ' launchEndToEndTests' ),
32- choice(choices : ' no\n yes' , description : ' Enable Verbose mode' , name : ' verboseOutputs' ),
33- string(defaultValue : ' 50' , description : ' Number of dots per line' , name : ' dotsperline' ),
34- string(defaultValue : clients. join(' ,' ), description : ' Clients used to run end-to-end tests (comma separated values)' , name : ' clients' ),
35- string(defaultValue : ' 50' , description : ' Number of dots per line' , name : ' dotsperline' ),
36- ])
37-
38- launchUnitTests = userInput[' launchUnitTests' ]
39- launchEndToEndTests = userInput[' launchEndToEndTests' ]
40- clients = userInput[' clients' ]. tokenize(' ,' )
41- verboseOutputs = userInput[' verboseOutputs' ]
42- dotsPerLine = userInput[' dotsperline' ]
29+ timeout(time :5 , unit :' DAYS' ) {
30+ userInput = input(message : ' Launch tests?' , parameters : [
31+ choice(choices : ' yes\n no' , description : ' Run unit tests and code style checks' , name : ' launchUnitTests' ),
32+ choice(choices : ' yes\n no' , description : ' Run end-to-end tests' , name : ' launchEndToEndTests' ),
33+ choice(choices : ' no\n yes' , description : ' Enable Verbose mode' , name : ' verboseOutputs' ),
34+ string(defaultValue : ' 50' , description : ' Number of dots per line' , name : ' dotsperline' ),
35+ string(defaultValue : clients. join(' ,' ), description : ' Clients used to run end-to-end tests (comma separated values)' , name : ' clients' ),
36+ string(defaultValue : ' 50' , description : ' Number of dots per line' , name : ' dotsperline' ),
37+ ])
38+
39+ launchUnitTests = userInput[' launchUnitTests' ]
40+ launchEndToEndTests = userInput[' launchEndToEndTests' ]
41+ clients = userInput[' clients' ]. tokenize(' ,' )
42+ verboseOutputs = userInput[' verboseOutputs' ]
43+ dotsPerLine = userInput[' dotsperline' ]
44+ }
4345 }
4446 milestone 2
4547
0 commit comments