Skip to content

Commit

Permalink
[JENKINS-30398] Add support for extra parameters in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jcsirot committed Dec 4, 2015
1 parent 3b025b2 commit e3f4e95
Showing 1 changed file with 11 additions and 0 deletions.
Expand Up @@ -38,6 +38,7 @@ public class AnsiblePlaybookStep extends AbstractStepImpl {
private String tags = null;
private String skippedTags = null;
private String startAtTask = null;
private String extras = null;

@DataBoundConstructor
public AnsiblePlaybookStep(String playbook) {
Expand Down Expand Up @@ -89,6 +90,11 @@ public void setStartAtTask(String startAtTask) {
this.startAtTask = startAtTask;
}

@DataBoundSetter
public void setExtras(String extras) {
this.extras = extras;
}

public String getInstallation() {
return installation;
}
Expand Down Expand Up @@ -129,6 +135,10 @@ public String getStartAtTask() {
return startAtTask;
}

public String getExtras() {
return extras;
}

@Extension
public static final class DescriptorImpl extends AbstractStepDescriptorImpl {

Expand Down Expand Up @@ -185,6 +195,7 @@ protected Void run() throws Exception {
builder.setTags(step.getTags());
builder.setStartAtTask(step.getStartAtTask());
builder.setSkippedTags(step.getSkippedTags());
builder.setAdditionalParameters(step.getExtras());
builder.setHostKeyChecking(false);
builder.setUnbufferedOutput(true);
builder.setColorizedOutput(false);
Expand Down

0 comments on commit e3f4e95

Please sign in to comment.