Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker pipe #186

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
31 changes: 31 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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'
}
}

}
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
I am srikanth reddy
My brother is krishna Bharath
My sister-in-law is Havya
This is a Sample Maven App.