Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71c25da
commit 33b7d6e
Showing
5 changed files
with
54 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
work/ | ||
target/ | ||
.idea | ||
.DS_Store |
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,30 @@ | ||
Advanced Usage | ||
============== | ||
|
||
In addition to Unit and Coverage results, this plugin supports two additional features | ||
you may want to take use of. | ||
|
||
Custom Comments | ||
--------------- | ||
|
||
If you'd like to post additional text back to Phabricator, you can add text to the `.phabricator-comment` file | ||
(you can change the name of the file in your job configuration page): | ||
|
||
![Comment Configuration](/docs/custom-comment.png) | ||
|
||
Any text present in this file will be echoed verbatim to the comment that Jenkins posts back to | ||
Phabricator. If you'd like to preserve formatting, check the "Preserve Formatting" block and the | ||
plugin will surround the comment in triple-backticks (```) | ||
|
||
Custom Lint | ||
----------- | ||
|
||
If you'd like to send Lint Violations as well, you can echo Harbormaster-compatible JSON | ||
(where each line is a valid JSON dictionary) into the `.phabricator-lint` file. | ||
|
||
Note that the file as a whole is **not valid JSON** (e.g. if you call | ||
`JSON.parse('.phabricator-lint')`) it will fail. This is a design decision to make it easy for build | ||
scripts to `tee` (echo line-by-line) violations without having to produce well-formed JSON, | ||
which requires knowing upfront how many violations are present. | ||
|
||
![Lint Configuration](/docs/custom-lint.png) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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