diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..ff005bfeb --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,18 @@ +node('Slave_AWS'){ + stage('Checkout') + { + git 'https://github.com/spring-projects/spring-petclinic.git' + } + stage('Build') + { + sh 'docker run --rm --name build_maven -v $(pwd):/app docker.io/maven:alpine bash -c "cd app;mvn clean install"' + } + stage('Unit Test') + { + junit 'target/surefire-reports/*.xml' + } + stage('Archive artifact') + { + archiveArtifacts 'target/spring-petclinic-1.5.1.jar' + } +}