Skip to content

Use unified build status key with exclude origin PR Branches strategy - #172

Merged
jetersen merged 6 commits into
jenkinsci:masterfrom
JeanChristopheMorinPerso:common_build_status_key
Apr 7, 2019
Merged

Use unified build status key with exclude origin PR Branches strategy#172
jetersen merged 6 commits into
jenkinsci:masterfrom
JeanChristopheMorinPerso:common_build_status_key

Conversation

@JeanChristopheMorinPerso

Copy link
Copy Markdown
Contributor

…r filter is used.

Little improvement in the way the build status key is named when the Discover branch option is set to Exclude branches that are also filed as PRs. With these changes, the build key for a branch that then goes into PR will stay the same (<project_name>/<branch_name>), like it is for any branch right now.

I tested all possible options of the discover branch and my change is really only affecting the build key when Exclude branches that are also filed as PRs is chosen.

This should hopefully fix #160. I also hope it will be more solid than #147.

I'm not a Java developer, and so I did my best with the knowledge I have to keep the code style. Let me know if there is anything to change.

@jetersen

Copy link
Copy Markdown
Member

@JeanChristopheMorinPerso I think it would be better to just pass the bitbucketsource that is already defined in sendNotifications method and pass to createStatus

@jetersen

Copy link
Copy Markdown
Member

I have gone ahead and added my suggestion, please feel free to review it :)

@JeanChristopheMorinPerso

Copy link
Copy Markdown
Contributor Author

Thanks a lot @Casz , it looks much nicer now. I'll test the changes later today (even if not much change from my changes). I really appreciate the time you took to improve the PR! :)

@JeanChristopheMorinPerso

Copy link
Copy Markdown
Contributor Author

I'll fix the build. Looks like one import is wrongly ordered.

@jetersen

Copy link
Copy Markdown
Member

@JeanChristopheMorinPerso fixed 👍

@JeanChristopheMorinPerso

Copy link
Copy Markdown
Contributor Author

Looks like you are faster than me 😄 Tested the latest changes and everything looks good 👍

@JeanChristopheMorinPerso

Copy link
Copy Markdown
Contributor Author

@Casz Do you a time frame for when the next release will happen? Don't want to be pushy or anything... It's more by curiosity.

@jetersen

jetersen commented Mar 3, 2019

Copy link
Copy Markdown
Member

Would be great if I could land this, #173 and #174 together in next release 😄

@jetersen

Copy link
Copy Markdown
Member

I'll see if I can land the PRs myself in the weekend

@JeanChristopheMorinPerso

Copy link
Copy Markdown
Contributor Author

Thanks!

@timshadel

Copy link
Copy Markdown

@Casz Any update on getting this PR in and released? It'd really help us out! 😄

@jetersen

jetersen commented Apr 4, 2019

Copy link
Copy Markdown
Member

Time did not allow me to work on this :|
Since the authors PR of #173 and #174 is not willing to listen to PR reviews, I have to do the work myself.

@jetersen
jetersen force-pushed the common_build_status_key branch from e2920f4 to 7f5c11e Compare April 6, 2019 20:05
@jetersen jetersen changed the title Use unified build status key when ExcludeOriginPRBranchesSCMHeadFilte… Use unified build status key with exclude origin PR Branches strategy Apr 7, 2019
@jetersen
jetersen merged commit 0e116e1 into jenkinsci:master Apr 7, 2019
@JeanChristopheMorinPerso

Copy link
Copy Markdown
Contributor Author

Thank you @Casz ! I really appreciate the time you took to improve the work I initially did on this PR :)

I'm sure a lot of other people will be happy to see this feature finally released.

@JeanChristopheMorinPerso
JeanChristopheMorinPerso deleted the common_build_status_key branch April 7, 2019 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants