mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 07:15:49 +00:00
Test changes to Jenkinsfile - merges two pipelines into one
This commit is contained in:
parent
ca0fe24df1
commit
ffd9a684bb
1 changed files with 29 additions and 43 deletions
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
|
@ -1,6 +1,7 @@
|
|||
// Merge request pipeline
|
||||
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
environment {
|
||||
NEXUS_CREDS = credentials('nexus-cred')
|
||||
NEXUS_DOCKER_REPO_MR = '34.241.46.54:8085'
|
||||
|
@ -11,6 +12,7 @@ pipeline {
|
|||
}
|
||||
|
||||
stages {
|
||||
// Merge request pipeline
|
||||
stage('Checkstyle') {
|
||||
steps{
|
||||
echo 'Running gradle checkstyle'
|
||||
|
@ -57,24 +59,8 @@ pipeline {
|
|||
sh 'docker push $NEXUS_DOCKER_REPO_MR/spring-petclinic:${GIT_COMMIT}'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
cleanWs()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Main branch pipeline
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
environment {
|
||||
NEXUS_CREDS = credentials('nexus-cred')
|
||||
NEXUS_DOCKER_REPO_MAIN = '34.241.46.54:8084'
|
||||
}
|
||||
stages {
|
||||
// Main branch pipeline
|
||||
stage('Docker Build (Main)') {
|
||||
when {
|
||||
branch 'main'
|
||||
|
|
Loading…
Reference in a new issue