Jenkins not able to fetch code from remote git

后端 未结 8 1348
梦毁少年i
梦毁少年i 2020-12-23 19:23

My jenkins build is suddenly not working now.The error is as follows:-

Fetching changes from the remote Git repository
 > git config remote.origin.url <         


        
相关标签:
8条回答
  • 2020-12-23 20:18

    I was seeing the same issue, but disk space and VM memory were not the problem. What fixed it for me was making the job re-clone on build:

    1. Go to the job's "Configure" page
    2. Under Source Code Management → Git → Additional Behaviors, add a behavior "Wipe out repository & force clone"
    3. Save
    4. Build
    0 讨论(0)
  • 2020-12-23 20:21

    In my case, found that my infrastructure team member changed the ownership of the workspace. After changing folder ownership (in my case it jenkins:apache) its start working.

    Thanks & Regards Jaiswar Vipin Kumar R.

    0 讨论(0)
提交回复
热议问题