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