From ba477f5a117087f80d7e7679da45937e5425654a Mon Sep 17 00:00:00 2001 From: Nico Cesar Date: Tue, 9 Jan 2018 13:28:04 -0500 Subject: [PATCH] 11020: deploying https://ci.curoverse.com/job/pipeline-cleanup refs #11020 Arvados-DCO-1.1-Signed-off-by: Nico Cesar --- jenkins/run-delete-merged-branches.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jenkins/run-delete-merged-branches.sh b/jenkins/run-delete-merged-branches.sh index 175b144..627cb40 100755 --- a/jenkins/run-delete-merged-branches.sh +++ b/jenkins/run-delete-merged-branches.sh @@ -20,13 +20,13 @@ trap '_exit_handler $LINENO' EXIT ERR # List here branches that you don't want to ever delete, separated with "|" # (as they will be passed as a parameter to egrep) # IE: "keep_this_branch|also_this_other|and_this_one" -branches_to_keep="master" +branches_to_keep="master|integration|dev|staging" git remote update --prune git checkout master git branch --remote --merged | \ - egrep -v ${branches_to_keep} | \ + egrep -v "/(${branches_to_keep})\$" | \ sed 's/origin\///' | \ - xargs -n 1 git push --delete origin + xargs --no-run-if-empty -n 1 git push --delete origin -- 2.30.2