Recently, I encountered a strange issue in my work. After the developer submitted the code to the dev branch, it triggered the pipeline construction of Dev and Master (at the same time). And the built result is exactly the same (DEV, Master branch code serial).
The following is an introduction to the issue flow chart.
Webhook is configured for each branch in gitlab repository, and push events is checked in the trigger list and specific branches are specified.
Jenkins multi branch pipeline is simply configured with gitlab address, and there is no advanced configuration in behaviors.
Have the following questions:
1. The history of the gitlab master branch does not have any new commit. Why is it that the dev branch code is also built after it changes?
2. Although the master has been built, since the master branch code has not changed, the built results should be the same as those built last time. Why is this false build the same as the build result of dev, and the build result is not what Dev and master should have expected.