首页 > 解决方案 > 错误:找不到要构建的任何修订。验证此作业的存储库和分支配置。完成:失败

问题描述

我正在通过安装maven在aws centos 7中通过git存储库部署java项目的jar文件

Started by user sudeep garg
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/test1
The recommended git tool is: NONE
No credentials specified
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://github.com/buildpacks/sample-java-app.git # timeout=10
Fetching upstream changes from https://github.com/buildpacks/sample-java-app.git
 > git --version # timeout=10
 > git --version # 'git version 1.8.3.1'
 > git fetch --tags --progress https://github.com/buildpacks/sample-java-app.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse origin/master^{commit} # timeout=10
ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
Finished: FAILURE

标签: javaamazon-web-servicesmavenjenkinstomcat

解决方案


存储库https://github.com/buildpacks/sample-java-app的默认分支是

main

您正在尝试结帐

master

将此设置为 main ,它应该可以工作。


推荐阅读