We're currently having some trouble with the bitbucket branch source plugin used to handle a multibranch test job in one of our Jenkins instances (productive instance):
Any job related to a deleted branch is not getting deleted in Jenkins. Is is shown as disabled.
Checking the Scan Multibranch Pipeline Log
I find the following entries:
Will not remove foobranch because it is new
Will not remove PR-1 because it is new
Will not remove bar because it is new
Will not remove freeDiskSpaceHack because it is new
We have another instance (test instance) where everything is working as expected - branches get removed immediately, e.g. seeing the following in the log:
Will remove freeDiskSpaceHack
Will remove foo
- For both instances we're using the same Jenkins version (2.212.2) and plugin versions.
- The jobs in both instances use the same settings for the Bitbucket branch source plugin:
- There's one difference: Both jobs use a different repository in bitbucket; the onee of our test instance (where jobs get deleted) is a fork of the other one.
Besides that there's no difference.
My questions are:
- Why doesn't it work for our productive instance? Is there some secret setting?
- What does the log want to tell me saying:
Will not remove <branch> because it is new
.
Hopefully anyone has a clue.