Set only http(s) links

Gerrit defines a pattern for SAFE URLs:
SAFE_URL_PATTERN = /^(https?:\/\/|mailto:|[^:/?#]*(?:[/?#]|$))/i;
which does not allow finger:// url

Only set link named group if url starts with http/https
Use template to print href property only if link is defined
1 file changed
tree: 038345c8493e8763d0d3fe1501879ce8f66e68b3
  1. zuul-results-summary/
  2. .eslintignore
  3. .eslintrc.json
  4. .gitignore
  5. bower.json
  6. BUILD
  7. LICENSE
  8. package.json
  9. README.md
README.md

Zuul Results Summary

Polygerrit plugin to show a summary of Zuul results in a change tab

Results are show in reverse chronological order, additionally sorted by CI userid's in ZUUL_PRIORITY (earlier entry in the list means sorted first in the output table). i.e. if you consider one of your CI reporters to be the main one, you should place it first in this list.

UI tests

To run UI tests here will need install dependencies from both npm and bower.

npm run wct-test should take care both for you, read more in package.json.

Test plugin on Gerrit

  1. Clone gerrit git clone https://gerrit.googlesource.com/gerrit
  2. Clone plugin to plugins/zuul-results-summary cd plugins; git clone https://github.com/ianw/gerrit-zuul-results-summary zuul-results-summary
  3. Run build cd ..; bazel build plugins/zuul-results-summary:zuul_summary_status
  4. Copy resulting plugin bazel-bin/plugins/zuul-results-summary/zuul-results-summary-bundle.js to Gerrit plugins directory