windows - 如何在 Jenkins 中使用 cygwin 调用私有(private)仓库上的 git 命令来执行 bash 脚本

标签 windows git jenkins cygwin

我无法通过 Jenkins 中的 execute shell 连接到远程存储库。我在 Windows 服务器上使用 cygwin 来运行 bash 命令。我收到错误消息,指出我没有连接到存储库的主机身份验证权限。但是,我可以通过 Git 插件进行连接。有什么建议么?谢谢!

Snapshot of execute shell Snapshot of error message

最佳答案

这可能与此有关 Jenkins issue Jenkins 不喜欢你路径中的斜线。

你或许可以用尾部斜杠指定 repo 的绝对路径,看看它是否有帮助

ip-address:/absolute/path/to/repo/external-web/repo.git

关于windows - 如何在 Jenkins 中使用 cygwin 调用私有(private)仓库上的 git 命令来执行 bash 脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35001723/

相关文章:

linux - Rebar3 从主机操作系统释放 ERTS 文件?

windows - 如何在同一系统上发送 nmi

java - 具有Olingo V4和MySQL数据库连接的OData服务

git - ORIG_HEAD、FETCH_HEAD、MERGE_HEAD 等

git - Jenkins 使用 Git 插件不填充 GIT_COMMIT 以提升构建

jenkins - 在 Jenkinsfile 中的远程主机上执行命令

linux - Flume - 在 Linux 中将日志文件从 Windows 流式传输到 HDFS

c# - 使用 C# 和 WIN32 滚动记事本

git - 如何中止 stash pop?

java - 有条件地执行 JMeter Maven 插件