public class RundeckJobProjectLinkerAction extends Object implements Action
Action
used to display a Rundeck icon with a link to the Rundeck job page, and some information about the
Rundeck job, on the Jenkins job page.Constructor and Description |
---|
RundeckJobProjectLinkerAction(String rundeckInstanceName,
RundeckManager rundeck,
String rundeckJobId)
Load the Rundeck job details (name, description, and so on) using the Rundeck API.
|
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName() |
String |
getIconFileName() |
String |
getInstanceName() |
org.rundeck.client.api.model.JobItem |
getRundeckJob() |
String |
getUrlName() |
public RundeckJobProjectLinkerAction(String rundeckInstanceName, RundeckManager rundeck, String rundeckJobId) throws Exception, IllegalArgumentException
rundeckInstanceName
- Rundeck instance namerundeck
- client used for talking to the Rundeck APIrundeckJobId
- ID of the Rundeck jobException
- in case of error while loading the job details from Rundeck APIIllegalArgumentException
- if rundeck or rundeckJobId is null@Exported public org.rundeck.client.api.model.JobItem getRundeckJob()
public String getIconFileName()
getIconFileName
in interface Action
public String getDisplayName()
getDisplayName
in interface Action
getDisplayName
in interface ModelObject
public String getUrlName()
getUrlName
in interface Action
public String getInstanceName()
Copyright © 2016–2022. All rights reserved.