forked from MEGA65/mega65-user-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.jenkinsfile
More file actions
72 lines (72 loc) · 2.25 KB
/
Copy path.jenkinsfile
File metadata and controls
72 lines (72 loc) · 2.25 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
pipeline {
agent {
docker { image 'megatex' }
}
stages {
stage('Cleanup') {
steps {
sh 'make realclean'
}
}
/*
stage('Clone libc and core') {
steps {
sh "rm -rf mega65-libc; git clone https://github.com/MEGA65/mega65-libc.git"
sh "rm -rf mega65-core; git clone --branch=development https://github.com/MEGA65/mega65-core.git"
}
}
*/
stage('Build MEGA65 Book') {
steps {
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh "make REPOPATH=. mega65-book.pdf"
}
}
}
stage('Build MEGA65 BASIC65 Reference') {
steps {
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh "make REPOPATH=. mega65-basic65-reference.pdf"
}
}
}
stage('Build MEGA65 Chipset Reference') {
steps {
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh "make REPOPATH=. mega65-chipset-reference.pdf"
}
}
}
stage('Build MEGA65 Developer Guide') {
steps {
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh "make REPOPATH=. mega65-developer-guide.pdf"
}
}
}
stage('Build MEGA65 Userguide') {
steps {
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh "make REPOPATH=. mega65-userguide.pdf"
}
}
}
stage('Set build result') {
steps {
script {
def files = findFiles(glob: 'mega65-*.pdf')
// if we did not build any PDF successfully, we need to set the build result
if (files.length == 0) {
currentBuild.result = 'FAILURE'
}
}
}
}
}
post {
always {
archiveArtifacts artifacts: "mega65-*.pdf*",
fingerprint: true
}
}
}