Details
-
Bug
-
Status: Fixed but Unreleased (View Workflow)
-
Major
-
Resolution: Fixed
-
Jenkins and bitbucket working together using the bitbucket-server-integration plugin.
I have a jenkinsJob of the type multibranch pipeline.
I am using the bitbucket-server-integration as branch source
I am using a jenkinsFile to build
Description
in the "multibranch pipeline" event only UPDATED events are listed.
i would like to have DELETE events as well
I get the below text in the "multibranch pipeline events"
[Fri Jul 10 12:21:05 CEST 2020] Received com.atlassian.bitbucket.jenkins.internal.trigger.BitbucketWebhookConsumer$BitbucketSCMHeadEvent UPDATED event from fuulibrary with timestamp Fri Jul 10 12:20:57 CEST 2020
That triggers a valid build, but i would also like to instantaneously have the DELETED branches crossed out.
Same here, using atlassian-bitbucket-server-integration-plugin 2.0.0. "Scan Multibranch Pipeline Now" will delete the branch from Jenkins but that is not very convenient.
DELETE events seem to be getting filtered out in BitbucketWebhookConsumer.eligibleRefs.
In contrast, cloudbees-bitbucket-branch-source disables the branch in Jenkins immediately when the Bitbucket Server webhook notifies that the branch has been deleted. The branch then appears crossed out in the Jenkins user interface.
I would like workspaces of deleted branches to be speedily deleted from Jenkins agents because of limited disk space. I don't want to delete the workspace after each build because that would cost time at the end of the build and at the start of the next build.