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
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ pipeline {
5
5
parameters {
6
6
string(name : ' sha1' , defaultValue : ' master' ,
7
7
description : ' What branch of CoreNeuron to test.' )
8
- string(name : ' SPACK_BRANCH' , defaultValue : ' develop ' ,
8
+ string(name : ' SPACK_BRANCH' , defaultValue : ' ' ,
9
9
description : ' Which branch of spack to use.' )
10
10
string(name : ' NEURON_BRANCH' , defaultValue : ' ' ,
11
11
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 @@ -16,10 +16,16 @@ install_spack() (
16
16
mkdir -p $BASEDIR && cd $BASEDIR
17
17
rm -rf .spack # CLEANUP SPACK CONFIGS
18
18
SPACK_REPO=https://github.com/BlueBrain/spack.git
19
- SPACK_BRANCH=${SPACK_BRANCH:- " develop" }
20
19
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
20
+ # cloning branch option
21
+ BRANCH_OPT=" "
22
+ if [ -n " $SPACK_BRANCH " ]; then
23
+ BRANCH_OPT=" -b ${SPACK_BRANCH} "
24
+ fi
25
+
26
+ echo " Installing SPACK. Cloning $SPACK_REPO $SPACK_ROOT --depth 1 $BRANCH_OPT "
27
+ git clone $SPACK_REPO $SPACK_ROOT --depth 1 $BRANCH_OPT
28
+
23
29
# Use BBP configs
24
30
mkdir -p $SPACK_ROOT /etc/spack/defaults/linux
25
31
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