-
Notifications
You must be signed in to change notification settings - Fork 14
/
Jenkinsfile
87 lines (83 loc) · 4.11 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/usr/bin/env groovy
pipeline {
agent {
label 'windows'
}
stages {
stage('Build C++ core') {
environment {
cppTag = "${GIT_BRANCH}"
CMAKE_HOME = 'C:\\\\PROGRA~2\\\\CMake\\\\bin'
generator = '"Visual Studio 14 2015 Win64"'
INFINISPAN_VERSION = '13.0.5.Final'
JAVA_HOME = 'C:\\\\PROGRA~1\\\\JAVA\\\\JDK18~1.0_1'
M2_HOME = 'C:\\\\APACHE~1.9'
MVN_PROGRAM = 'C:\\\\APACHE~1.9\\\\BIN\\\\MVN.BAT'
PROTOBUF_INCLUDE_DIR = 'C:\\\\protobuf-3.5.2\\\\src'
PROTOBUF_LIBRARY = 'C:\\\\protobuf-3.5.2\\\\cmake\\\\build\\\\solution\\\\Release\\\\libprotobuf.lib'
PROTOBUF_PROTOC_EXECUTABLE = 'C:\\\\protobuf-3.5.2\\\\cmake\\\\build\\\\solution\\\\Release\\\\protoc.exe'
PROTOBUF_PROTOC_LIBRARY = 'C:\\\\protobuf-3.5.2\\\\cmake\\\\build\\\\solution\\\\Release\\\\libprotoc.lib'
SWIG_DIR = 'C:\\\\PROGRA~1\\\\SWIGWI~2.12'
SWIG_EXECUTABLE = 'C:\\\\PROGRA~1\\\\SWIGWI~2.12\\\\SWIG.EXE'
test32 = 'empty'
test64 = 'empty'
CLIENT_VERSION= "${GIT_BRANCH}"
buildTest = 'skip'
}
steps {
dir('cpp-client') {
checkout scm: [$class: 'GitSCM',
userRemoteConfigs: [[url: 'https://github.com/infinispan/cpp-client.git']],
branches: [[name: "main"]]], changelog: false, poll: false
}
script {
dir ('cpp-client') {
bat ".\\build.bat"
}
}
}
}
stage('SCM Checkout') {
steps {
checkout scm
}
}
stage('Build') {
environment {
checkoutDir = "${env.WORKSPACE}"
CMAKE_HOME = 'C:\\\\PROGRA~2\\\\CMake\\\\bin'
generator = '"Visual Studio 14 2015 Win64"'
GOOGLE_PROTOBUF_NUPKG = 'C:\\\\Users\\\\Administrator'
HOTROD_SNK = 'c:\\\\data\\\\hotrod_cs.key'
IKVM_CUSTOM_BIN_PATH = 'C:\\\\Users\\\\Administrator\\\\ikvm-8.1.5717.0\\\\bin'
INFINISPAN_VERSION = '13.0.5.Final'
JBOSS_HOME = "${env.WORKSPACE}\\\\cpp-client\\\\infinispan-server-13.0.5.Final"
JAVA_HOME = 'C:\\\\PROGRA~1\\\\JAVA\\\\JDK18~1.0_1'
M2_HOME = 'C:\\\\APACHE~1.9'
MAVEN_OPTS = '"-Dmaven.multiModuleProjectDirectory=C:\\\\APACHE~1.9"'
MVN_PROGRAM = 'C:\\\\APACHE~1.9\\\\BIN\\\\MVN'
NLOG_DLL = 'c:\\\\data\\\\NLog-2.1.0\\\\net40\\\\NLog.dll'
NLOG_LICENSE = 'c:\\\\data\\\\NLog_License.txt'
NUNIT_DLL = 'C:\\\\Users\\\\Administrator\\\\NUnit.3.8.0\\\\lib\\\\net45\\\\nunit.framework.dll'
OPENSSL_ROOT_DIR = 'c:/OpenSSL-Win64'
PROTOBUF_INCLUDE_DIR = 'C:\\\\protobuf-3.5.2\\\\src'
PROTOBUF_LIBRARY = 'C:\\\\protobuf-3.5.2\\\\cmake\\\\build\\\\solution\\\\Release\\\\libprotobuf.lib'
PROTOBUF_PROTOC_EXECUTABLE = 'C:\\\\protobuf-3.5.2\\\\cmake\\\\build\\\\solution\\\\Release\\\\protoc.exe'
PROTOBUF_PROTOC_EXECUTABLE_CS = 'C:\\\\Users\\\\Administrator\\\\Google.Protobuf.Tools.3.4.0\\\\tools\\\\windows_x64\\\\protoc.exe'
PROTOBUF_PROTOC_LIBRARY = 'C:\\\\protobuf-2.6.1-pack\\\\lib\\\\libprotoc.lib'
SWIG_DIR = 'C:\\\\PROGRA~1\\\\SWIGWI~2.12'
SWIG_EXECUTABLE = 'C:\\\\PROGRA~1\\\\SWIGWI~2.12\\\\SWIG.EXE'
test32 = 'skip'
test64 = 'run'
cppTag = "0.1.0.SNAPSHOT"
CLIENT_VERSION = "0.1.0.SNAPSHOT"
}
steps {
script {
bat ".\\build.bat"
archiveArtifacts artifacts: 'build_windows\\_CPack_Packages\\win64\\WIX\\*.msi, build_windows\\_CPack_Packages\\win64-Source\\ZIP\\*.zip'
}
}
}
}
}