-
Notifications
You must be signed in to change notification settings - Fork 8
/
Jenkinsfile
35 lines (35 loc) · 897 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
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 './gradlew clean build'
}
}
post {
success {
archiveArtifacts "**/build/libs/*-all.jar"
}
failure {
cleanWs()
}
}
}
}
}