forked from frankaemika/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
39 lines (33 loc) · 959 Bytes
/
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
#!groovy
node('docker') {
step([$class: 'StashNotifier'])
try {
checkout scm
docker.build('fci-docs-ci-worker').inside {
withEnv(["HOME=${env.WORKSPACE}"]) {
sh 'npm install [email protected]'
sh 'pip3 install --user --upgrade -r requirements.txt'
sh 'make clean'
stage('Build HTML') {
sh 'make html'
publishHTML([allowMissing: false,
alwaysLinkToLastBuild: false,
keepAll: true,
reportDir: 'build/html',
reportFiles: 'index.html',
reportName: 'FCI Documentation'])
}
stage('Run linter') {
sh 'node $(npm bin)/eclint check source/*.rst'
sh 'make linkcheck'
}
}
}
currentBuild.result = 'SUCCESS'
} catch (e) {
currentBuild.result = 'FAILED'
throw e;
} finally {
step([$class: 'StashNotifier'])
}
}