我希望詹金斯测试代码以供审查。jenkins 作业是在推送到 refs/for/master 时开始的,但它尝试构建 origin/master 分支而不是 refs/changes/XX/X/X 分支。有人知道我做错了什么吗?
詹金斯的日志:
Triggered by Gerrit: http://localhost/13
Building on master in workspace
/var/lib/jenkins/jobs/CI-JoysteerLogApi/workspace
Checkout:workspace / /var/lib/jenkins/jobs/CI-JoysteerLogApi/workspace - hudson.remoting.LocalChannel@28071488
Using strategy: Default
Last Built Revision: Revision f604c6257923d4231b74573528d0116e0b52dc64 (origin/master)
Fetching changes from 1 remote Git repository
Fetching upstream changes from ssh://jenkinsCI@192.168.5.20:29418/JoysteerLogApi.git
Commencing build of Revision f604c6257923d4231b74573528d0116e0b52dc64 (origin/master)
Checking out Revision f604c6257923d4231b74573528d0116e0b52dc64 (origin/master)
吉特配置:
Repository URL: ssh://user@localhost:29418/Project.git
Refspec: $GERRIT_REFSPEC
Branches to build: $GERRIT_BRANCH
Gerrit 触发器配置:
Gerrit Project:
Type: Plain
Pattern: Project
Branches:
Type: Path
Pattern: **