From b16b7adfa71893873d502d1c84de56f81612ec6c Mon Sep 17 00:00:00 2001 From: Jason Hiser <jdhiser@gmail.com> Date: Fri, 13 Sep 2019 15:12:44 -0400 Subject: [PATCH] set the right project id for uploading new issues --- cicd_testing/do-fuzz.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cicd_testing/do-fuzz.sh b/cicd_testing/do-fuzz.sh index d2ec322..f07fd6d 100755 --- a/cicd_testing/do-fuzz.sh +++ b/cicd_testing/do-fuzz.sh @@ -41,8 +41,8 @@ function main() exit 0 else # upload the report. - local upload_report=$(curl --request POST --header "PRIVATE-TOKEN: PXLgVFpgjmmugAiHTJzx " --form "file=@report.txt" https://git.zephyr-software.com/api/v4/projects/159/uploads) - + local proj_id=114 + local upload_report=$(curl --request POST --header "PRIVATE-TOKEN: PXLgVFpgjmmugAiHTJzx " --form "file=@report.txt" https://git.zephyr-software.com/api/v4/projects/proj_id/uploads) local date=$(date) local mach=$(uname -a) local host=$(hostname) @@ -62,7 +62,9 @@ Full crash report is available here: $md EOM local title="Turbo found $crash_count bugs in libEHP on $date" - curl --request POST --data-urlencode "desc=$desc" --data-urlencode "title=$title" --header "PRIVATE-TOKEN: PXLgVFpgjmmugAiHTJzx " "https://git.zephyr-software.com//api/v4/projects/159/issues?&labels=bug&assignee_ids[]=3") + + # finally post an issue + curl --request POST --data-urlencode "desc=$desc" --data-urlencode "title=$title" --header "PRIVATE-TOKEN: PXLgVFpgjmmugAiHTJzx " "https://git.zephyr-software.com//api/v4/projects/$proj_id/issues?&labels=bug&assignee_ids[]=3") echo "$crash_count count crashes found!" exit 1 -- GitLab