76 lines
2.2 KiB
Groovy
76 lines
2.2 KiB
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('Build Windows Debug') {
|
|
when {
|
|
branch 'develop'
|
|
beforeAgent true
|
|
}
|
|
agent {
|
|
docker {
|
|
image 'llvm-mingw:latest'
|
|
reuseNode true
|
|
}
|
|
}
|
|
environment {
|
|
DEBUG = 1
|
|
}
|
|
steps {
|
|
sh 'bash ./build.sh win32'
|
|
sh 'analyze-build --verbose --cdb build/compile_commands.json --output build/Analysis/win32'
|
|
sh 'bash ./build.sh win64'
|
|
sh 'analyze-build --verbose --cdb build/compile_commands.json --output build/Analysis/win64'
|
|
}
|
|
}
|
|
stage('Build Linux Debug') {
|
|
when {
|
|
branch 'develop'
|
|
beforeAgent true
|
|
}
|
|
agent {
|
|
docker {
|
|
image 'llvm:latest'
|
|
reuseNode true
|
|
}
|
|
}
|
|
environment {
|
|
DEBUG = 1
|
|
}
|
|
steps {
|
|
sh 'bash ./build.sh lin'
|
|
sh 'analyze-build --verbose --cdb build/compile_commands.json --output build/Analysis/lin'
|
|
}
|
|
}
|
|
stage('Build MacOSX Debug') {
|
|
when {
|
|
branch 'develop'
|
|
beforeAgent true
|
|
}
|
|
agent {
|
|
docker {
|
|
image 'osxcross:latest'
|
|
reuseNode true
|
|
}
|
|
}
|
|
environment {
|
|
DEBUG = 1
|
|
}
|
|
steps {
|
|
sh 'bash ./build.sh mac'
|
|
sh 'analyze-build --verbose --cdb build/compile_commands.json --output build/Analysis/mac'
|
|
}
|
|
}
|
|
stage('Archive Debug') {
|
|
when {
|
|
branch 'develop'
|
|
}
|
|
steps {
|
|
zip zipFile: 'X-Plane Debug.zip', archive: true, dir: 'build/X-Plane'
|
|
zip zipFile: 'ESP Debug.zip', archive: true, dir: 'build/ESP'
|
|
zip zipFile: 'Analysis.zip', archive: true, dir: 'build/Analysis'
|
|
sh 'rm -rf build'
|
|
}
|
|
}
|
|
}
|
|
}
|