错误:找不到任何要生成的修订验证此作业的存储库和分支配置完成:失败

dwbf0jvd  于 2021-07-03  发布在  Java
关注(0)|答案(1)|浏览(425)

我正在安装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
svgewumm

svgewumm1#

回购的默认分支https://github.com/buildpacks/sample-java-app 是

main

您正在尝试结帐

master

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

相关问题