Enforce code style for groovy files
Change-Id: I7d8bd721c0e5b744777a5ad92386d36a524f93ec
diff --git a/TestON/JenkinsFile/CHO_Graph_Generator b/TestON/JenkinsFile/CHO_Graph_Generator
index 04a6f74..91ad9e5 100644
--- a/TestON/JenkinsFile/CHO_Graph_Generator
+++ b/TestON/JenkinsFile/CHO_Graph_Generator
@@ -42,16 +42,16 @@
// create a bash script that will generate the graph
graphScript = generateGraphScript( branchList )
-stage( 'Generating-Graph' ){
+stage( 'Generating-Graph' ) {
// This will run on TestStation-Fabric5s node.
- node( "TestStation-Fabric5s" ){
+ node( "TestStation-Fabric5s" ) {
// run the bash script on this node.
runScript( graphScript )
}
}
// stage that will trigger postjob.
// Need to be executed outside the current node to avoid deadlock.
-stage( 'posting-result' ){
+stage( 'posting-result' ) {
postJob()
}
@@ -60,7 +60,7 @@
graphScript = ''''''
// In case there are multiple branches running.
- for( branch in branchList ){
+ for ( branch in branchList ){
branchDir = scriptDir + branch + "/"
graphScript += '''export BRANCH=''' + branchDir + '''
# make branch dir if not existing.
@@ -75,14 +75,15 @@
# run the log-summary that will export status
bash log-summary;''' + '''
# run Rscript with it's parameters.
- Rscript ''' + script_file + ' ' + branchDir + 'event.csv ' +
- branchDir + 'failure.csv ' + branchDir + 'error.csv ' +
- branch + ' 60 ' + hours + ' ' + saving_directory + ''';
+ Rscript ''' + script_file + ' ' + branchDir + 'event.csv ' +
+ branchDir + 'failure.csv ' + branchDir + 'error.csv ' +
+ branch + ' 60 ' + hours + ' ' + saving_directory + ''';
'''
print( graphScript )
}
return graphScript
}
+
def runScript( graphScript ){
// run bash script that will init the environment and run the graph generating part.
sh '''#!/bin/bash -l
@@ -92,6 +93,7 @@
cd ''' + scriptDir + ''';
''' + graphScript
}
+
def postJob(){
// Triggering jenkins job called `postjob-Fabric5`
jobToRun = "postjob-Fabric5"