-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathJenkinsfile
61 lines (54 loc) · 1.74 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
55
56
57
58
59
60
61
#!/usr/bin/env groovy
pipeline {
agent { label 'maven-11' }
triggers {
cron('H H * * 0')
}
options {
timestamps()
}
stages {
stage('Checkout') {
steps {
deleteDir()
checkout scm
}
}
stage('Prepare Indexer') {
steps {
dir('pluginFolder') {
git changelog: false,
poll: false,
url:'https://github.com/jenkinsci/backend-extension-indexer.git',
branch: 'master'
sh 'mvn -s ../settings.xml --no-transfer-progress clean install -DskipTests'
}
}
}
stage('Run Indexer') {
steps {
dir('pluginFolder') {
sh 'java -verbose:gc -jar ./target/*-bin/extension-indexer*.jar -plugins ./plugins && mv plugins ..'
}
}
}
stage('Generate Documentation') {
steps {
dir('docFolder') {
checkout scm
sh 'mvn -s ../settings.xml --no-transfer-progress clean install -DskipTests'
sh 'mv ../plugins . && java -verbose:gc -jar ./target/*-bin/pipeline-steps-doc-generator*.jar'
}
}
}
stage('Clean up') {
steps {
dir('docFolder') {
zip dir: './allAscii', glob: '', zipFile: 'allAscii.zip'
zip dir: './declarative', glob: '', zipFile: 'declarative.zip'
archiveArtifacts artifacts: 'allAscii.zip,declarative.zip', fingerprint: true
}
}
}
}
}