mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Toolkit: wrap plugin signing stub with error checking (#22626)
This commit is contained in:
parent
aa7e6cf55f
commit
46fcf9bf08
@ -39,7 +39,8 @@ const manifestRunner: TaskRunner<ManifestOptions> = async ({ folder }) => {
|
||||
// Call a signing service
|
||||
const GRAFANA_API_KEY = process.env.GRAFANA_API_KEY;
|
||||
if (GRAFANA_API_KEY) {
|
||||
const plugin = require('plugin.json');
|
||||
const pluginPath = path.join(folder, 'plugin.json');
|
||||
const plugin = require(pluginPath);
|
||||
const url = `https://grafana.com/api/plugins/${plugin.id}/sign`;
|
||||
console.log(`TODO: sign and save: ${url}`);
|
||||
}
|
||||
|
@ -168,7 +168,11 @@ const packagePluginRunner: TaskRunner<PluginCIOptions> = async () => {
|
||||
});
|
||||
|
||||
// Write a manifest.txt file in the dist folder
|
||||
try {
|
||||
await execTask(manifestTask)({ folder: distContentDir });
|
||||
} catch (err) {
|
||||
console.warn(`Error signing manifest: ${distContentDir}`, err);
|
||||
}
|
||||
|
||||
console.log('Building ZIP');
|
||||
let zipName = pluginInfo.id + '-' + pluginInfo.info.version + '.zip';
|
||||
|
Loading…
Reference in New Issue
Block a user