-
Notifications
You must be signed in to change notification settings - Fork 12
/
Jenkinsfile
39 lines (32 loc) · 963 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
#!groovy
pipeline {
agent any
stages {
stage('prepare') {
steps {
writeFile([file: '_localconfig.yml', text: "baseurl: \"/jenkins/job/opus4userdoc/job/${env.BRANCH_NAME}/OPUS_4_Handbuch\""])
}
}
stage('build') {
steps {
sh 'pwd'
// install required bundles
sh 'bundle install'
// build documentation
sh 'bundle exec jekyll build --config _config.yml,_localconfig.yml'
}
}
stage('publish') {
steps {
publishHTML(target: [
allowMissing: false,
alwaysLinkToLastBuild: false,
keepAll: true,
reportDir: '_site/',
reportFiles: 'index.html',
reportName: 'OPUS 4 Handbuch'
])
}
}
}
}