local upload_report=$(curl --request POST --header"PRIVATE-TOKEN: PXLgVFpgjmmugAiHTJzx "--form"file=@fail_report.yaml" https://git.zephyr-software.com/api/v4/projects/$proj_id/uploads)
local date=$(date)
local date=$(date)
local mach=$(uname-a)
local mach=$(uname-a)
local host=$(hostname)
local host=$(hostname)
...
@@ -60,17 +63,15 @@ Date: $date
...
@@ -60,17 +63,15 @@ Date: $date
Machine details: $mach
Machine details: $mach
Full crash report is available here: $md
See [job details]($proj_url/-/jobs/$CI_JOB_ID), look at the artifacts for the full report.
and [pipeline details]($proj_url/pipelines/$CI_PIPELINE_ID).
See [job details](https://git.zephyr-software.com/opensrc/libehp/-/jobs/$CI_JOB_ID)
and [pipeline details](https://git.zephyr-software.com/opensrc/libehp/pipelines/$CI_PIPELINE_ID).
EOM
EOM
local title="Turbo found $crash_count bugs in libEHP on $date"
local title="Turbo found $crash_count bugs in libEHP on $date"
local assignee_id="$GITLAB_USER_ID"
local assignee_id="$GITLAB_USER_ID"
# finally post an issue
# finally post an issue
curl --request POST --data-urlencode"description=$desc"--data-urlencode"title=$title"--header"PRIVATE-TOKEN: PXLgVFpgjmmugAiHTJzx ""https://git.zephyr-software.com//api/v4/projects/$proj_id/issues?&labels=bug,turbo&assignee_ids[]=$assignee_id"