mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:45:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
696df647ca
commit
7e46224ad9
1 changed files with 0 additions and 36 deletions
36
Jenkinsfile
vendored
36
Jenkinsfile
vendored
|
@ -34,42 +34,6 @@ pipeline{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pipeline{
|
|
||||||
agent any
|
|
||||||
when {
|
|
||||||
expression {
|
|
||||||
return env.CHANGE_ID != null
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stages {
|
|
||||||
stage ("build") {
|
|
||||||
steps {
|
|
||||||
echo "Running build automation..."
|
|
||||||
sh './mvnw checkstyle:checkstyle'
|
|
||||||
sh './mvnw verify'
|
|
||||||
sh './mvnw clean package -DskipTests=true'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage ("Build Docker Image") {
|
|
||||||
steps {
|
|
||||||
script{
|
|
||||||
app = docker.build("surtexx/mr:${GIT_COMMIT[0..7]}", "-f Dockerfile1 .")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage ("Push Docker Image") {
|
|
||||||
steps {
|
|
||||||
script{
|
|
||||||
docker.withRegistry('https://registry.hub.docker.com', 'docker_hub_login') {
|
|
||||||
app.push("${GIT_COMMIT[0..7]}")
|
|
||||||
app.push("latest")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pipeline{
|
pipeline{
|
||||||
agent any
|
agent any
|
||||||
when{
|
when{
|
||||||
|
|
Loading…
Reference in a new issue