Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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..'
}

}
}
4 changes: 4 additions & 0 deletions test.md
Original file line number Diff line number Diff line change
@@ -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.