Skip to content

Commit e0ccd5a

Browse files
committed
extend JenkinsFacade with legacy instance id
1 parent 32f13c7 commit e0ccd5a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/io/jenkins/plugins/util/JenkinsFacade.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,16 @@ public boolean isPluginInstalled(final String pluginId) {
338338
return getJenkins().getPlugin(pluginId) != null;
339339
}
340340

341+
/**
342+
* Returns the unique identifier of this Jenkins that has been historically used to identify this Jenkins to
343+
* the outside world.
344+
*
345+
* @return legacy instance id of this Jenkins
346+
*/
347+
public String getLegacyInstanceId() {
348+
return getJenkins().getLegacyInstanceId();
349+
}
350+
341351
private Jenkins getJenkins() {
342352
return Jenkins.get();
343353
}

0 commit comments

Comments
 (0)