mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 05:45:50 +00:00
Create Jenkinsfile
This commit is contained in:
parent
91328af12d
commit
5f13b568f5
1 changed files with 22 additions and 0 deletions
22
Jenkinsfile
vendored
Normal file
22
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
|
||||||
|
//noinspection GroovyAssignabilityCheck
|
||||||
|
pipeline {
|
||||||
|
options {
|
||||||
|
buildDiscarder(logRotator(numToKeepStr: "10"))
|
||||||
|
}
|
||||||
|
agent {
|
||||||
|
label 'k8s' // This should match the label of your Kubernetes pod template
|
||||||
|
}
|
||||||
|
tools {
|
||||||
|
jdk 'jdk21'
|
||||||
|
maven 'maven'
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
// sh 'mvn spotless:apply install -Dspotless.check.skip=true'
|
||||||
|
sh 'mvn install -DskipITs -DskipTests=true'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue