1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-11-06 09:09:19 +02:00

feat(dockerExecute): print docker image (#4534)

* print docker image for dockerExecute

* Update dockerExecute.groovy

---------

Co-authored-by: Anil Keshav <anil.keshav@sap.com>
Co-authored-by: Srinikitha Kondreddy <srinikitha.kondreddy@sap.com>
Co-authored-by: Jesse Awan <jesse.awan@sap.com>
This commit is contained in:
trancy
2023-11-08 07:50:07 +08:00
committed by GitHub
parent ef9b3d0dc9
commit 428afbb635

View File

@@ -186,7 +186,7 @@ void call(Map parameters = [:], body) {
if (env.POD_NAME && isContainerDefined(config)) { if (env.POD_NAME && isContainerDefined(config)) {
container(getContainerDefined(config)) { container(getContainerDefined(config)) {
withEnv(dockerEnvVars) { withEnv(dockerEnvVars) {
echo "[INFO][${STEP_NAME}] Executing inside a Kubernetes Container." echo "[INFO][${STEP_NAME}] Executing inside a Kubernetes Container. Docker image: ${config.dockerImage}"
body() body()
sh "chown -R 1000:1000 ." sh "chown -R 1000:1000 ."
} }
@@ -222,7 +222,7 @@ void call(Map parameters = [:], body) {
} }
dockerExecuteOnKubernetes(dockerExecuteOnKubernetesParams) { dockerExecuteOnKubernetes(dockerExecuteOnKubernetesParams) {
echo "[INFO][${STEP_NAME}] Executing inside a Kubernetes Pod" echo "[INFO][${STEP_NAME}] Executing inside a Kubernetes Pod. Docker image: ${config.dockerImage}"
body() body()
} }
} }