From 3cac7525e1046285337e4dcf7fd8aa07c3a1f7c9 Mon Sep 17 00:00:00 2001 From: tgrogers Date: Wed, 19 Jun 2019 11:03:35 -0400 Subject: Making the nightly script a little more robust. --- nightly.jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nightly.jenkinsfile b/nightly.jenkinsfile index 51e2d05..0813ea8 100644 --- a/nightly.jenkinsfile +++ b/nightly.jenkinsfile @@ -22,6 +22,7 @@ pipeline { } stage('nightly-simulations-build'){ steps{ + sh 'cp -r ./gpgpu-sim_simulations ./gpgpu-sim_simulations_bak' sh 'rm -rf gpgpu-sim_simulations' sh 'git clone git@github.com:purdue-aalp/gpgpu-sim_simulations.git && \ cd gpgpu-sim_simulations && \ @@ -76,6 +77,7 @@ pipeline { | grep "Correl=" | tee correl.9.1.txt &&\ cp stats-per-*.csv ./gpgpu-sim-results-repo/${JOB_NAME}/ &&\ cd ./gpgpu-sim-results-repo &&\ + git pull &&\ git diff --quiet && git diff --staged --quiet || git commit -am "Jenkins automated checkin ${JOB_NAME} Build:${BUILD_NUMBER}" &&\ git push' -- cgit v1.3