diff options
author | Joerg Koenig <Joerg.Koenig@techsat.com> | 2019-05-15 06:40:43 (GMT) |
---|---|---|
committer | Joerg Koenig <Joerg.Koenig@techsat.com> | 2019-05-15 06:40:43 (GMT) |
commit | cf85e6c59c3f7fdde95f0d0832a529fd131d4f1a (patch) | |
tree | 197a664d8bd77848c04cdf1ba7c215fe5c9ca5a6 | |
parent | ff5f88e4c0891ab8c144b237486e46fb4e7a4816 (diff) | |
download | Qt-cf85e6c59c3f7fdde95f0d0832a529fd131d4f1a.zip Qt-cf85e6c59c3f7fdde95f0d0832a529fd131d4f1a.tar.gz Qt-cf85e6c59c3f7fdde95f0d0832a529fd131d4f1a.tar.bz2 |
Next devel stagerefs/changes/05/7505/1
Change-Id: If159447b5c89eabc53404e37974844f81dee678b
-rw-r--r-- | Jenkinsfile | 75 |
1 files changed, 46 insertions, 29 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 054f315..5198b5d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,7 +2,7 @@ def REPO = 'ssh://gerrit1.techsat.local:29418/external/Qt' stage('Build') { parallel linux: { - node('bslpv02-centos6-64') { + node('bslp02-centos6-64') { deleteDir() checkout([$class: 'GitSCM', branches: [[name: 'features/newbuild']], @@ -11,38 +11,55 @@ stage('Build') { submoduleCfg: [], userRemoteConfigs: [[url: REPO]]]) sh '''#!/bin/bash - source /opt/centos/devtoolset-1.1/enable - gcc -v - make - ''' - archiveArtifacts artifacts: 'qt-*-x86-linux64.zip' + GCC_PATH=/master/DEV-Tools/gcc-suite/1.2.0-125/x86-linux64/gcc-8.0.1 make + ''' + archiveArtifacts artifacts: 'qt-*-x86-linux64.tgz' } }, windows: { node('bslp05-win10-64') { - deleteDir() - checkout([$class: 'GitSCM', - branches: [[name: 'features/newbuild']], - doGenerateSubmoduleConfigurations: false, - extensions: [], - submoduleCfg: [], - userRemoteConfigs: [[url: REPO]]]) - bat '''@echo off - net use K: \\\\dfs2.techsat.net\\dev-tools /yes > NUL 2>&1 - set SDKDIR=K:\\WinSDK\\VS2019BT\\ - set PERLDIR=K:\\perl\\x86_64-msvc\\ - buildqt32.bat - ''' - bat '''@echo off - net use K: \\\\dfs2.techsat.net\\dev-tools /yes > NUL 2>&1 - set SDKDIR=K:\\WinSDK\\VS2019BT\\ - set PERLDIR=K:\\perl\\x86_64-msvc\\ - buildqt64.bat - ''' - bat '''@echo off - net use K: /delete /yes >NUL 2>&1 - ''' - archiveArtifacts artifacts: 'qt-*-msvc.zip' + try { + deleteDir() + checkout([$class: 'GitSCM', + branches: [[name: 'features/newbuild']], + doGenerateSubmoduleConfigurations: false, + extensions: [], + submoduleCfg: [], + userRemoteConfigs: [[url: REPO]]]) + + bat '''@echo off + net use K: \\\\dfs2.techsat.net\\dev-tools /yes + set SDKDIR=K:\\WinSDK\\VS2019BT\\ + set PERLDIR=K:\\perl\\x86_64-msvc\\ + set NASMDIR=K:\\nasm\\2.12.01_32\\ + set MSYSDIR=K:\\msys\\x86\\ + set PATH=%PATH%;K:\\Python\\2.7\\x86-windows\\ + buildqt32.bat + ''' + + bat '''@echo off + net use K: \\\\dfs2.techsat.net\\dev-tools /yes + set SDKDIR=K:\\WinSDK\\VS2019BT\\ + set PERLDIR=K:\\perl\\x86_64-msvc\\ + set NASMDIR=K:\\nasm\\2.12.01_64 + set MSYSDIR=K:\\msys\\x86\\ + set PATH=%PATH%;K:\\Python\\2.7\\x86-windows\\ + buildqt64.bat + ''' + archiveArtifacts artifacts: '*-msvc.zip' + + } catch (e) { + echo 'Windows build failed' + } finally { + bat ''' + set PATH=K:\\msys\\x86\\usr\\bin;%PATH% + cd %WORKSPACE%\\openssl-1.0.2r + sh.exe -c "rm -f NUL" + cd %WORKSPACE% + net use K: /delete /yes + ''' + + } } } } |