diff options
| author | tgrogers <[email protected]> | 2019-06-19 11:03:35 -0400 |
|---|---|---|
| committer | tgrogers <[email protected]> | 2019-06-19 11:03:35 -0400 |
| commit | 3cac7525e1046285337e4dcf7fd8aa07c3a1f7c9 (patch) | |
| tree | 7b714f575ad753c5db26c8c6127aa0ed9c28ff78 /nightly.jenkinsfile | |
| parent | 7e0fd203206a3671cd93b615ef84ec6eec709db1 (diff) | |
Making the nightly script a little more robust.
Diffstat (limited to 'nightly.jenkinsfile')
| -rw-r--r-- | nightly.jenkinsfile | 2 |
1 files changed, 2 insertions, 0 deletions
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 [email protected]: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' |
