-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJenkinsfile
More file actions
72 lines (59 loc) · 1.5 KB
/
Copy pathJenkinsfile
File metadata and controls
72 lines (59 loc) · 1.5 KB
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
node {
stage "SCM Checkout"
checkout scm
stage "Clean Existing Images"
sh '''
make all-clean
'''
stage "Pre-Build Steps"
sh '''
(cd ci-scripts && git pull) || git clone https://$(cat /home/jenkins/git_token)@github.build.ge.com/PredixEdge/ci-scripts.git
source ci-scripts/prebuild.sh
'''
stage "Build & Image, all arch, build type: static library"
sh '''
make all-image BUILD_TYPE=static-library
make all-bin-clean
make all-image-clean
'''
stage "Build & Image, all arch, build type: shared library"
sh '''
make all-image BUILD_TYPE=shared-library
make all-bin-clean
make all-image-clean
'''
stage "Build & Image, all arch, build type: shared library"
sh '''
make all-image BUILD_TYPE=dynamic-library
make all-bin-clean
make all-image-clean
'''
stage "Build & Image, all arch, build type: executable"
sh '''
make all-image
for im in $(cat .image-registry*) ; do docker run --rm $im ; done
make all-bin-clean
make all-image-clean
'''
stage "Test"
sh '''
make test
'''
stage "Scan"
sh '''
make all-bin-clean
make scan
'''
stage "Post-Build Steps"
sh '''
source ci-scripts/postbuild.sh
'''
stage "Clean Existing Images"
sh '''
make clean
'''
stage "Final Step"
sh '''
source ci-scripts/finally.sh
'''
}