1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
def REPO = 'ssh://gerrit1.techsat.local:29418/external/Qt'
properties([
parameters([
gitParameter(branch: '',
branchFilter: 'origin/(.*)',
defaultValue: 'master',
description: '',
name: 'BRANCH',
quickFilterEnabled: false,
selectedValue: 'NONE',
sortMode: 'NONE',
tagFilter: '*',
type: 'PT_BRANCH_TAG')
])
])
stage('Build') {
parallel linux: {
node('bslp02-centos6-64') {
deleteDir()
checkout([$class: 'GitSCM',
branches: [[name: BRANCH]],
doGenerateSubmoduleConfigurations: false,
extensions: [],
submoduleCfg: [],
userRemoteConfigs: [[url: REPO]]])
sh '''#!/bin/bash
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') {
try {
deleteDir()
checkout([$class: 'GitSCM',
branches: [[name: BRANCH]],
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 NASMDIR=K:\\nasm\\2.12.01_32\\
set MSYSDIR=K:\\msys\\x86\\
set PATH=%PATH%;K:\\Python\\2.7\\x86-windows\\
buildqt32.bat
'''
bat '''
set MSYSDIR=K:\\msys\\x86
set PATH=%MSYSDIR%\\usr\\bin;%PATH%
sh.exe -c "rm -f openssl-1.0.2r/NUL"
sh.exe -c "rm -Rf openssl-1.0.2r*"
'''
bat '''@echo off
net use K: \\\\dfs2.techsat.net\\dev-tools /yes
set SDKDIR=K:\\WinSDK\\VS2019BT\\
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
'''
}
}
}
}
|