-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use legacy instance id instead of Instance Identity (#95)
- Loading branch information
Showing
4 changed files
with
25 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/main/java/com/microsoft/jenkins/containeragents/util/CustomJenkinsFacade.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.microsoft.jenkins.containeragents.util; | ||
|
||
import jenkins.model.Jenkins; | ||
|
||
/** | ||
* Facade to Jenkins instance . Encapsulates all calls to Jenkins instance so that tests can replace this facade | ||
* with a stub. It is inspired by Jenkins Facade of plugin-util-api-plugin. | ||
* | ||
*/ | ||
public class CustomJenkinsFacade { | ||
|
||
public String getLegacyInstanceId() { | ||
return Jenkins.get().getLegacyInstanceId(); | ||
} | ||
} |
17 changes: 0 additions & 17 deletions
17
src/main/java/com/microsoft/jenkins/containeragents/util/InstanceIdentityFacade.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters