/* -*- mode: groovy -*-
Configure how to run the job in Jenkins.
See https://castle-engine.io/jenkins .
*/
pipeline {
agent {
docker {
image 'kambi/castle-engine-cloud-builds-tools:cge-unstable'
}
}
stages {
stage('Build Desktop') {
steps {
sh 'castle-engine auto-generate-textures'
sh 'castle-engine package --os=win64 --cpu=x86_64 --verbose'
sh 'castle-engine package --os=win32 --cpu=i386 --verbose'
sh 'castle-engine package --os=linux --cpu=x86_64 --verbose'
}
}
}
post {
success {
archiveArtifacts artifacts: 'my_game*.tar.gz,my_game*.zip,my_game*.apk'
}
regression {
mail to: '[email protected]',
subject: "[jenkins] Build started failing: ${currentBuild.fullDisplayName}",
body: "See the build details on ${env.BUILD_URL}"
}
failure {
mail to: '[email protected]',
subject: "[jenkins] Build failed: ${currentBuild.fullDisplayName}",
body: "See the build details on ${env.BUILD_URL}"
}
fixed {
mail to: '[email protected]',
subject: "[jenkins] Build is again successfull: ${currentBuild.fullDisplayName}",
body: "See the build details on ${env.BUILD_URL}"
}
}
}