Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-8513

The new Buildah task differs from the deprecated Buildah ClusterTask

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Tekton Ecosystem
    • None
    • 3
    • False
    • False

      Description of problem:

      The new Buildah task differs from the deprecated Buildah ClusterTask

      Workaround: NA

      Prerequisites (if any, like setup, operators/versions):

      Tekton Pipelines version 1.17 or newer.

      Steps to Reproduce

      • Define a Tekton PipelineRun or TaskRun using the new Buildah task.
      • In the params section of the task, specify BUILD_EXTRA_ARGS using a multi-line YAML string with backslashes ({}) and newlines to separate arguments.
      - name: BUILD_EXTRA_ARGS
        value: |
          --volume $(workspaces.source.path):$(workspaces.source.path) \
          --build-arg="UBI_VERSION=$(cat $(workspaces.source.path)/packer/UBI_VERSION)" \
          --build-arg="SSM_VERSION=$(cat $(workspaces.source.path)/packer/SSM_VERSION)"
      
      • Execute the PipelineRun or TaskRun.

       

      Actual results:

      The task fails with the error message: Error: accepts at most 1 arg(s), received X. The entire multi-line value is treated as a single argument, which is invalid for the buildah bud command.

      Expected results:

      The new Buildah task should support all valid formats from the deprecated Buildah ClusterTask, including multi-line arguments separated by a backslash and a newline. The arguments should be correctly parsed and passed to the buildah bud command.

      Reproducibility (Always/Intermittent/Only Once):

      Always

              rh-ee-abghosh Abhishek Ghosh
              rhn-support-disharma Diksha Sharma
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: