Enforce code style for groovy files
Change-Id: I7d8bd721c0e5b744777a5ad92386d36a524f93ec
diff --git a/TestON/JenkinsFile/JenkinsfileTrigger b/TestON/JenkinsFile/JenkinsfileTrigger
index a2996df..0836a97 100644
--- a/TestON/JenkinsFile/JenkinsfileTrigger
+++ b/TestON/JenkinsFile/JenkinsfileTrigger
@@ -31,19 +31,19 @@
// read the passed parameters from the Jenkins.
machines = params.machines
manually_run = params.manual_run
-if( !manually_run ){
- slackSend( color:'#03CD9F',
- message:":sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles:\n"
- + "Starting tests on : " + now.toString()
- + "\n:sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles::sparkles:" )
+if ( !manually_run ){
+ slackSend( color: '#03CD9F',
+ message: ":sparkles:" * 16 + "\n" +
+ "Starting tests on : " + now.toString() +
+ "\n" + ":sparkles:" * 16 )
}
// store the list of the machines into the dictionary.
machineList = machines.tokenize( "\n;, " )
-machineOn = [:]
+machineOn = [ : ]
// save the triggering job function as a dictionary.
-for (machine in machineList){
+for ( machine in machineList ){
print( machine )
machineOn[ machine ] = triggerJob( machine )
}
@@ -53,7 +53,7 @@
// function that will trigger the specific jobs from current pipeline.
def triggerJob( on ){
- return{
+ return {
jobToRun = on + "-pipeline-trigger"
build job: jobToRun, propagate: false
}