Skip to content

Commit

Permalink
Fixed attribute persistence.
Browse files Browse the repository at this point in the history
  • Loading branch information
batkinson committed Nov 16, 2011
1 parent 0847154 commit 7fff57f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
13 changes: 4 additions & 9 deletions src/main/java/jenkins/plugins/tracpublisher/TracPublisher.java
Expand Up @@ -40,19 +40,14 @@
*/
public class TracPublisher extends Notifier {

private String buildServerAddress;
private String rpcAddress;
private String username;
private String password;

public TracPublisher() {
super();
}
public String buildServerAddress;
public String rpcAddress;
public String username;
public String password;

@DataBoundConstructor
public TracPublisher(String buildServerAddress, String rpcAddress,
String username, String password) {
super();
this.buildServerAddress = buildServerAddress;
this.rpcAddress = rpcAddress;
this.username = username;
Expand Down
@@ -1,14 +1,14 @@
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<f:entry title="Jenkins Address" field="buildServerAddress">
<f:textbox field="buildServerAddress" value="${descriptor.buildServerAddress}" />
<f:textbox field="buildServerAddress" />
</f:entry>
<f:entry title="Trac XMLRPC URL" field="rpcAddress">
<f:textbox field="rpcAddress" value="${descriptor.rpcAddress}" />
<f:textbox field="rpcAddress" />
</f:entry>
<f:entry title="Trac XMLRPC Username" field="username">
<f:textbox field="username" value="${descriptor.username}" />
<f:textbox field="username" />
</f:entry>
<f:entry title="Trac XMLRPC Password" field="password">
<f:password field="password" value="${descriptor.password}" />
<f:password field="password" />
</f:entry>
</j:jelly>

0 comments on commit 7fff57f

Please sign in to comment.