-
Notifications
You must be signed in to change notification settings - Fork 0
/
gsgx-checkout.jenkinsfile
44 lines (37 loc) · 1.45 KB
/
gsgx-checkout.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('sgx_slave_2.6') {
stage('checkout'){
dir ('./') {
git url: 'https://github.com/jinengandhi-intel/graphene_local_ci.git'
}
dir('graphene') {
git url: 'https://github.com/oscarlab/graphene.git'
}
}
dir('graphene') {
try {
sh 'cp -rf $WORKSPACE/ltp_src LibOS/shim/test/ltp/'
sh 'cp -rf $WORKSPACE/ltp_config/* LibOS/shim/test/ltp/'
env.WORKSPACE = env.WORKSPACE + "/graphene"
env.SGX = '1'
sh 'sed -i -e \'s/dent != g_dentry_root && dent->state & DENTRY_VALID/0/\' \
$WORKSPACE/LibOS/shim/src/fs/shim_fs.c'
sh 'sed -i \'s/.release = "3.10.0"/.release = "5.10.0"/\' \
$WORKSPACE/LibOS/shim/src/sys/shim_uname.c'
load '../ci/config-docker.jenkinsfile'
docker.build(
"local:${env.BUILD_TAG}",
'-f ../ci/ubuntu18.04.dockerfile .'
).inside("${env.DOCKER_ARGS_COMMON} ${env.DOCKER_ARGS_SGX}") {
load '.ci/lib/config.jenkinsfile'
load '.ci/lib/config-ubuntu18.04.jenkinsfile'
load '.ci/lib/config-release.jenkinsfile'
load '../ci/stage-build-sgx.jenkinsfile'
load '../ci/stage-test-sgx.jenkinsfile'
}
} finally {
stage('cleanup'){
sh 'rm -rf $WORKSPACE/LibOS/shim/test/ltp/ltp*.xml'
}
}
}
}