Clicking the "Abort" Button on Jenkins Build Job in Chrome Triggers Two Confirmation Dialogs

Hello,

Description: When I click the “Abort” button :x: on a Jenkins build job, two confirmation dialogs appear.
Impact: This affects the user experience, as I have to click through two confirmation dialogs to successfully abort the build.
Browsers: This issue is observed in Chrome (the probability of reproduction increases with more than five extensions installed). The problem does not currently reproduce in other browsers (Safari, Edge, Firefox). Additionally, the issue does not reproduce in Chrome when no extensions are installed.
Operating Systems: This issue occurs on both Mac and Windows.

Reproduction Steps:

  1. Start any simple task with a sufficient execution time (to facilitate the cancellation operation). I have created a local Jenkins job by setting up a simple “Hello World” pipeline and added a long sleep command (sleep(999999)).
  2. On the build details page, click the “Cancel” button.
  3. The issue reproduces. (if it doesn’t reproduce, try refreshing the page and clicking the “Cancel” button again).

I opened the page’s inspect tool and observed that clicking once generates two confirmation dialogs.

1 Like

Thanks a lot for your detailed feedback.
What version of Jenkins are you running?

I can’t duplicate the problem on the latest weekly running locally. I do have 7 extension in chrome.
Would be interesting to see if there are 2 event handlers attached to the button.

I’ve seen that behavior sometimes when canceling jobs on https://ci.jenkins.io . It does not happen every time and I’ve not found any pattern that hints why it happens. I’ll pay more attention to the cases when it happens in hopes that I can see a pattern to the cases where I must click the button twice.

1 Like

My locally deployed Jenkins version is 2.498, and the version deployed at my company is 2.480. The issue occurs in both environments.

1 Like