Skip to content

Commit

Permalink
jenkins: align with petals
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuel-schmid committed Sep 23, 2024
1 parent 70fd104 commit c15ec0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script/jenkins/petals_regression_test/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pipeline {
stages {
stage('integ_test') {
steps {
sh 'bash script/jenkins/petals_regression_test/run_integ_test.sh'
sh "bash script/jenkins/petals_regression_test/run_integ_test.sh ${env.GIT_BRANCH}"
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion script/jenkins/petals_regression_test/run_integ_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ mamba env update -n climada_env -f ~/jobs/petals_install_env/workspace/requireme
source activate climada_env

REGTESTENV=~/jobs/petals_compatibility/petals_env
BRANCH=`git branch -r | grep PR | cut -f 2 -d /`
BRANCH=$1
echo ::: $REGTESTENV/$BRANCH
PETALS_DIR=`test -e $REGTESTENV/$BRANCH && cat $REGTESTENV/$BRANCH || echo ~/jobs/petals_branches/branches/develop/workspace`

python -m venv --system-site-packages tvenv
Expand Down

0 comments on commit c15ec0d

Please sign in to comment.