diff --git a/README.md b/README.md index 38a78cde..6cbc838e 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -This is a Sample Maven App. +This is a Sample Maven App diff --git a/jenkinsfile b/jenkinsfile new file mode 100644 index 00000000..52b463f8 --- /dev/null +++ b/jenkinsfile @@ -0,0 +1,30 @@ +pipeline{ + +agent any + +tools{ +maven 'Maven 3.6.3' +} + +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' +} +} +} + +} \ No newline at end of file diff --git a/test.txt b/test.txt new file mode 100644 index 00000000..6a128087 --- /dev/null +++ b/test.txt @@ -0,0 +1,2 @@ +this sample app test +test \ No newline at end of file