Skip to content

Commit

Permalink
Add more metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
headcr4sh committed Oct 3, 2017
1 parent 7afa75b commit 24db52b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions assets/in
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ fi
project_status="./qualitygate_project_status.json"
sq_qualitygates_project_status "${sonar_login}:${sonar_password}" "${sonar_host_url}" "${analysis_id}" > "${project_status}"
# TODO Parse contents of project_status and popuplate metadata.
project_status=$(jq -r '.projectStatus.status // ""' < "${project_status}")
jq -n "{
version: { ce_task_id: \"${ce_task_id}\"},
metadata: [
{ name: \"ce_task_status\", value: \"${ce_task_status}\" }
{ name: \"ce_task_status\", value: \"${ce_task_status}\" },
{ name: \"project_status\", value: \"${project_status}\" }
]
}" >&3

0 comments on commit 24db52b

Please sign in to comment.