mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-29 18:55:49 +00:00
changes
This commit is contained in:
parent
0f411e5360
commit
b93bd51f52
2 changed files with 14 additions and 21 deletions
|
@ -2,6 +2,6 @@ FROM amazoncorretto:11
|
|||
LABEL Version="1.0"
|
||||
LABEL Authour="raakhi"
|
||||
LABEL Description="This-is-for-practice"
|
||||
ADD https://github.com/peddiraju3122b/spring-petclinic.git /home/ubuntu/spring-petclinic
|
||||
ADD https://github.com/peddiraju3122b/spring-petclinic.git /home/ubuntu/spring-petclinic/Dockerfile
|
||||
EXPOSE 8080
|
||||
CMD ["java","-jar","/spring-petclinic-2.4.2.jar"]
|
33
jenkinsfile
33
jenkinsfile
|
@ -1,25 +1,18 @@
|
|||
pipeline
|
||||
{
|
||||
agent
|
||||
{
|
||||
label 'ubuntu-node'
|
||||
|
||||
}
|
||||
stages
|
||||
{
|
||||
stage ('git clone')
|
||||
{
|
||||
steps
|
||||
{
|
||||
git url:'https://github.com/peddiraju3122b/spring-petclinic.git'
|
||||
|
||||
pipeline{
|
||||
agent{ label 'node4'}
|
||||
stages{
|
||||
stage('clone'){
|
||||
steps{
|
||||
git url: 'https://github.com/peddiraju3122b/spring-petclinic.git',
|
||||
branch: 'main'
|
||||
}
|
||||
}
|
||||
stage ('mvn package')
|
||||
{
|
||||
steps
|
||||
{
|
||||
sh 'mvn package'
|
||||
stage('image'){
|
||||
steps{
|
||||
sh """
|
||||
docker image build -t spc:1.0 .
|
||||
docker image tag spc:1.0 peddiraju3122b/spc:1.0
|
||||
docker image push peddiraju3122b/spc:1.0 ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue