-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-pipeline.txt
57 lines (55 loc) · 1.56 KB
/
example-pipeline.txt
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
pipeline {
agent any
stages {
stage('Remove Old Device Trees') {
steps {
dir('/evo') {
sh '''
/scripts/14/01-preclean.sh
'''
}
}
}
stage('Initialise Repo') {
steps {
dir('/evo') {
sh '''
/scripts/14/02-init.sh
'''
}
}
}
stage('Clean Working Directory') {
steps {
dir('/evo') {
sh '''
/scripts/14/03-clean.sh ${JOB_BASE_NAME}
'''
}
}
}
stage('Build ROM') {
steps {
dir('/evo') {
sh '''
/scripts/14/04-build.sh ${JOB_BASE_NAME}
'''
script {
def artifactPath1 = "evolution/OTA/builds/${JOB_BASE_NAME}.json"
def artifactPath2 = "evolution/OTA/changelogs/${JOB_BASE_NAME}.txt"
archiveArtifacts artifacts: "${artifactPath1}, ${artifactPath2}", allowEmptyArchive: true
}
}
}
}
stage('Upload Artifacts') {
steps {
dir('/evo') {
sh '''
/scripts/14/05-upload.sh ${JOB_BASE_NAME}
'''
}
}
}
}
}