Skip to content
Permalink
Browse files

[FIXED JENKINS-49061] Syntax Generator Does Not Generate 'become' Opt…

…ion (#20)

Add @DataBoundSetter to setter method.
Add default values for becomeUser and sudoUser to avoid generating misleading snippet.
  • Loading branch information...
michaelcresswell authored and escoem committed Jan 29, 2018
1 parent fd4bfd4 commit 46b2ce13cd84c4db3368eadb9218629eed3d0636
@@ -109,6 +109,7 @@ public void setVaultCredentialsId(String vaultCredentialsId) {
this.vaultCredentialsId = Util.fixEmptyAndTrim(vaultCredentialsId);
}

@DataBoundSetter
public void setBecome(boolean become) {
this.become = become;
}
@@ -19,13 +19,13 @@
<f:checkbox/>
</f:entry>
<f:entry field="becomeUser" title="Become username">
<f:textbox/>
<f:textbox default="root"/>
</f:entry>
<f:entry field="sudo" title="Use sudo (deprecated)">
<f:checkbox/>
</f:entry>
<f:entry field="sudoUser" title="Sudo username (deprecated)">
<f:textbox/>
<f:textbox default="root"/>
</f:entry>
<f:entry field="limit" title="Host subset">
<f:textbox/>

0 comments on commit 46b2ce1

Please sign in to comment.
You can’t perform that action at this time.