This commit is contained in:
KVKR31 2023-07-28 23:06:45 +05:30
parent 0a529015bc
commit 8b5bbc5aa4

31
jenkinsfile Normal file
View file

@ -0,0 +1,31 @@
pipeline {
stage { label JDK-17}
options {
timeout(time: 30, unit: 'MINUTES')
}
triggers {
pollscm ('* * * * *')
}
tools {
'JDK-17'
}
stages {
stage('vcs') {
steps {
git url: 'https://github.com/KVKR31/dummy.git',
branch: 'main'
}
}
stage('build and package') {
steps {
sh script: 'mvn package'
}
}
stage('reportind') {
steps {
archiveArtifacts artifacts: '**/target/springpetclinic-*.jar'
junit testResults: '**/target/surefire-reports/TEST-*.xml'
}
}
}
}