Skip to content
Open

kk #2081

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions jenkinsfile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
pipeline {
agent any


stages {
stage('Clone') {
steps {
git branch: 'main', url: 'https://github.com/srinfotech7358/spring-petclinic.git'
}
}
stage('Build') {
steps {
bat 'mvn clean install'
}
}
stage('Test') {
steps {
bat 'mvn test'
}
}
stage('Generate Juint Test Results') {
steps {
junit 'target/surefire-reports/*.xml'
}
}
stage('Generate Artifacts') {
steps {
archiveArtifacts artifacts: 'target/*.war', followSymlinks: false
}
}
}
}
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@

<groupId>org.springframework.samples</groupId>
<artifactId>spring-petclinic</artifactId>
<version>3.4.0-SNAPSHOT</version>
<version>3.4.0-SNAPSHOT</version>
<packaging>war</packaging>

<name>petclinic</name>

Expand All @@ -23,7 +24,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- Important for reproducible builds. Update using e.g. ./mvnw versions:set
-DnewVersion=... -->
<project.build.outputTimestamp>2024-11-28T14:37:52Z</project.build.outputTimestamp>
<project.build.outputTimestamp>2025-05-21T14:37:52Z</project.build.outputTimestamp>

<!-- Web dependencies -->
<webjars-locator.version>1.0.1</webjars-locator.version>
Expand Down