Skip to content

Commit 7c2f58c

Browse files
committed
Jenkinsfile
1 parent c133c87 commit 7c2f58c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Jenkinsfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
pipeline {
2+
agent { label 'slave' }
3+
options { timestamps() }
4+
stages {
5+
stage('Build') {
6+
tools {
7+
jdk "OpenJDK 11"
8+
}
9+
steps {
10+
withMaven(
11+
maven: '3',
12+
mavenLocalRepo: '.repository',
13+
publisherStrategy: 'EXPLICIT'
14+
) {
15+
scmSkip(deleteBuild: true, skipPattern:'.*\\[CI-SKIP\\].*')
16+
sh 'chmod +x ./gradlew'
17+
sh './gradlew clean build'
18+
}
19+
}
20+
post {
21+
success {
22+
archiveArtifacts "build/libs/*.jar"
23+
}
24+
failure {
25+
cleanWs()
26+
}
27+
}
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)