[Qa-jenkins-scm] [jenkins.debian.net] 01/01: update_jdn: also update kgb_configs when deploy_kgb.py has been modified

Holger Levsen holger at layer-acht.org
Sun Oct 2 10:13:05 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit f96598e4d51b05f057db98abf34da7088653ca3c
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Sun Oct 2 10:08:40 2016 +0000

    update_jdn: also update kgb_configs when deploy_kgb.py has been modified
---
 update_jdn.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/update_jdn.sh b/update_jdn.sh
index 245fbda..6be6b2a 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -640,7 +640,7 @@ if [ "$HOSTNAME" = "jenkins" ] || [ "$HOSTNAME" = "profitbricks-build3-amd64" ]
 	KGB_SECRETS="/srv/jenkins/kgb/secrets.yml"
 	if [ -f "$KGB_SECRETS" ] && [ $(stat -c "%a:%U:%G" "$KGB_SECRETS") = "640:jenkins-adm:jenkins-adm" ] ; then
 		# the last condition is to assure the files are owned by the right user/team
-		if [ "$KGB_SECRETS" -nt $STAMP ] || [ ! -f $STAMP ] ; then
+		if [ "$KGB_SECRETS" -nt $STAMP ] || [ "deploy_kgb.py" -nt "$STAMP" ] || [ ! -f $STAMP ] ; then
 			sudo -u jenkins-adm "./deploy_kgb.py"
 		else
 			explain "kgb-client configuration unchanged, nothing to do."

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list