-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathJenkinsfile
59 lines (59 loc) · 2.17 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
#!/usr/bin/env groovy
pipeline{
agent none
stages {
stage('Build Windows') {
agent { label 'windows'
}
environment {
cppTag = "${GIT_BRANCH}"
CMAKE_HOME = 'C:\\\\PROGRA~2\\\\CMake\\\\bin'
generator = '"Visual Studio 14 2015 Win64"'
INFINISPAN_VERSION = '15.0.0.Dev07'
JAVA_HOME = 'C:\\\\PROGRA~1\\\\JAVA\\\\JDK-11~1.2'
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~1.12'
SWIG_EXECUTABLE = 'C:\\\\PROGRA~1\\\\SWIGWI~1.12\\\\SWIG.EXE'
test32 = 'empty'
test64 = 'empty'
HOTROD_LOG_LEVEL = 'INFO'
CLIENT_VERSION= "${GIT_BRANCH}"
}
steps {
checkout scm
script {
bat 'build.bat'
archiveArtifacts artifacts: 'build_win\\_CPack_Packages\\WIN-x86_64\\ZIP\\*.zip'
}
}
}
stage ("Build Linux") {
agent { label 'slave-group-normal'
}
environment {
HOTROD_LOG_LEVEL = 'INFO'
INFINISPAN_VERSION = '15.0.0.Dev07'
JBOSS_HOME = '/home/ec2-user/ispn/infinispan-server'
M2_HOME = '/opt/maven'
PATH = "${M2_HOME}/bin:${PATH}"
JAVA_HOME = '/usr/lib/jvm/java-11'
CLIENT_VERSION="${GIT_BRANCH}"
}
steps {
checkout scm
script {
sh 'printenv'
}
script {
sh "PATH=\"${env.M2_HOME}/bin:${PATH}\" CMAKE_EXTRAS=\"-DINSTALL_GTEST=FALSE\" ./build.sh"
archiveArtifacts artifacts: 'build/infinispan-hotrod-cpp-*.rpm, build/*Source.zip'
}
}
}
}
}