forked from fido-device-onboard/epid-verification-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
44 lines (39 loc) · 1.02 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
node('ccode'){
stage('Clone epid-verification-service'){
cleanWs()
checkout scm
}
stage('Build EPID SDK'){
dir('Native/src/service/dependencies'){
sh '''
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
git clone -b v7.0.1 https://github.com/Intel-EPID-SDK/epid-sdk
cd epid-sdk
chmod +x configure
./configure
make all
make check
make install
'''
}
}
stage('Build GoogleTest'){
dir('Native/src/service/dependencies'){
sh '''
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
git clone -b release-1.7.0 https://github.com/google/googletest
cd googletest/make
make
'''
}
}
stage('Build EPID Verification Service'){
sh '''
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
mvn clean install
'''
print "Archive the artifacts"
sh 'tar -czvf demo.tar.gz demo/'
archiveArtifacts artifacts: 'demo.tar.gz', fingerprint: true, allowEmptyArchive: false
}
}