Jenkins: Turn windows build errors into warnings

This commit is contained in:
Tobias Gruetzmacher 2019-07-14 12:47:58 +02:00
parent 328b3cd072
commit 98d217f686

38
Jenkinsfile vendored
View file

@ -94,23 +94,31 @@ def buildDockerfile(image) {
}
def windowsBuild() {
node {
deleteDir()
unstash 'bin'
docker.image('tobix/pywine').inside {
sh '''
. /opt/mkuserwineprefix
tar xvf dist/dosage-*.tar.gz
cd dosage-*
xvfb-run sh -c "
wine py -m pip install -e .[css] &&
cd scripts &&
wine py -m PyInstaller -y dosage.spec;
wineserver -w" | tee log.txt
'''
archiveArtifacts '*/scripts/dist/*'
stage('Windows binary') {
warnError('windows build failed') {
node {
windowsBuildCommands()
}
}
}
}
def windowsBuildCommands() {
deleteDir()
unstash 'bin'
docker.image('tobix/pywine').inside {
sh '''
. /opt/mkuserwineprefix
tar xvf dist/dosage-*.tar.gz
cd dosage-*
xvfb-run sh -c "
wine py -m pip install -e .[css] &&
cd scripts &&
wine py -m PyInstaller -y dosage.spec;
wineserver -w" | tee log.txt
'''
archiveArtifacts '*/scripts/dist/*'
}
}
// vim: set ft=groovy: