Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-78435

Replace infraUtils.new*Param context usage with structured job context

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • None
    • None
    • CNV QE DevOps
    • None
    • Quality / Stability / Reliability
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • None

      Goal

      Remove reliance on infraUtils.new*Param (e.g., CLUSTER_ID) and build a structured job execution context.

      Motivation

      Current pipelines set ad-hoc env/params via infraUtils.new*Param, which is brittle and obscures data flow. We want a single, explicit context model for job execution metadata.

      Proposed direction

      • Define a Job Execution Context based on JOB_METADATA (jobdsl metadata), then enrich with cluster info when CLUSTER params are present.
      • Provide a clear interface to read/add/update context fields.
      • Evaluate existing Jenkins plugins for structured build metadata/context (if suitable, adopt).
      • If no plugin, persist context as JSON in workspace and archive as artifact.

      Scope (initial)

      • Inventory infraUtils.new*Param usage across pipelines.
      • Propose a shared library API for context handling.
      • Migrate a pilot job (upgrade pipelines) to use the new context.

      Acceptance criteria

      • No infraUtils.new*Param usage in pilot jobs.
      • Context is available to steps and archived for traceability.
      • Documentation added with usage examples.

              dkeler@redhat.com Daniel Keler
              lbednar@redhat.com Lukas Bednar
              Daniel Keler Daniel Keler
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: