From 6cf88cc0e2b05da6e11f9e92bfaa8f426d9dc75e Mon Sep 17 00:00:00 2001 From: vishnu1411 Date: Sat, 16 Dec 2023 10:26:02 -0500 Subject: [PATCH] Jenkinsfile_SP --- Jenkinsfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..391dfd383 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,15 @@ +node('SP'){ + stage('sourcecode'){ + //build step + git branch: 'main', url: 'https://github.com/vishnu1411/spring-petclinic.git' + } + stage('Build and package'){ + //building using maven and install + sh 'mvn clean package' + } + stage('Archive test results'){ + //archive test reuslts + junit '**/surefire-reports/*xml' + archiveArtifacts artifacts: '**/*.war', followSymlinks: false + } +} \ No newline at end of file