From 2e5f5ccc3fc8fa2b4c15e5a6777ed6543ddf96bb Mon Sep 17 00:00:00 2001 From: Drew Short Date: Wed, 22 Jan 2020 16:32:24 -0600 Subject: [PATCH] Return JSON payload with digest --- assets/out | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/assets/out b/assets/out index a9c13c9..f9e900d 100644 --- a/assets/out +++ b/assets/out @@ -64,4 +64,8 @@ echo "Target: ${rclone_target}" rclone copy "${rclone_source}" "${rclone_target}" --config /opt/rclone/config/.rclone.conf -echo "${BUILD_PIPELINE_NAME}-${BUILD_ID}" | md5sum | cut -d' ' -f1 >&3 \ No newline at end of file +jq -n "{ + version: { + digest: $((echo -n "md5:"; echo "test" | md5sum) | cut -d ' ' -f1 | jq -R .) + } +}" >&3 \ No newline at end of file