summaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2021-06-17 10:31:29 +0200
committerGitHub <noreply@github.com>2021-06-17 10:31:29 +0200
commit4e48464bb3708968e1f15455cc2a11ae3acec3fe (patch)
treedde6a089fef9506d5466aea01dbbcdbcffdcb137 /Jenkinsfile
parentMigrate off CircleCI to Jenkins (#5230) (diff)
downloadcuberite-4e48464bb3708968e1f15455cc2a11ae3acec3fe.tar
cuberite-4e48464bb3708968e1f15455cc2a11ae3acec3fe.tar.gz
cuberite-4e48464bb3708968e1f15455cc2a11ae3acec3fe.tar.bz2
cuberite-4e48464bb3708968e1f15455cc2a11ae3acec3fe.tar.lz
cuberite-4e48464bb3708968e1f15455cc2a11ae3acec3fe.tar.xz
cuberite-4e48464bb3708968e1f15455cc2a11ae3acec3fe.tar.zst
cuberite-4e48464bb3708968e1f15455cc2a11ae3acec3fe.zip
Diffstat (limited to '')
-rw-r--r--Jenkinsfile30
1 files changed, 28 insertions, 2 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index a4abbd076..5e3097833 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -27,9 +27,35 @@ pipeline {
}
}
stage("Build") {
- steps {
- sh 'echo "TODO: Replace Travis here."'
+ parallel {
+ stage("gcc") {
+ environment {
+ TRAVIS_CUBERITE_BUILD_TYPE = 'Release'
+ TRAVIS_JOB_NUMBER = "{$env.BUILD_ID}"
+ CC = "gcc"
+ CXX = "g++"
+ }
+ steps {
+ sh 'bash ./travisbuild.sh'
+ }
+ }
+ stage("clang") {
+ environment {
+ TRAVIS_CUBERITE_BUILD_TYPE = 'Debug'
+ TRAVIS_JOB_NUMBER = "{$env.BUILD_ID}"
+ CC = "clang"
+ CXX = "clang++"
+ }
+ steps {
+ sh 'bash ./travisbuild.sh'
+ }
+ }
}
}
}
+ post {
+ always {
+ cleanWs()
+ }
+ }
}