summaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
diff options
context:
space:
mode:
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile30
1 files changed, 26 insertions, 4 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index c202b70..0d09988 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,3 +1,6 @@
+import jenkins.model.*
+import hudson.model.Result
+
def REPO = 'ssh://gerrit1.techsat.local:29418/external/Qt'
properties([
@@ -38,7 +41,6 @@ stage('Build') {
}
- archiveArtifacts artifacts: 'qt-*-x86-linux64.tgz,qt-*-x86-linux.tgz'
}
},
windows: {
@@ -79,10 +81,10 @@ stage('Build') {
buildqt64.bat
'''
}
- archiveArtifacts artifacts: '*-msvc.zip'
-
+ stash name: "qtwin", includes: "*-msvc.zip"
} catch (e) {
echo 'Windows build failed'
+ setBuildResult('FAILURE')
} finally {
bat '''
set PATH=C:\\dev-tools\\msys\\x86\\usr\\bin;%PATH%
@@ -90,8 +92,28 @@ stage('Build') {
sh.exe -c "rm -f NUL"
cd %WORKSPACE%
'''
-
+ deleteDir()
}
}
}
}
+stage ("Post processing") {
+ node('bslp02-centos6-64') {
+ unstash name: 'qtwin'
+ sh '''
+ rm -Rf $WORKSPACE/INST
+ QT_VER=5.12.3
+ mkdir -p $WORKSPACE/INST/$QT_VER/x86-linux
+ tar -xzf $WORKSPACE/qt-$QT_VER-x86-linux.tgz -C $WORKSPACE/INST/5.12.3/x86-linux
+ mkdir -p $WORKSPACE/INST/$QT_VER/x86-linux64
+ tar -xzf $WORKSPACE/qt-$QT_VER-x86-linux64.tgz -C $WORKSPACE/INST/5.12.3/x86-linux64
+ mkdir -p $WORKSPACE/INST/$QT_VER/x86-msvc
+ unzip -o $WORKSPACE/qt-$QT_VER-x86-msvc.zip -d $WORKSPACE/INST/$QT_VER/x86-msvc
+ mkdir -p $WORKSPACE/INST/$QT_VER/x86_64-msvc
+ unzip -o $WORKSPACE/qt-$QT_VER-x86_64-msvc.zip -d $WORKSPACE/INST/$QT_VER/x86-msvc
+ cd $WORKSPACE/INST && tar -zcf $WORKSPACE/qt-$QT_VER-bin.tgz ./
+ rm -Rf $WORKSPACE/INST
+ '''
+ archiveArtifacts artifacts: 'qt-5.12.3-bin.tgz'
+ }
+}