forked from RelativityMC/C2ME-forge
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
30 lines (30 loc) · 808 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
pipeline {
agent { label 'slave' }
options { timestamps() }
stages {
stage('Build') {
tools {
jdk "OpenJDK 16"
}
steps {
withMaven(
maven: '3',
mavenLocalRepo: '.repository',
publisherStrategy: 'EXPLICIT'
) {
scmSkip(deleteBuild: true, skipPattern:'.*\\[CI-SKIP\\].*')
sh 'chmod +x ./gradlew'
sh './gradlew clean build'
}
}
post {
success {
archiveArtifacts "**/build/libs/*-all.jar"
}
failure {
cleanWs()
}
}
}
}
}