forked from github-mirror/CoreProtect
Add Jenkinsfile
Build / Build (push) Failing after 2s
Build / Build (push) Failing after 2s
This commit is contained in:
1 parent
30f90262b5
commit
983adcec4f
1 file changed
+38
Vendored
+38
@@ -0,0 +1,38 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
triggers {
|
||||
cron('H 3 * * *')
|
||||
}
|
||||
|
||||
tools {
|
||||
jdk 'JDK25'
|
||||
maven 'Maven3'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'mvn -B verify'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Archive') {
|
||||
steps {
|
||||
archiveArtifacts artifacts: 'target/*.jar', fingerprint: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
failure {
|
||||
echo 'Build failed.'
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user