-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathJenkinsfile
50 lines (44 loc) · 1.21 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
pipeline {
agent any
options {
timestamps()
buildDiscarder(logRotator(numToKeepStr: '30'))
}
stages {
stage('Checkout'){
steps{
sh 'mkdir -p maurodatamapper.github.io'
dir('maurodatamapper.github.io') {
git branch: 'main',
credentialsId: 'joe-github-deploy-key',
url: '[email protected]:MauroDataMapper/maurodatamapper.github.io.git'
}
}
}
stage('Build'){
steps{
sh '/usr/local/bin/mkdocs build'
}
}
// stage('Deploy main') {
// when {
// allOf {
// branch 'main'
// expression {
// currentBuild.currentResult == 'SUCCESS'
// }
// }
// }
// steps {
// dir('maurodatamapper.github.io') {
// sh "mkdocs gh-deploy --config-file ../mkdocs.yml --remote-branch main"
// }
// }
// }
}
post {
always {
zulipNotification(topic: 'mdm-docs')
}
}
}