diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..8e76dd69 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,31 @@ +pipeline { + agent { + docker { + image 'maven:3.6.3-jdk-11-slim' + } + + } + stages { + stage('build') { + steps { + echo 'compile maven app' + sh 'mvn compile' + } + } + + stage('unit 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/README.md b/README.md index 38a78cde..6064eb12 100644 --- a/README.md +++ b/README.md @@ -1 +1,4 @@ +I am srikanth reddy +My brother is krishna Bharath +My sister-in-law is Havya This is a Sample Maven App.