-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathJenkinsfile
31 lines (31 loc) · 861 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
pipeline {
agent any
stages {
stage('Build') {
steps {
sh 'mvn -B clean package'
}
}
stage('Package Release') {
steps {
sh 'rm -rf archive'
sh 'rm -f pcb-tools.zip'
sh 'mkdir archive'
sh 'cp bom-panelizer/target/bom-panelizer-1.0-SNAPSHOT-jar-with-dependencies.jar archive/bom-panelizer.jar'
sh 'cp README.md archive/'
sh 'cp LICENSE archive/'
sh 'mkdir archive/samples'
sh 'cp bom-panelizer/src/test/resources/sample-*.csv archive/samples/'
sh 'cp bom-panelizer/etc/scripts/bom-panelizer.bat archive/'
script {
zip zipFile: 'pcb-tools.zip', archive: true, dir: 'archive'
}
}
}
}
post {
always {
junit '**/surefire-reports/*.xml'
}
}
}