public class JenkinsConnector extends Object
Constructor and Description |
---|
JenkinsConnector(hudson.model.Run build,
hudson.model.TaskListener listener,
Consumer<Map<String,Object>> runInfoAdapter) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
env() |
void |
env(String name,
String value) |
hudson.model.Run |
getBuild()
Gets access to the build
|
hudson.model.TaskListener |
getListener()
Gets access to the listener
|
hudson.model.Result |
getResult()
Gets the current result of the build.
|
Map<String,?> |
getRunInfo()
Gets the current run info, associated to the build or the current stage
for a pipeline.
|
boolean |
isFailure()
Is the build a failure?
|
boolean |
isSuccess()
Is the build a success?
|
boolean |
isUnstable()
Is the build unstable?
|
public Map<String,?> getRunInfo() throws IOException, InterruptedException
The returned map can be directly as a run info parameter for a build or a validation run.
IOException
- In case of I/O errorInterruptedException
- If the collection is interruptedpublic hudson.model.Result getResult()
public hudson.model.Run getBuild()
public hudson.model.TaskListener getListener()
public boolean isSuccess()
public boolean isUnstable()
public boolean isFailure()
Copyright © 2016–2023. All rights reserved.