From dbe5f35a5a595a982316cfffa978b572c17ada5e Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Wed, 3 Jul 2013 11:28:02 -0700 Subject: [PATCH] Add git fetch --tags to gerrit-git-prep.sh. * modules/jenkins/files/slave_scripts/gerrit-git-prep.sh: Run `git fetch --tags origin` to make sure that we have all available tags`. Change-Id: I2cfd691659cd0e10f5295fbbe66b36b818d6d6b6 Reviewed-on: https://review.openstack.org/35527 Reviewed-by: Monty Taylor Approved: James E. Blair Reviewed-by: James E. Blair Tested-by: Jenkins --- modules/jenkins/files/slave_scripts/gerrit-git-prep.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/jenkins/files/slave_scripts/gerrit-git-prep.sh b/modules/jenkins/files/slave_scripts/gerrit-git-prep.sh index 615ff8a417..11bd728768 100755 --- a/modules/jenkins/files/slave_scripts/gerrit-git-prep.sh +++ b/modules/jenkins/files/slave_scripts/gerrit-git-prep.sh @@ -33,6 +33,7 @@ then fi git remote set-url origin $GERRIT_SITE/p/$ZUUL_PROJECT git remote update || git remote update # attempt to work around bug #925790 +git fetch --tags origin git reset --hard git clean -x -f -d -q