我在jenkins git插件中进行了此设置,并且构建触发器是对Poll SCM H/5 * * * *
进行轮询的,但是问题是当创建新功能分支时,它开始检出master而不是功能分支。
Started by an SCM change
Building in workspace C:\JenkinsNew\workspace\mastervalidate
Cloning the remote Git repository
Cloning repository https://github.com/Nagendra080389/trailheadOrg.git
> C:\Program Files\Git\bin\git.exe init C:\JenkinsNew\workspace\mastervalidate # timeout=10
Fetching upstream changes from https://github.com/Nagendra080389/trailheadOrg.git
> C:\Program Files\Git\bin\git.exe --version # timeout=10
using GIT_ASKPASS to set credentials
> C:\Program Files\Git\bin\git.exe fetch --tags --progress https://github.com/Nagendra080389/trailheadOrg.git +refs/heads/*:refs/remotes/origin/*
> C:\Program Files\Git\bin\git.exe config remote.origin.url https://github.com/Nagendra080389/trailheadOrg.git # timeout=10
> C:\Program Files\Git\bin\git.exe config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> C:\Program Files\Git\bin\git.exe config remote.origin.url https://github.com/Nagendra080389/trailheadOrg.git # timeout=10
Fetching upstream changes from https://github.com/Nagendra080389/trailheadOrg.git
using GIT_ASKPASS to set credentials
> C:\Program Files\Git\bin\git.exe fetch --tags --progress https://github.com/Nagendra080389/trailheadOrg.git +refs/heads/*:refs/remotes/origin/*
Seen branch in repository origin/feature/US-001
Seen branch in repository origin/master
Seen 2 remote branches
> C:\Program Files\Git\bin\git.exe show-ref --tags -d # timeout=10
Checking out Revision 58a1a824ab6508a83bc975dfdc9f6bf50e4a142f (origin/master)
> C:\Program Files\Git\bin\git.exe config core.sparsecheckout # timeout=10
> C:\Program Files\Git\bin\git.exe checkout -f 58a1a824ab6508a83bc975dfdc9f6bf50e4a142f
配置中是否缺少某些内容,我只想听功能分支。