-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjenkins.pipeline
66 lines (64 loc) · 1.64 KB
/
jenkins.pipeline
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
pipeline
{
agent any
environment { LANG = 'en_US.UTF-8' }
stages
{
stage('update source')
{
steps
{
script
{
try
{
dir('/home/android/lineage-17.1/kernel/nubia/sm8150')
{
sh label: '--- Processing --- ',
script: 'rsync -a $WORKSPACE/ ./ --exclude={.git*,.*}'
}
}
catch (e)
{
currentBuild.result = 'UNSTABLE'
throw e
}
}
}
}
stage('build kernel')
{
steps
{
script
{
try
{
dir('/home/android/lineage-17.1')
{
sh label: '--- Processing --- ',
script: 'bash make.sh kernel_image lineage_nx627j eng'
}
}
catch (e)
{
currentBuild.result = 'FAILED'
throw e
}
}
}
}
}
post
{
success
{
dir('/home/android/lineage-17.1/out/target/product/nx627j')
{
archiveArtifacts artifacts: 'kernel',
fingerprint: true,
onlyIfSuccessful: true
}
}
}
}