Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIXED JENKINS-31887] Added support for Selenium Report plugin
Added a release notes entry for Seleniumhq Plugin Added a release notes entry for Seleniumhq Plugin
- Loading branch information
Showing
5 changed files
with
76 additions
and
1 deletion.
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
7 changes: 7 additions & 0 deletions
7
...cs/examples/javaposse/jobdsl/dsl/helpers/publisher/PublisherContext/seleniumReport.groovy
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,7 @@ | ||
job('example') { | ||
publishers { | ||
seleniumReport('myproject/target/test-reports/*.html') { | ||
useTestCommands() | ||
} | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
...-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/SeleniumReportContext.groovy
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,15 @@ | ||
package javaposse.jobdsl.dsl.helpers.publisher | ||
|
||
import javaposse.jobdsl.dsl.Context | ||
|
||
class SeleniumReportContext implements Context { | ||
boolean useTestCommands = false | ||
|
||
/** | ||
* If set, Use status of test commands instead of suites to determine UNSTABLE/FAILURE/SUCCESS. | ||
* Defaults to {@code false}. | ||
*/ | ||
void useTestCommands(boolean useTestCommands = true) { | ||
this.useTestCommands = useTestCommands | ||
} | ||
} |
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