diff options
author | Matt Rendina <rendinam@users.noreply.github.com> | 2018-11-21 16:14:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-21 16:14:13 -0500 |
commit | 8944459d2f4347dd821b493646ac444c94d22673 (patch) | |
tree | 10a0ac20575a335eed7679adbd81af894289fa01 /README.md | |
parent | 9d0209ce82474a3ed230e8c4267c265c058daa0f (diff) | |
download | jscu_refactor-8944459d2f4347dd821b493646ac444c94d22673.tar.gz |
Expand test summary docs and add example image (#22)
* Add issue example image
* Update docs
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -12,7 +12,8 @@ Functionality provided that extends the native Groovy syntax approach This library's functionality is automatically made available to every Jenkinsfile hosted in the spacetelescope Github organization. -An example job that builds three parallel combinations and runs tests on one of them. +An example job that builds three parallel combinations and runs tests on one of them, posting a +summary of test results for all build configurations if any test failures or errors occur. ```groovy // Obtain files from source control system. @@ -20,7 +21,8 @@ if (utils.scm_checkout()) return // Allow modification of the job configuration, affects all relevant build configs. -// Pass this object in the argument list to the`run()` function below to apply these settings to the job's execution. +// Pass this object in the argument list to the`run()` function below to apply +// these settings to the job's execution. jobconfig = new JobConfig() jobconfig.post_test_summary = true @@ -89,6 +91,14 @@ It has the following properties: | --- | --- | --- | --- | | `post_test_summary` | boolean | no | When `true`, will cause the creation of a Github issue on the project's repository containing a summary of test results produced by all build configurations hosted in the the job if any tests returned a `failure` or `error` status. Default is false, meaning no summary issues will be created upon test failures or errors. When set to `true`, if no test failures or errors occur, a summary post will not be generated. | +#### Test Summary Issue Posts +If test summaries are requested using the `post_test_summary` property of the JobConfig class as described above, each Jenkins job that produces one or more test errors or failures will result in a single new Github issue being posted to the project's repository. + +An example issue: + + +If tests continue to fail or error in the periodically scheduled job, a (possibly redundant) issue will be posted each time the job runs. + #### BuildConfig Class The utils library also provides the definition of a class called BuildConfig that may be used to create build configuration objects used to define build tasks to be run on various hosts. |