diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..d009fc6a --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,41 @@ +pipeline { + agent { + docker { + image 'maven:3.6.3-jdk-11-slim' + } + + } + stages { + stage('Build') { + steps { + echo 'compile maven app' + sh 'mvn compile' + } + } + + stage('Test') { + steps { + echo 'test maven app' + sh 'mvn clean test' + } + } + + stage('Package') { + steps { + echo 'package maven app' + sh 'mvn package -DskipTests' + archiveArtifacts 'target/*.war' + } + } + + } + tools { + maven 'Maven 3.6.3' + } + post { + always { + echo 'This pipeline is completed..' + } + + } +} \ No newline at end of file diff --git a/test.md b/test.md new file mode 100644 index 00000000..471c3066 --- /dev/null +++ b/test.md @@ -0,0 +1,4 @@ +Example App +================ + +Change my mind: Harry Potter and the Methods of Rationality by Eliezer Yudkowsky (Pen name Less Wrong) is the best fan fiction in the Potter Universe.