From 802cfb3a3c849eac29432e8d653ac3c34954054d Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Wed, 6 Dec 2017 21:27:27 +0100 Subject: [PATCH] [Jenkins] Don't fail if there are changes to Tests/Data. --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index bb22af3549f..67c012eb3c7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -393,7 +393,7 @@ pipeline { credentialsId: '2719b702-1298-4e87-8464-5dfc62fbd923', url: 'https://github.com/ufz/ogs-data']]]) sh 'rsync -av --delete --exclude .git/ ../ogs/Tests/Data/ .' - sh "git add . && git commit -m 'Update'" + sh "git diff --quiet && git diff --staged --quiet || git commit -am 'Update'" withCredentials([usernamePassword( credentialsId: '2719b702-1298-4e87-8464-5dfc62fbd923', passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) { -- GitLab