Class CoverageRoutingContext

java.lang.Object
org.jenkinsci.plugins.vmanager.charts.util.CoverageRoutingContext

public final class CoverageRoutingContext extends Object
Per-build routing-OID holder for vManager COVERAGE_LEVEL REST calls.

vManager's /rest/metrics/get endpoint requires the caller to:

  • Always send x-vmgr-routing-retain: 1.
  • On the very first call within a build, NOT send x-vmgr-routing-oid — the server returns one in the response.
  • On every subsequent call within the same build, echo the x-vmgr-routing-oid value received from the previous call.
  • Reset between builds (next build starts again with no oid).

One instance is created per onCompleted invocation in the RunListener and shared across every COVERAGE_LEVEL request issued for that build. Not thread-safe — the listener serially issues requests.

  • Field Details

  • Constructor Details

    • CoverageRoutingContext

      public CoverageRoutingContext()
  • Method Details

    • getOid

      public String getOid()
    • setOid

      public void setOid(String oid)
    • hasOid

      public boolean hasOid()