记我Jenkins创建任务时错误

在刚完成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无法完成。

修改项目分支 :
记我Jenkins创建任务时错误_第1张图片

再次build
记我Jenkins创建任务时错误_第2张图片

你可能感兴趣的:(Jenkins,jenkins,git,运维)