我在使用源代码在 Github 上的 jenkins 构建 java 项目时遇到以下错误。
Started by user anonymous
Building in workspace C:\Users\Administrator\.jenkins\workspace\TestProject
> C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> C:\Program Files\Git\bin\git.exe config remote.origin.url https://github.com/xxxxxxxx/yyyyyyyy.git # timeout=10
Fetching upstream changes from https://github.com/xxxxxxxx/yyyyyyyy.git
> C:\Program Files\Git\bin\git.exe --version # timeout=10
using .gitcredentials to set credentials
> C:\Program Files\Git\bin\git.exe config --local credential.username testuser # timeout=10
> C:\Program Files\Git\bin\git.exe config --local credential.helper store --file=\"C:\apache-tomcat-7.0.57_test\temp\git2715746879795272610.credentials\" # timeout=10
> C:\Program Files\Git\bin\git.exe -c core.askpass=true fetch --tags --progress https://github.com/xxxxxxxx/yyyyyyyy.git +refs/heads/*:refs/remotes/xxxxxxxx/yyyyyyyy/*
> C:\Program Files\Git\bin\git.exe config --local --remove-section credential # timeout=10
> C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/master/TestProjectSearch^{commit}" # timeout=10
> C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/origin/master/TestProjectSearch^{commit}" # timeout=10
> C:\Program Files\Git\bin\git.exe rev-parse "origin/master/TestProjectSearch^{commit}" # timeout=10
ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
Finished: FAILURE
谁能帮我解决这个问题?
谢谢。
最佳答案
鉴于您在 2016 年 6 月问过这个问题,很可能是因为这个 security update from May, 2016这破坏了 Github Pull Request 构建器插件。根据该页面,该功能后来恢复了。
落后于更新 Jenkins 安装或插件的 Jenkins 用户可能在以后遇到了这个问题。
关于java - 找不到要构建的任何修订。验证此作业的存储库和分支配置。完成 : FAILURE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38116353/