forked from x-tools-author/x-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
62 lines (55 loc) · 1.94 KB
/
Jenkinsfile
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
pipeline {
agent any
stages {
stage('Windows msvc 32 bit release') {
environment {
SAK_WORKSPACE = "${env.WORKSPACE}"
QT_BIN = "${env.QT_DEFAULT_BIN_WIN32}"
VC_PATH = "${env.VC17_32_PATH}"
VCVARS = "${env.VCVARS32}"
BUILD_DIR = "build_win32"
MAKE = "${env.MAKE_WIN}"
}
steps {
powershell 'echo $env:BUILD_DIR'
powershell 'If(Test-Path $env:BUILD_DIR){Remove-Item $env:BUILD_DIR -recurse;mkdir $env:BUILD_DIR}Else{mkdir $env:BUILD_DIR}'
bat "cd %BUILD_DIR%&&set PATH=%QT_BIN%;%VC_PATH%;%PATH%&&%VCVARS%&&qmake ../QtCRCCalculator.pro&&%MAKE%"
}
}
stage('Windows msvc 64 bit release') {
environment {
SAK_WORKSPACE = "${env.WORKSPACE}"
QT_BIN = "${env.QT_DEFAULT_BIN_WIN64}"
VC_PATH = "${env.VC17_64_PATH}"
VCVARS = "${env.VCVARS64}"
BUILD_DIR = "build_win64"
MAKE = "${env.MAKE_WIN}"
}
steps {
powershell 'echo $env:BUILD_DIR'
powershell 'If(Test-Path $env:BUILD_DIR){Remove-Item $env:BUILD_DIR -recurse;mkdir $env:BUILD_DIR}Else{mkdir $env:BUILD_DIR}'
bat "cd %BUILD_DIR%&&set PATH=%QT_BIN%;%VC_PATH%;%PATH%&&%VCVARS%&&qmake ../QtCRCCalculator.pro&&%MAKE%"
}
}
stage('Collecting archive artifacts'){
steps {
archiveArtifacts '**/release/*.exe'
}
}
stage('Build') {
steps {
echo 'Deploying....'
}
}
stage('Test') {
steps {
echo 'Test....'
}
}
stage('Deploy') {
steps {
echo 'Deploying....'
}
}
}
}