如何在 jenkins 中设置除 origin 之外的 git 远程名称

问题描述 投票:0回答:0

我从 jenkins 控制台输出中收到以下错误。 我认为错误来自我的遥控器名为

cicd
而不是
origin
。 有没有办法在詹金斯配置中设置远程名称?我没有看到 Build triggers > Build when a change is pushed to GitLab 下的选项。

提前致谢。

hudson.plugins.git.GitException: Command "git rev-parse remotes/origin/test^{commit}" returned status code 128:
stdout: remotes/origin/test^{commit}

stderr: fatal: ambiguous argument 'remotes/origin/test^{commit}': unknown revision or path not in the working tree.
git jenkins jenkins-plugins
© www.soinside.com 2019 - 2024. All rights reserved.