To use this function add it to the class library file named OrchestratorPluginSRMService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: OrchestratorPluginSRMService.ts
Public Function: SRMSiteGetByName
publicSRMSiteGetByName(strSRMSiteName:string):SRMSite{
letarrSRMSite:SRMSite[]=this.SRMSitesGet();
letobjSRMSite:SRMSite=arrSRMSite.find((objSRMSite:SRMSite):boolean=>{
returnobjSRMSite.name===strSRMSiteName;
});
returnobjSRMSite;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
