When gitlab feature-0
has a commit and it triggers jenkins webhook, jenkins pulls from Main branch instead of feature-0
branch. Vice versa if main
branch has a commit, jenkins sometimes fetches from feature-0
branch. How can I ensure it fetches the right branch when webhook triggers?
Fetching changes from the remote Git repository
skipping resolution of commit remotes/origin/feature-0, since it originates from another repository
Multiple candidate revisions
Checking out Revision 1cda3cd8cb747c8588daaf07715499ea37927d8b (origin/main)
Commit message: "Please retry a full pipeline [ci build]"
The above commit message is from main
branch. feature-0
branch has a different commit message and it triggered the jenkins job.
I've specified main and feature in the branches section. But it isn't working as expected.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.