Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JENKINS-30011 Allow multiple instances of Post Build Scripts as a pos…
…t build action
- Loading branch information
Daniel Heid
authored and
Daniel Heid
committed
Nov 3, 2017
1 parent
9440ba4
commit 18e7d7c
Showing
9 changed files
with
230 additions
and
202 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
29 changes: 0 additions & 29 deletions
29
src/main/java/org/jenkinsci/plugins/postbuildscript/GroovyScript.java
This file was deleted.
Oops, something went wrong.
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
22 changes: 22 additions & 0 deletions
22
src/main/java/org/jenkinsci/plugins/postbuildscript/PostBuildItem.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,22 @@ | ||
package org.jenkinsci.plugins.postbuildscript; | ||
|
||
import hudson.model.Result; | ||
|
||
|
||
public class PostBuildItem { | ||
|
||
private Result result; | ||
|
||
public PostBuildItem(String result) { | ||
this.result = Result.fromString(result); | ||
} | ||
|
||
public Result getTargetResult() { | ||
return result; | ||
} | ||
|
||
public String getResult() { | ||
return result.toString(); | ||
} | ||
|
||
} |
Oops, something went wrong.