Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide option to retrigger a failed build. #828

Open
mkjkec2005 opened this issue Mar 23, 2024 · 5 comments
Open

Provide option to retrigger a failed build. #828

mkjkec2005 opened this issue Mar 23, 2024 · 5 comments

Comments

@mkjkec2005
Copy link

What feature do you want to see added?

Currently the plugin does not provide an option to retrigger failed builds. Users need to go to Jenkins and run the failed PR build job. Is there a way to achieve this from Bitbucket?

Upstream changes

No response

Are you interested in contributing this feature?

No response

@mkjkec2005
Copy link
Author

Gentle reminder. Could you please help? Or please suggest if there is an alternative.

@KalleOlaviNiemitalo
Copy link
Contributor

Does Bitbucket support such a feature? It seems a rebuild button would need a plugin for Bitbucket too, not only for Jenkins.

On Bitbucket Data Center:

On Bitbucket Cloud:

@KalleOlaviNiemitalo
Copy link
Contributor

Possibly though, you could make Jenkins add a comment to the pull request when the build fails. That comment could then include a rebuild link. There may be some Jenkins plugin for this already.

@mkjkec2005
Copy link
Author

Thank you @KalleOlaviNiemitalo. The problem with comment is how do we ensure that we post using a rebuild link? Jenkins rebuild will needs a crumb for form submission or post request.

@KalleOlaviNiemitalo
Copy link
Contributor

There is the Build Authorization Token Root plugin for triggering builds with an API token rather than an anti-CSRF crumb. I don't have experience with it. There are also other plugins in the Build Triggers category; some of them might be better for your scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants