75 lines
2.1 KiB
Groovy
75 lines
2.1 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 lin64'
|
|
sh 'analyze-build --verbose --cdb build/compile_commands.json --output build/Analysis/lin64'
|
|
}
|
|
}
|
|
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: 'Debug.zip', archive: true, dir: 'build/Plugin'
|
|
zip zipFile: 'Analysis.zip', archive: true, dir: 'build/Analysis'
|
|
sh 'rm -rf build'
|
|
}
|
|
}
|
|
}
|
|
}
|