java - 找不到要构建的任何修订。验证此作业的存储库和分支配置。完成 : FAILURE

标签 java git jenkins build

我在使用源代码在 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/

相关文章:

jenkins - Sonar + Jenkins作业执行错误

java - 比较Java中的 float

java - 传入数组不一致的对象的可变参数

使用 Capistrano 的 Git 工作流

linux - 不包括顶级/父文件夹的 Git 克隆

jenkins - 为什么 Jenkins 中的 ClearCase UCM 插件找不到任何基线?

java - Android Activity 未完成并且不启动之前的 Activity

java - 计算机视觉 - 使用 OpenCV 过滤凸包和凸面缺陷

git - 我可以将 .git 文件夹存储在我想要跟踪的文件之外吗?

groovy - Jenkins 脚本限制给定节点的所有构建