diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000000..871d6d38d5c --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,28 @@ +pipeline{ + agent any + tools { + maven 'Maven' + } + + stages{ + stage('CONTINOUSDOWNLOAD'){ + steps{ + git credentialsId: 'Github_Token', + url: 'https://github.com/AndrewBanin/spring-petclinic.git' + } + + } + + stage('Maven Build'){ + steps{ + sh "mvn clean package" + } + } + stage('archive artifact'){ + steps{ + archiveArtifacts artifacts: 'target/*.jar', followSymlinks: false + } + } + + } +} \ No newline at end of file