You've already forked sap-jenkins-library
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:
@@ -186,7 +186,7 @@ void call(Map parameters = [:], body) {
|
||||
if (env.POD_NAME && isContainerDefined(config)) {
|
||||
container(getContainerDefined(config)) {
|
||||
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()
|
||||
sh "chown -R 1000:1000 ."
|
||||
}
|
||||
@@ -222,7 +222,7 @@ void call(Map parameters = [:], body) {
|
||||
}
|
||||
|
||||
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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user