Skip to content

Instantly share code, notes, and snippets.

@scherler
Last active April 26, 2016 12:32
Show Gist options
  • Save scherler/e4f75bf6ec81e9ee6981ba6a41c6cdd6 to your computer and use it in GitHub Desktop.
Save scherler/e4f75bf6ec81e9ee6981ba6a41c6cdd6 to your computer and use it in GitHub Desktop.
Questions around current implementation

blueocean-web/src/main/js/main.jsx

ExtensionPoint.registerExtensionPoint("jenkins.main.routes", (extensions) => {
    startApp();
});

That means we only can register one that extensionPoint and no other since the startApp(); can only be run once, correct?

blueocean-admin/src/main/js/jenkins-js-extension.yaml

  - component: PipelineStore
    extensionPoint: jenkins.main.stores

I added the above, how can I get it in bo-web? I tried

blueocean-web/src/main/js/main.jsx

function makeRoutes() {
    const stores = ExtensionPoint.getExtensions("jenkins.main.stores")
...
});

But that is undefined. How can I get the Component I defined in admin as extension?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment