mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 22:35:49 +00:00
fix jenkisfile
This commit is contained in:
parent
308cfae7b6
commit
56e9f9fb3c
1 changed files with 5 additions and 7 deletions
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
|
@ -5,13 +5,11 @@ pipeline {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
echo 'Building..'
|
echo 'Building..'
|
||||||
docker login -u="natyramone" -p="polaco2312"
|
sh 'docker login -u="natyramone" -p="polaco2312"'
|
||||||
|
sh 'mvn -q package'
|
||||||
mvn -q package
|
sh 'docker build -t pet-clinic .'
|
||||||
|
sh 'docker tag pet-clinic $DOCKER_USER/pet-clinic:latest'
|
||||||
docker build -t pet-clinic .
|
sh 'docker push $DOCKER_USER/pet-clinic:latest'
|
||||||
docker tag pet-clinic $DOCKER_USER/pet-clinic:latest
|
|
||||||
docker push $DOCKER_USER/pet-clinic:latest
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue