summaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
diff options
context:
space:
mode:
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile48
1 files changed, 48 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..e846baf
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,48 @@
+def REPO = 'ssh://gerrit1.techsat.local:29418/external/Qt'
+
+stage('Build') {
+ parallel linux: {
+ node('linux') {
+ deleteDir()
+ checkout([$class: 'GitSCM',
+ branches: [[name: 'features/newbuild']],
+ doGenerateSubmoduleConfigurations: false,
+ extensions: [],
+ submoduleCfg: [],
+ userRemoteConfigs: [[url: REPO]]])
+ sh '''#!/bin/bash
+ source /opt/centos/devtoolset-1.1/enable
+ gcc -v
+ make
+ '''
+ archiveArtifacts artifacts: 'qt-*-x86-linux64.zip'
+ }
+ },
+ windows: {
+ node('windows') {
+ 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'
+ }
+ }
+}