Cover the replication failure scenario and fix the metrics

The failed replication fetch was silently dropping the event
without any possibility to detect the failure. Cover the missing
use-case and generate the task/failed metric whenever the
replication does not succeed.

Also consider a success when the replication event does not
result in any ref-specs, which isn't a failure but simply a NOOP.

Change-Id: I9bc6127d4f9e237772a43d787f8b862319e8d84c
3 files changed
tree: d68c6fba09d61b0cd155013c1ffe10d5734581b1
  1. example-setup/
  2. src/
  3. .gitignore
  4. BUILD
  5. Jenkinsfile
  6. LICENSE