Skip to content

Commit bfaaee4

Browse files
authored
Fix weekly test (#33)
* Use fixed spack tag * Send email on pipeline failure
1 parent c02c541 commit bfaaee4

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

jenkins/Jenkinsfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,5 +184,13 @@ pipeline {
184184
echo 'Cleaning up workspace'
185185
deleteDir()
186186
}
187+
failure {
188+
mail to: "${env.EMAIL_TO_1}",
189+
subject: "Jenkins Pipeline Failed: ${currentBuild.fullDisplayName}",
190+
body: """The Jenkins pipeline ${currentBuild.fullDisplayName} has failed.
191+
192+
View the build: ${env.BUILD_URL}
193+
"""
194+
}
187195
}
188196
}

jenkins/scripts/setup-spack.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ function error {
1010
# Check if script is called correctly
1111
[[ $(git rev-parse --show-toplevel 2>/dev/null) = $(pwd) ]] || error "$0 not launched from toplevel of repository"
1212

13-
BRANCH=main
13+
TAG=v0.18.1.12
1414
GIT_REMOTE=https://github.com/C2SM/spack-c2sm.git
1515

1616
rm -fr src/spack-c2sm
1717

1818
pushd src
19-
git clone --depth 1 --recurse-submodules --shallow-submodules -b ${BRANCH} ${GIT_REMOTE}
19+
git clone --depth 1 --recurse-submodules --shallow-submodules -b ${TAG} ${GIT_REMOTE}
2020
. spack-c2sm/setup-env.sh
2121
popd
2222

0 commit comments

Comments
 (0)