How to disable Branch Indexing?

2019-08-17 02:30发布

问题:

I have tests that can only run in serial. This is because they're rspec tests that use a database. If multiple jobs are running at the same time, they'll all be using the same database and creating a conflict.

However, sometimes when I commit to my Github pull request Jenkins will correctly kick off a test job. However, it will also kick off another duplicate job with the message "Branch Indexing". These jobs can't run at the same time or the tests will break. Additionally, these jobs take 20 minutes to complete so it's just backing up the queue for no apparent reason.

I don't know what this Branch Indexing job is, but why does it have to run at the same time as my other job? How do I disable it?