Skip to content

Commit

Permalink
Add variables
Browse files Browse the repository at this point in the history
Signed-off-by: Divya Madala <divyaasm@amazon.com>
  • Loading branch information
Divyaasm committed Jul 10, 2023
1 parent ef426ae commit 5b8cdab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vars/patchDockerImage.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ void call(Map args = [:]) {
#!/bin/bash
docker pull ${docker_image}
$build_time=`docker inspect --format '{{ index .Config.Labels "org.label-schema.build-date"}}' ${docker_image}`
$build_number=`docker inspect --format '{{ index .Config.Labels "org.label-schema.description"}}' ${docker_image}`
build_time=`docker inspect --format '{{ index .Config.Labels "org.label-schema.build-date"}}' ${docker_image}`
build_number=`docker inspect --format '{{ index .Config.Labels "org.label-schema.description"}}' ${docker_image}`
"""
println("docker image sucessfully pulled and inspected, exit 1 ${build_time} ${build_number}")
}

0 comments on commit 5b8cdab

Please sign in to comment.