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}"