-
Notifications
You must be signed in to change notification settings - Fork 47
/
Jenkinsfile
36 lines (36 loc) · 963 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
pipeline {
agent { label 'slave' }
options { timestamps() }
stages {
stage('SCM-SKIP') {
steps {
scmSkip(skipPattern:'.*\\[ci skip\\].*')
}
}
stage('Build') {
tools {
jdk "OpenJDK 21"
}
steps {
withMaven(
maven: '3',
mavenLocalRepo: '.repository',
publisherStrategy: 'EXPLICIT'
) {
sh 'git fetch --tags'
sh 'git reset --hard'
sh 'git submodule update --init --recursive --force'
sh './gradlew clean build'
}
}
post {
success {
archiveArtifacts "build/libs/*.jar"
}
failure {
cleanWs()
}
}
}
}
}