在刚完成Jenkins安装后,build了一个项目,发生以下报错:

Started by user root
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/item01
The recommended git tool is: NONE
using credential gitlab-root
 > git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/item01/.git # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url http://10.9.237.8:82/group01/docker.git # timeout=10
Fetching upstream changes from http://10.9.237.8:82/group01/docker.git
 > git --version # timeout=10
 > git --version # 'git version 1.8.3.1'
using GIT_ASKPASS to set credentials 
 > git fetch --tags --progress http://10.9.237.8:82/group01/docker.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

查看报错信息:ERROR: Couldn’t find any revision to build. Verify the repository and branch configuration for this job.
是因为我分支设置错误。Jenkins无法完成。

修改项目分支 :
在这里插入图片描述

再次build
在这里插入图片描述

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐