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() { def windowsBuild() {
node { stage('Windows binary') {
deleteDir() warnError('windows build failed') {
unstash 'bin' node {
docker.image('tobix/pywine').inside { windowsBuildCommands()
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/*'
} }
} }
} }
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: // vim: set ft=groovy: