summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-01-11 16:35:57 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-01-11 17:09:12 +0100
commitf31661d392c1332ceb0edcbc9fd35f4cb49bb50d (patch)
tree6034e11da079476e0ab4b0b3c6bfefaee187d5e9 /Jenkinsfile
parent0b0cb4afa08210b572a9be6cadcb6397935b99d1 (diff)
Support using custom build-dir during bootstrap.
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile16
1 files changed, 3 insertions, 13 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 9a99f2d..14f0547 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -5,13 +5,13 @@ pipeline {
stage('Clean') {
steps {
echo 'Cleaning workspace ...'
- sh 'rm -Rf build build-gcc build-clang'
+ sh 'rm -Rf build*'
}
}
stage('Build-gcc') {
steps {
echo 'Building (gcc) ...'
- sh './bootstrap.sh'
+ sh 'BUILDDIR=build-gcc CXX=g++ ./bootstrap.sh'
}
}
stage('Test-gcc') {
@@ -19,16 +19,11 @@ pipeline {
echo 'Testing (gcc) ...'
sh './ctor check'
}
- post {
- always {
- sh 'mv build build-gcc'
- }
- }
}
stage('Build-clang') {
steps {
echo 'Building (clang) ...'
- sh 'CXX=clang++ ./bootstrap.sh'
+ sh 'BUILDDIR=build-clang CXX=clang++ ./bootstrap.sh'
}
}
stage('Test-clang') {
@@ -36,11 +31,6 @@ pipeline {
echo 'Testing (clang) ...'
sh './ctor check'
}
- post {
- always {
- sh 'mv build build-clang'
- }
- }
}
}