Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
46fcf9bf
Unverified
Commit
46fcf9bf
authored
Mar 06, 2020
by
Ryan McKinley
Committed by
GitHub
Mar 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Toolkit: wrap plugin signing stub with error checking (#22626)
parent
aa7e6cf5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
packages/grafana-toolkit/src/cli/tasks/manifest.ts
+2
-1
packages/grafana-toolkit/src/cli/tasks/plugin.ci.ts
+4
-0
No files found.
packages/grafana-toolkit/src/cli/tasks/manifest.ts
View file @
46fcf9bf
...
...
@@ -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}`);
}
...
...
packages/grafana-toolkit/src/cli/tasks/plugin.ci.ts
View file @
46fcf9bf
...
...
@@ -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'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment