diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..d77d8981 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,30 @@ +pipeline { + agent any + 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' + } +} \ No newline at end of file diff --git a/README.md b/README.md index 38a78cde..a3d28b46 100644 --- a/README.md +++ b/README.md @@ -1 +1,2 @@ This is a Sample Maven App. +commit diff --git a/test.md b/test.md new file mode 100644 index 00000000..6ebd7b12 --- /dev/null +++ b/test.md @@ -0,0 +1 @@ +hello sysfoo