mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
grafana/toolkit: Smaller output after successful upload (#20580)
After toolkit uploads a report successfully, it should only show the response data, not the whole request info.
This commit is contained in:
parent
f78b3b1329
commit
d9abf01ce1
@ -348,9 +348,13 @@ const pluginReportRunner: TaskRunner<PluginCIOptions> = async ({ upload }) => {
|
||||
console.log('Sending report to:', url);
|
||||
const axios = require('axios');
|
||||
const info = await axios.post(url, report, {
|
||||
headers: { Authorization: 'bearer ' + GRAFANA_API_KEY },
|
||||
headers: { Authorization: 'Bearer ' + GRAFANA_API_KEY },
|
||||
});
|
||||
console.log('RESULT: ', info);
|
||||
if (info.status === 200) {
|
||||
console.log('OK: ', info.data);
|
||||
} else {
|
||||
console.warn('Error: ', info);
|
||||
}
|
||||
};
|
||||
|
||||
export const ciPluginReportTask = new Task<PluginCIOptions>('Generate Plugin Report', pluginReportRunner);
|
||||
|
Loading…
Reference in New Issue
Block a user