diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..a538fd8d --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,36 @@ +pipeline { + agent any + stages { + stage('build') { + steps { + echo 'compiling sysfoo app...' + sh 'mvn compile' + } + } + + stage('test') { + steps { + echo 'running unit tests....' + sh 'mvn clean test' + } + } + + stage('package') { + steps { + echo 'generating artifact....' + sh 'mvn package -DskipTests' + archiveArtifacts 'target/*.war' + } + } + + } + tools { + maven 'Maven 3.6.3' + } + post { + always { + echo 'This pipeline is completed..' + } + + } +} diff --git a/README.md b/README.md index 38a78cde..3612fc27 100644 --- a/README.md +++ b/README.md @@ -1 +1,2 @@ This is a Sample Maven App. +sadasdasd