Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 46b2ce1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -109,6 +109,7 @@ public void setVaultCredentialsId(String vaultCredentialsId) {
this.vaultCredentialsId = Util.fixEmptyAndTrim(vaultCredentialsId);
}

@DataBoundSetter
public void setBecome(boolean become) {
this.become = become;
}
Expand Down
Expand Up @@ -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/>
Expand Down

0 comments on commit 46b2ce1

Please sign in to comment.