-
Notifications
You must be signed in to change notification settings - Fork 146
Support Jenkins2 pipeline #97
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
Support Jenkins2 pipeline #97
Conversation
Helo, any change? are you going to merge this PR? |
Hi, The problem is following:
Do you know how to fix it? |
confirmed the issue with updating the PR build status after the build completes |
problem is caused by BitbucketBuildListener, the extension will not be invoked on pipeline jobs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @frodeaa
can you, please, rebase your branch to resolve the conflicts?
I'd like to merge this PR and make a new release ASAP :-)
Martin
Replace use of AbstractProject with Job to fix ClassCastException thrown when using the plugin in a pipeline job The fix is "not" complete, it remains to find a replacement to the call AbstractProject.isDisabled used to decide if the build should be skipped Previously called in BitbucketBuildTrigger.run() fixes nishio-dens#94
looks like pipeline jobs don't have a disable option
BitbucketBuildListener was not invoked on pipeline jobs Change BitbucketBuildListener to extend from RunListener<Run<?, ?>> so it will invoked to update job description and PR build result
d160d97
to
0debdfb
Compare
@damovsky rebase done |
Replace use of AbstractProject with Job to fix ClassCastException thrown when using the plugin in a pipeline job
Note The previous behaviour to skip the build if the project was disabled is currently not implemented. TheJob
class does not have the methodAbstractProject.isDisabled()
, so it remains to find an alternative way to do the check...Fixes #94