From 44e53097dab55803672c15d5bcb994234e78d512 Mon Sep 17 00:00:00 2001 From: Andrew Shirley Date: Mon, 21 Jun 2021 14:20:04 +0100 Subject: [PATCH] Re-instate the API export After a discussion with blam I now understand the value of the SPI export so have added it back in (albeit with some significant changes from the original) https://discord.com/channels/687207715902193673/687207715902193679/855378432871759922 Signed-off-by: Andrew Shirley Signed-off-by: blam --- .changeset/good-hornets-hunt.md | 6 ++++++ plugins/jenkins/src/index.ts | 1 + 2 files changed, 7 insertions(+) diff --git a/.changeset/good-hornets-hunt.md b/.changeset/good-hornets-hunt.md index 7c92d7937c..2c618a955e 100644 --- a/.changeset/good-hornets-hunt.md +++ b/.changeset/good-hornets-hunt.md @@ -57,6 +57,12 @@ jenkins: apiKey: ${JENKINS_PASSWORD} ``` +## Change javascript API + +As part of the above change, the javascript API exposed by the plugin as a possible place for customisation has changed. +The ApiRef now has an id of `plugin.jenkins.service2` and has entity-based functions to match the nedpoints exposed by +the new backend plugin + ## Change BuildWithStepsPage route The plugin originally provided a route to view a particular build of a particular branch so that if you wanted to view diff --git a/plugins/jenkins/src/index.ts b/plugins/jenkins/src/index.ts index 1a72b438ab..fb0a27cb26 100644 --- a/plugins/jenkins/src/index.ts +++ b/plugins/jenkins/src/index.ts @@ -27,3 +27,4 @@ export { isJenkinsAvailable as isPluginApplicableToEntity, } from './components/Router'; export { JENKINS_ANNOTATION } from './constants'; +export * from './api';