blob: 4961a8b7e889848b4a1e8e5864ea565d993b7a9e [file] [log] [blame]
Devin Lim90803a82017-08-29 13:41:44 -07001#!groovy
Devin Lim1cb87512018-05-10 14:44:18 -07002funcs = evaluate readTrusted( 'TestON/JenkinsFile/JenkinsCommonFuncs.groovy' )
3
4def now = funcs.getCurrentTime()
5print now.toString()
6today = now[ Calendar.DAY_OF_WEEK ]
7machines = params.machines
8manually_run = params.manual_run
9if( !manually_run ){
10 slackSend( color:'#03CD9F',
11 message:":sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles:\n"
12 + "Starting tests on : " + now.toString()
13 + "\n:sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles:" )
14}
15
16machineList = machines.tokenize( "\n;, " )
17machineOn = [:]
18
19for (machine in machineList){
20 machineOn[ machine ] = triggerJob( machine )
21}
22
23parallel machineOn
24
Devin Lim61643762017-12-07 15:55:38 -080025
Devin Lim2edfcec2018-05-09 17:16:21 -070026def triggerJob( on ){
27 jobToRun = on + "-pipeline-trigger"
28 build job: jobToRun, propagate: false
Devin Lim61657e42017-10-09 17:24:40 -070029}