小编Azi*_*iev的帖子

来自 GitHub 的 Jenkins FreeStyle 项目给出“致命:不在 git 目录中”错误

我已经尝试了三天来寻找解决方案,但没有成功。管道类型工作成功,自由式工作失败。我注意到每次尝试后,在 HEAD 文件 .git 中都写了“ref: refs/heads/master”,甚至我也指出了 */main。

在此输入图像描述

Running as SYSTEM
    Building in workspace C:\Users\aziz\.jenkins\workspace\workflow
    The recommended git tool is: NONE
    using credential 605f1b8b-aff7-457a-8040-edf8d6dae69a
     > C:\Program Files\Git\bin\git.exe rev-parse --resolve-git-dir C:\Users\aziz\.jenkins\workspace\workflow\.git # timeout=10
    Fetching changes from the remote Git repository
     > C:\Program Files\Git\bin\git.exe config remote.origin.url https://github.com/azimkar87/Billing.git # timeout=10
    ERROR: Error fetching remote repo 'origin'
    hudson.plugins.git.GitException: Failed to fetch from https://github.com/azimkar87/Billing.git
        at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:1003)
        at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1244)
        at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1308)
        at hudson.scm.SCM.checkout(SCM.java:540)
        at hudson.model.AbstractProject.checkout(AbstractProject.java:1217)
        at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:647)
        at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:85)
        at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:519)
        at hudson.model.Run.execute(Run.java:1897)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
        at hudson.model.ResourceController.execute(ResourceController.java:101) …
Run Code Online (Sandbox Code Playgroud)

github jenkins

6
推荐指数
2
解决办法
6771
查看次数

标签 统计

github ×1

jenkins ×1