Skip to content

Commit a01f91b

Browse files
committed
API-599: change jenkinsfile to launch end-to-end tests
1 parent 591fa0b commit a01f91b

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

.ci/Jenkinsfile

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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\nno', description: 'Run unit tests and code style checks', name: 'launchUnitTests'),
31-
choice(choices: 'yes\nno', description: 'Run end-to-end tests', name: 'launchEndToEndTests'),
32-
choice(choices: 'no\nyes', 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\nno', description: 'Run unit tests and code style checks', name: 'launchUnitTests'),
32+
choice(choices: 'yes\nno', description: 'Run end-to-end tests', name: 'launchEndToEndTests'),
33+
choice(choices: 'no\nyes', 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

Comments
 (0)