Error running git [remote get-url origin]: exit status 2\nerror: No such remote 'origin' when using git-clone task

Solution Verified - Updated -

Issue

  • git-clone Task is failing with exit status 128
  • git-clone TaskRun not using parameters or appears to have empty values
  • Pipeline completes with missing or unpopulated variables despite being defined

Environment

  • Red Hat OpenShift Container Platform (OCP) 4
    • OpenShift Pipelines 1.19

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content