Checking if the specific branch has generated
Change-Id: I89efacd9eaa868b300f379ab19d2c8ea1b58bbb3
diff --git a/TestON/JenkinsFile/CHO_Graph_Generator b/TestON/JenkinsFile/CHO_Graph_Generator
index 5f45c32..32ed896 100644
--- a/TestON/JenkinsFile/CHO_Graph_Generator
+++ b/TestON/JenkinsFile/CHO_Graph_Generator
@@ -23,7 +23,10 @@
branchDir = scriptDir + branch + "/"
graphScript += '''export BRANCH=''' + branchDir + '''
mkdir ''' + branchDir + ''';
- cp *.csv ''' + branchDir + ''';
+ if [ ! -f ''' + branchDir + '''existing.txt ]; then
+ cp *.csv ''' + branchDir + ''';
+ echo "1" > existing.txt;
+ fi;
bash log-summary;''' + '''
''' + script_file + ' ' + branchDir + 'event.csv ' +
branchDir + 'failure.csv ' + branchDir + 'error.csv ' +