mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 23:05:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
76756dabb1
commit
f4e4e1d1e9
1 changed files with 9 additions and 0 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -7,6 +7,15 @@ pipeline {
|
|||
DOCKER_CREDENTIALS_ID = 'dockerhub-credentials' // Jenkins credential ID for Docker Hub
|
||||
}
|
||||
stages {
|
||||
stage('Verify Docker Version') {
|
||||
agent {
|
||||
docker { image "${DOCKER_BUILD_IMAGE}" }
|
||||
}
|
||||
steps {
|
||||
echo 'Checking Docker version...'
|
||||
sh 'docker --version'
|
||||
}
|
||||
}
|
||||
stage('Checkstyle') {
|
||||
when {
|
||||
expression { env.CHANGE_ID != null } // Only run for merge requests
|
||||
|
|
Loading…
Reference in a new issue