Pipeline not able to run git commands inside container

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Not A Defect
    • Priority: Critical
    • Component/s: git-plugin
    • Environment:

      Hello Team,

      We have Jenkins hosted on Azure Kubernetes Platform and we recently upgraded to 2.332.1. Since update, we are not able to run pipelines in our Jenkins environment. Pipeline is able to successfully fetch the repo from Github but when we do git operations on the fetched repo, we get error " Not a Git Repository". Can you please help us with this issue?
      [Pipeline] echo======== Validating Changes ============[Pipeline] echo**** ALL changed files in Feature Branch ****[Pipeline] sh+ git diff --name-only origin/feature/mfitest2/Anand_test..origin/mfitest2
      Not a git repository
      To compare two paths outside a working tree:
      usage: git diff [--no-index] <path> <path>

            Assignee:
            Unassigned
            Reporter:
            Anand R
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: