-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also: * More details in trigger response. Including queue ID. * Avoiding exposure of entire exception stacktrace in response on crash.
- Loading branch information
1 parent
4ac5382
commit 8580bf8
Showing
14 changed files
with
254 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
src/main/java/org/jenkinsci/plugins/gwt/GenericTriggerResults.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
package org.jenkinsci.plugins.gwt; | ||
|
||
import java.util.Map; | ||
|
||
public class GenericTriggerResults { | ||
|
||
private final Map<String, String> resolvedVariables; | ||
private final String regexpFilterText; | ||
private final String regexpFilterExpression; | ||
private final String searchUrl; | ||
private final String url; | ||
private final long id; | ||
private boolean triggered; | ||
|
||
public GenericTriggerResults( | ||
hudson.model.Queue.Item item, | ||
Map<String, String> resolvedVariables, | ||
String regexpFilterText, | ||
String regexpFilterExpression) { | ||
if (item != null) { | ||
this.searchUrl = item.getApi().getSearchUrl(); | ||
this.url = item.getUrl(); | ||
this.id = item.getId(); | ||
this.triggered = true; | ||
} else { | ||
this.searchUrl = null; | ||
this.url = null; | ||
this.id = 0; | ||
this.triggered = false; | ||
} | ||
this.resolvedVariables = resolvedVariables; | ||
this.regexpFilterText = regexpFilterText; | ||
this.regexpFilterExpression = regexpFilterExpression; | ||
} | ||
|
||
public boolean isTriggered() { | ||
return triggered; | ||
} | ||
|
||
public long getId() { | ||
return id; | ||
} | ||
|
||
public String getSearchUrl() { | ||
return searchUrl; | ||
} | ||
|
||
public String getUrl() { | ||
return url; | ||
} | ||
|
||
public String getRegexpFilterExpression() { | ||
return regexpFilterExpression; | ||
} | ||
|
||
public String getRegexpFilterText() { | ||
return regexpFilterText; | ||
} | ||
|
||
public Map<String, String> getResolvedVariables() { | ||
return resolvedVariables; | ||
} | ||
} |
Oops, something went wrong.