-
Notifications
You must be signed in to change notification settings - Fork 17
/
Jenkinsfile
54 lines (54 loc) · 1.17 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
pipeline {
agent { dockerfile true }
triggers {
pollSCM('H/5 * * * *')
}
stages {
stage('Notify Stash') {
steps {
script {
notifyBitbucket()
}
}
}
stage('Build & Check') {
environment {
HOME="${env.WORKSPACE}"
}
stages {
stage('Install dependencies') {
steps {
sh 'npm install [email protected]'
sh 'pip3 install --user --upgrade -r requirements.txt'
sh 'make clean'
}
}
stage('Build HTML') {
steps {
sh 'make html'
publishHTML([allowMissing: false,
alwaysLinkToLastBuild: false,
keepAll: true,
reportDir: 'build/html',
reportFiles: 'index.html',
reportName: 'FCI Documentation'])
}
}
stage('Run linter') {
steps {
sh 'node $(npm bin)/eclint check source/*.rst'
sh 'make linkcheck'
}
}
}
}
}
post {
always {
cleanWs()
script {
notifyBitbucket()
}
}
}
}