Skip to content

Commit 9bb8856

Browse files
jenkins: get branch name
1 parent fb7da3c commit 9bb8856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/jenkins/petals_regression_test/run_integ_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ mamba env update -n climada_env -f ~/jobs/petals_install_env/workspace/requireme
55
source activate climada_env
66

77
REGTESTENV=~/jobs/petals_compatibility/petals_env
8-
BRANCH=`git name-rev --name-only HEAD | cut -f 3- -d /`
8+
BRANCH=`git branch -r | grep PR | cut -f 2 -d /`
99
PETALS_DIR=`test -e $REGTESTENV/$BRANCH && cat $REGTESTENV/$BRANCH || echo ~/jobs/petals_branches/branches/develop/workspace`
1010

1111
python -m venv --system-site-packages tvenv

0 commit comments

Comments
 (0)