-
Notifications
You must be signed in to change notification settings - Fork 2
/
Jenkinsfile
40 lines (39 loc) · 1.33 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
pipeline {
agent {
label 'git-websites'
}
options {
buildDiscarder(logRotator(numToKeepStr:'2'))
disableConcurrentBuilds()
timeout(time:50,unit:'MINUTES')
}
stages {
stage('build Apache NetBeans antora website') {
steps {
sh 'rm -rf build'
sh 'git clone --depth 1 --branch asf-site https://gitbox.apache.org/repos/asf/netbeans-website.git build/site'
dir('build/site') {
//sh 'git checkout antora'
sh 'git status'
sh 'git rm -r . --ignore-unmatch'
}
sh 'rm -rf uibuild'
sh 'git clone --depth 1 https://github.com/apache/netbeans-antora-ui.git uibuild'
dir('uibuild') {
// prepare folder
sh 'mkdir -p public/_'
sh 'npm --cache=.cache/npm install '
sh 'npm --cache=.cache/npm run gulp -- bundle'
}
sh 'npm run clean-install'
sh 'npm run build-noclean'
dir('build/site') {
sh 'git add .'
sh 'echo `git commit -m "site build"`'
sh 'git status'
sh 'git push https://gitbox.apache.org/repos/asf/netbeans-website.git asf-site'
}
}
}
}
}