mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 22:35:50 +00:00
change Jenkinfile
This commit is contained in:
parent
b9af08c703
commit
90d9146f95
1 changed files with 3 additions and 2 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -1,5 +1,8 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label 'pipeline-agent' }
|
agent { label 'pipeline-agent' }
|
||||||
|
environment {
|
||||||
|
IMAGE = credentials('docker_image_name')
|
||||||
|
}
|
||||||
stages {
|
stages {
|
||||||
stage ('Checkstyle') {
|
stage ('Checkstyle') {
|
||||||
when {
|
when {
|
||||||
|
@ -35,7 +38,6 @@ pipeline {
|
||||||
changeRequest()
|
changeRequest()
|
||||||
}
|
}
|
||||||
environment {
|
environment {
|
||||||
IMAGE = credentials('docker_image_name')
|
|
||||||
REGISTRY = credentials('nexus_url_main')
|
REGISTRY = credentials('nexus_url_main')
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
|
@ -50,7 +52,6 @@ pipeline {
|
||||||
branch 'main'
|
branch 'main'
|
||||||
}
|
}
|
||||||
environment {
|
environment {
|
||||||
IMAGE = credentials('docker_image_name')
|
|
||||||
REGISTRY = credentials('nexus_url_main')
|
REGISTRY = credentials('nexus_url_main')
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
|
|
Loading…
Reference in a new issue