Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
use spack branch only if specified
Browse files Browse the repository at this point in the history
  • Loading branch information
pramodk committed Jan 6, 2021
1 parent 76d5d9d commit 38323e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pipeline {
parameters {
string(name: 'sha1', defaultValue: 'master',
description: 'What branch of CoreNeuron to test.')
string(name: 'SPACK_BRANCH', defaultValue: 'develop',
string(name: 'SPACK_BRANCH', defaultValue: '',
description: 'Which branch of spack to use.')
string(name: 'NEURON_BRANCH', defaultValue: '',
description: 'Which branch of neuron to use. For master branch (neuron@develop) leave this parameter blank.')
Expand Down
12 changes: 9 additions & 3 deletions tests/jenkins/spack_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,16 @@ install_spack() (
mkdir -p $BASEDIR && cd $BASEDIR
rm -rf .spack # CLEANUP SPACK CONFIGS
SPACK_REPO=https://github.com/BlueBrain/spack.git
SPACK_BRANCH=${SPACK_BRANCH:-"develop"}

echo "Installing SPACK. Cloning $SPACK_REPO $SPACK_ROOT --depth 1 -b $SPACK_BRANCH"
git clone $SPACK_REPO $SPACK_ROOT --depth 1 -b $SPACK_BRANCH
# cloning branch option
BRANCH_OPT=""
if [ -n "$SPACK_BRANCH" ]; then
BRANCH_OPT="-b ${SPACK_BRANCH}"
fi

echo "Installing SPACK. Cloning $SPACK_REPO $SPACK_ROOT --depth 1 $BRANCH_OPT"
git clone $SPACK_REPO $SPACK_ROOT --depth 1 $BRANCH_OPT

# Use BBP configs
mkdir -p $SPACK_ROOT/etc/spack/defaults/linux
cp /gpfs/bbp.cscs.ch/apps/hpc/jenkins/config/*.yaml $SPACK_ROOT/etc/spack/
Expand Down

0 comments on commit 38323e4

Please sign in to comment.