Jenkins: Turn windows build errors into warnings
This commit is contained in:
parent
328b3cd072
commit
98d217f686
1 changed files with 23 additions and 15 deletions
38
Jenkinsfile
vendored
38
Jenkinsfile
vendored
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue