Skip to content

Commit

Permalink
script to send CI http update to dashboard api for active projects
Browse files Browse the repository at this point in the history
  • Loading branch information
thewolfpack committed Nov 20, 2017
1 parent 447cecd commit 5fe1f69
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions bin/update_dashboard_test_data
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/bin/bash


if [ -z "$API_HOST" ] ; then
export API_HOST=dev.vulk.co:4019
fi

echo -e "\nCoreDNS head" ; curl -qL -H 'Content-Type: application/json' -X POST -d '{
"source_key_project_monitor":
{
"source_project_id":"9",
"source_pipeline_id":"2988",
"pipeline_release_type":"head",
"source_pipeline_job_id":"31967"
}
}' http://$API_HOST/api/source_key_project_monitor

echo -e "\nPrometheus head" ; curl -qL -H 'Content-Type: application/json' -X POST -d '{
"source_key_project_monitor":
{
"source_project_id":"20",
"source_pipeline_id":"2990",
"pipeline_release_type":"head",
"source_pipeline_job_id":"31973"
}
}' http://$API_HOST/api/source_key_project_monitor

echo -e "\nKubernetes head" ; curl -qL -H 'Content-Type: application/json' -X POST -d '{
"source_key_project_monitor":
{
"source_project_id":"14",
"source_pipeline_id":"2989",
"pipeline_release_type":"head",
"source_pipeline_job_id":"31970"
}
}' http://$API_HOST/api/source_key_project_monitor

echo -e '\nKubernetes stable' ; curl -qL -H 'Content-Type: application/json' -X POST -d '{
"source_key_project_monitor":
{
"source_project_id":"14",
"source_pipeline_id":"2993",
"pipeline_release_type":"stable",
"source_pipeline_job_id":"31982"
}
}' http://$API_HOST/api/source_key_project_monitor

0 comments on commit 5fe1f69

Please sign in to comment.