diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..7c165545 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,27 @@ +pipeline { + agent any + stages { + stage('build') { + steps { + sh 'mvn compile' + } + } + + stage('test') { + steps { + sh 'mvn clean test' + } + } + + stage('package') { + steps { + sh 'mvn package -DskipTests' + archiveArtifacts 'target/*.war' + } + } + + } + tools { + maven 'Maven 3.6.3' + } +} \ No newline at end of file diff --git a/README.md b/README.md index 38a78cde..9bb959a6 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ +Test 1 : test build triggers This is a Sample Maven App. +Test Branch protection rules