This repository was archived by the owner on Mar 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ pipeline {
55 parameters {
66 string(name : ' sha1' , defaultValue : ' master' ,
77 description : ' What branch of CoreNeuron to test.' )
8- string(name : ' SPACK_BRANCH' , defaultValue : ' develop ' ,
8+ string(name : ' SPACK_BRANCH' , defaultValue : ' ' ,
99 description : ' Which branch of spack to use.' )
1010 string(name : ' NEURON_BRANCH' , defaultValue : ' ' ,
1111 description : ' Which branch of neuron to use. For master branch (neuron@develop) leave this parameter blank.' )
Original file line number Diff line number Diff line change @@ -18,8 +18,15 @@ install_spack() (
1818 SPACK_REPO=https://github.com/BlueBrain/spack.git
1919 SPACK_BRANCH=${SPACK_BRANCH:- " develop" }
2020
21- echo " Installing SPACK. Cloning $SPACK_REPO $SPACK_ROOT --depth 1 -b $SPACK_BRANCH "
22- git clone $SPACK_REPO $SPACK_ROOT --depth 1 -b $SPACK_BRANCH
21+ # cloning branch option
22+ BRANCH_OPT=" "
23+ if [ -n " $SPACK_BRANCH " ]; then
24+ BRANCH_OPT=" -b ${SPACK_BRANCH} "
25+ fi
26+
27+ echo " Installing SPACK. Cloning $SPACK_REPO $SPACK_ROOT --depth 1 $BRANCH_OPT "
28+ git clone $SPACK_REPO $SPACK_ROOT --depth 1 $BRANCH_OPT
29+
2330 # Use BBP configs
2431 mkdir -p $SPACK_ROOT /etc/spack/defaults/linux
2532 cp /gpfs/bbp.cscs.ch/apps/hpc/jenkins/config/* .yaml $SPACK_ROOT /etc/spack/
You can’t perform that action at this time.
0 commit comments