Commit d9abf01c by Ryan McKinley Committed by Marcus Efraimsson

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.
parent f78b3b13
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment