我已经使用Jenkins几天了,以前:我使用了GITEA插件,现在我已经将我的项目切换到了GitBucket,我想使用“BuildbyWeb钩子”功能。
我学习了许多教程,现在:我被一个简单/大的问题困住了。
事先,我很抱歉有模糊的敏感链接,我知道这可能是烦人的。
以下是完整的错误:
using credential 10
Wiping out workspace first.
Contributing variables:
Cloning the remote Git repository
Cloning repository https://MY_GITBUCKET/git/MY_USERNAME/MY_PROJECT
> git init /Jenkins/workspace/GitBUcket # timeout=10
Fetching upstream changes from https://MY_GITBUCKET/git/MY_USERNAME/MY_PROJECT
> git --version # timeout=10
> git --version # 'git version 2.20.1'
using GIT_ASKPASS to set credentials Utilisateur GitBucket Perso
> git fetch --tags --force --progress -- https://MY_GITBUCKET/git/MY_USERNAME/MY_PROJECT +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url https://MY_GITBUCKET/git/MY_USERNAME/MY_PROJECT # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
Seen 0 remote branches
> git show-ref --tags -d # timeout=10
ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
Finished: FAILURE以下是我在Jenkins上的配置:https://i.stack.imgur.com/jdlTt.png
先谢谢你
编辑:我唯一的分支是主-> https://i.imgur.com/lXJ0xyN.png
发布于 2022-01-27 12:23:01
这就是你可以尝试的:
C:\PATH\git.exe
*/main.
https://stackoverflow.com/questions/68407370
复制相似问题