Skip to content

Commit 11ff008

Browse files
committed
Attempting to fix jenkins/slurm issues
Signed-off-by: Hartmut Kaiser <hartmut.kaiser@gmail.com>
1 parent fe8da93 commit 11ff008

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

.jenkins/lsu/Jenkinsfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!groovy
22

33
// Copyright (c) 2020 ETH Zurich
4-
// Copyright (c) 2022 Hartmut Kaiser
4+
// Copyright (c) 2022-2025 Hartmut Kaiser
55
// Copyright (c) 2024 Alireza Kheirkhahan
66
//
77
// SPDX-License-Identifier: BSL-1.0
@@ -26,7 +26,7 @@ pipeline {
2626
stages {
2727
stage('checkout') {
2828
steps {
29-
dir('hpx') {
29+
dir('hpx_${env.BUILD_ID}') {
3030
checkout scm
3131
echo "Running ${env.BUILD_ID} on ${env.JENKINS_URL}"
3232
}
@@ -47,7 +47,7 @@ pipeline {
4747
stages {
4848
stage('build') {
4949
steps {
50-
dir('hpx') {
50+
dir('hpx_${env.BUILD_ID}') {
5151
sh '''
5252
#!/bin/bash -l
5353
.jenkins/lsu/entry.sh
@@ -62,8 +62,9 @@ pipeline {
6262

6363
post {
6464
always {
65-
archiveArtifacts artifacts: 'hpx/jenkins-hpx-*', fingerprint: true
66-
archiveArtifacts artifacts: 'hpx/build/*/Testing/**', fingerprint: true
65+
archiveArtifacts artifacts: 'hpx_${env.BUILD_ID}/jenkins-hpx-*', fingerprint: true
66+
archiveArtifacts artifacts: 'hpx_${env.BUILD_ID}/build/*/Testing/**', fingerprint: true
67+
rm -rf hpx_${env.BUILD_ID}/*
6768
}
6869
}
6970
}

.jenkins/lsu/entry.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ else
3737
fi
3838

3939
# delay things for a random amount of time
40-
sleep $[(RANDOM % 10) + 1].$[(RANDOM % 10)]s
40+
sleep $[(RANDOM % 20) + 1].$[(RANDOM % 20)]s
4141

4242
# Start the actual build
4343
set +e

0 commit comments

Comments
 (0)