public class BuildBambooStep
extends org.jenkinsci.plugins.workflow.steps.Step
A Bamboo pipeline step plugin. Start a Bamboo job from with your Jenkinsfile.
See BuildBambooStep.Execution.run() method.
| Modifier and Type | Class and Description |
|---|---|
static class |
BuildBambooStep.DescriptorImpl
Holds class metadata, including step name.
|
static class |
BuildBambooStep.Execution
The execution to run.
|
| Constructor and Description |
|---|
BuildBambooStep(String projectKey,
String planKey,
String serverAddress,
String username,
String password)
DataBoundConstructor will set propagate to "true" by default.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCheckInterval()
checkInterval getter
|
Map<String,Object> |
getParams()
Params getter
|
String |
getPassword()
Password getter
|
String |
getPlanKey()
Plan name getter
|
String |
getProjectKey()
Project name getter
|
boolean |
getPropagate()
Propagate getter
|
String |
getServerAddress()
Server address getter
|
String |
getUsername()
Username getter
|
void |
setCheckInterval(int checkInterval)
The time to wait between HTTP checks, while polling the target server.
|
void |
setParams(Map<String,Object> params)
The params passed by the user (optional)
|
void |
setPropagate(boolean propagate)
Set error propagation.
|
org.jenkinsci.plugins.workflow.steps.StepExecution |
start(org.jenkinsci.plugins.workflow.steps.StepContext stepContext)
Starts execution of Execution.
|
@DataBoundConstructor public BuildBambooStep(String projectKey, String planKey, String serverAddress, String username, String password)
projectKey: - Bamboo project key. used to construct the job: "projectKey-planKey"planKey: - Bamboo plan key. used to construct the job: "planKey-planKey"serverAddress: - Server address, prefix with protocol. Example: https://bamboo-server.example.orgusername: - Bamboo API userpassword: - Bamboo API passwordpublic String getProjectKey()
public String getPlanKey()
public String getServerAddress()
public String getUsername()
public String getPassword()
public boolean getPropagate()
@DataBoundSetter public void setPropagate(boolean propagate)
propagate: - true (default) to propagate errors, or false to not propagate. By default, if there is an
error with the Bamboo build, it will fail the entire pipeline.@DataBoundSetter public void setCheckInterval(int checkInterval)
checkInterval: - set time in seconds.@DataBoundSetter public void setParams(Map<String,Object> params)
params: - set time in seconds.public int getCheckInterval()
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext stepContext)
throws Exception
start in class org.jenkinsci.plugins.workflow.steps.StepstepContext - Step ContextException - Throws ExceptionCopyright © 2016–2017. All rights reserved.