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

Pipelines Tutorial: CLI command to start the pipeline fails

XMLWordPrintable

      The command to run the pipeline fails in the following doc:
      https://docs.openshift.com/container-platform/4.11/cicd/pipelines/creating-applications-with-cicd-pipelines.html#running-a-pipeline_creating-applications-with-cicd-pipelines

      $ tkn pipeline start build-and-deploy \
          -w name=shared-workspace,volumeClaimTemplateFile=https://raw.githubusercontent.com/openshift/pipelines-tutorial/pipelines-1.8/01_pipeline/03_persistent_volume_claim.yaml \
          -p deployment-name=pipelines-vote-api \
          -p git-url=https://github.com/openshift/pipelines-vote-api.git \
          -p IMAGE=image-registry.openshift-image-registry.svc:5000/$(context.pipelineRun.namespace)/pipelines-vote-api \
          --use-param-defaults
      

      The command fails with:

      command not found: context.pipelineRun.namespace
      

            rhn-support-sosarkar Souvik Sarkar (Inactive)
            ssadeghi@redhat.com Siamak Sadeghianfar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: