-
Notifications
You must be signed in to change notification settings - Fork 5
/
Jenkinsfile
40 lines (39 loc) · 964 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
39
40
#!/usr/bin/env groovy
pipeline {
agent {
label 'os:linux'
}
options {
skipDefaultCheckout()
disableConcurrentBuilds()
buildDiscarder(logRotator(
daysToKeepStr: '90',
artifactNumToKeepStr: '10'
))
ansiColor('xterm')
}
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Maven Package') {
tools {
jdk 'graalvm-ce-java11-21.0.0.2'
}
steps {
sh './mvnw clean package -Pnative'
}
}
stage('Archive') {
steps {
sh 'rm -vf *.tar.gz'
dir('target') {
sh 'tar czf hashi-admin.tar.gz hashi-admin'
}
archiveMavenArtifact name: 'hashi-admin', glob: 'target/*.tar.gz', extension: 'tar.gz'
}
}
}
}