From cf08f3c7c81b243114c36a6872c715e938e77541 Mon Sep 17 00:00:00 2001 From: Marcus Holl Date: Fri, 17 May 2019 16:18:02 +0200 Subject: [PATCH] print the mapping via jq --- resolvePlugins.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resolvePlugins.sh b/resolvePlugins.sh index 05d5db23f..fb41c634e 100755 --- a/resolvePlugins.sh +++ b/resolvePlugins.sh @@ -31,4 +31,6 @@ docker run \ -f Jenkinsfile \ --runWorkspace /workspace -[ -f "${RESULT}" ] && cat "${RESULT}" +[ -f "${RESULT}" ] || { echo "Result file containing step to plugin mapping not found (${RESULT})."; exit 1; } + +which -s jq && jq 'keys[] as $k | .[$k] | keys as $v | $k, [$v]' "${RESULT}"