Uploaded image for project: 'Docs for Red Hat Developers'
  1. Docs for Red Hat Developers
  2. RHDEVDOCS-5969

Doc: PaC: Expand “dynamic” variables in pipeline default values

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • OpenShift Pipelines
    • 8
    • Documentation (Ref Guide, User Guide, etc.), User Experience
    • ---
    • ---

      1. Proposed title of this feature request
      PaC: Expand “dynamic” variables in pipeline default values

      2. What is the nature and description of the request?
      When adding an expandable dynamic variable as a default value to a parameter in a Pipeline, it is not resolved.

      Pipeline.yaml:

      - name: REPO_NAME
          default: "{{ repo_name }}"
        - name: REVISION
        - name: BRANCH
        - name: PULL_REQUEST_NUMBER
      

      Omitting the param with a default value in the PipelineRun does not resolve the params.

      The following error is thrown:

      http.client.InvalidURL: URL can't contain control characters. '/repos/< organisation>/{{ repo_name }}/statuses/< sha>' (found at least ' ')
      This error should not be thrown, but dynamic variables should be expanded in the pipeline spec, making it possible to use them as default values. 
      

      3. Why does the customer need this? (List the business requirements here)
      This would severely clean up pipelines as it is not needed to pass through all expandable dynamic parameters. In effect, it would make shared pipelines easier to use, and reduce the surface to make mistakes.

      4. List any affected packages or components.
      OpenShift Pipelines

            Unassigned Unassigned
            mramendi Mikhail Ramendik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: