mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
w/e
This commit is contained in:
parent
95786ffbfd
commit
b7bcdf16bd
1 changed files with 2 additions and 2 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -21,8 +21,8 @@ pipeline {
|
|||
steps {
|
||||
script {
|
||||
echo "Building Docker Image..."
|
||||
// Add a cache buster to force no-cache on certain steps
|
||||
def dockerImage = docker.build("spring-petclinic", "--build-arg CACHEBUSTER=$(date +%s) --no-cache .")
|
||||
// Correctly escape dollar signs in Groovy string
|
||||
def dockerImage = docker.build("spring-petclinic", "--build-arg CACHEBUSTER=\\$(date +%s) --no-cache .")
|
||||
echo "Docker Image built: ${dockerImage.id}"
|
||||
// Store the Docker image ID in the environment if needed across stages
|
||||
env.DOCKER_IMAGE_ID = dockerImage.id
|
||||
|
|
Loading…
Reference in a new issue