blob: d744a675121ab800cc51d7087f514c48707eabf9 [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){
Devin Limb91bf792018-05-10 15:09:52 -070020 print( machine )
Devin Lim1cb87512018-05-10 14:44:18 -070021 machineOn[ machine ] = triggerJob( machine )
22}
23
24parallel machineOn
25
Devin Lim61643762017-12-07 15:55:38 -080026
Devin Lim2edfcec2018-05-09 17:16:21 -070027def triggerJob( on ){
Devin Limb91bf792018-05-10 15:09:52 -070028 return{
29 jobToRun = on + "-pipeline-trigger"
30 build job: jobToRun, propagate: false
31 }
Devin Lim61657e42017-10-09 17:24:40 -070032}