-
Notifications
You must be signed in to change notification settings - Fork 143
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
[JENKINS-48837] Add BranchProperty support to OrganizationFolder #160
Conversation
@nfalco79 |
@bitwiseman done |
@nfalco79 |
@bitwiseman You right, I forgot to update my origin with jenkins remote. I see that is too late for 2.5.3 release :( |
@nfalco79 Don't worry, we're not on a schedule. |
Are there some comments or changes you would I do on this PR? |
@nfalco79 |
Sure, any suggestion for a test case? I mean do you have any suggestion from which test case I can copy or take an example for these scenario? |
@nfalco79 I don't know off-hand, sorry. And I'm swamped until at least Thursday this week. I'll be able to take a look after that. |
Do not worry, also because today I got an issue. If I modify branch properties (removing or adding), these changes are persisted correctly in the organisation folder config.xml but multibranch children projects are not affected by the changes also after a jenkins restart. |
Ok issues resolved. There was two issues:
|
@bitwiseman please any news on this? Is there something you would to change? |
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.
@nfalco79
Hello, sorry for slow response.
I understand the feature now. Can you add some tests for this to https://github.com/jenkinsci/branch-api-plugin/blob/master/src/test/java/jenkins/branch/OrganizationFolderTest.java
I will try |
@nfalco79 |
@bitwiseman I'm finally back on this issue. Please let me know if you need somethingelse from my side. |
@bitwiseman any news about this PR? I have add test cases as request. Please reset the "changes request" mark. |
@dwnusbaum @bitwiseman this PR is stuck up please give me some feedback |
rebased |
failures seems not be related to the code, rerun touching a commit |
pom.xml has not been modified by this PR. Build error seems to be caused because the project use jenkins version 2.138.4 but build system use recomanded configuration that use 2.222.x This make enforcer fails. |
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.
Thanks for the PR! I took a quick look and added some comments, can you please fix the test failures in the CI build? Thanks!
src/main/java/jenkins/branch/NamedExceptionsBranchPropertyStrategy.java
Outdated
Show resolved
Hide resolved
i finally resolve marking slf4j suite to 1.7.26 version, so that work with jekins 2.222.3 version on build |
now test pass on linux jdk8 but not on jdk11 because of mockito
this is not related to my changes otherwise the build will not pass on JDK8 on linux. |
I'm not able to replicate locally also I run Windows 10 openJDK 10.0.7 or Oracle JDK 11.0.2 |
rebased |
@dwnusbaum the same test failing in my closed PR (and now in master) are failing also here:
|
@bitwiseman I had rebased (again), how much longer to reach the end since this comment This PR was just splitted as requested. Files was the same at the time of #160 (review) |
ping |
@nfalco79 Thanks for sticking with this. This looks like a very useful feature, but other tasks keep taking priority. Sorry. I'll look at this as soon as I have time. |
any news here |
@bitwiseman @dwnusbaum |
Fix NPE that prevent the update of all child project. Add Named Exception properties to OrganisationFolder job configuration page.
@nfalco79 The changes that went into the last release are all trivial, mostly refactoring or test changes, and the release only went out to try to fix PCT issues when testing the plugin. This is a new feature, which means it takes more time to review (need think about design, other code that might be affected/impacted, compatibility, regressions, value of feature vs cost of increased maintenance, documentation updates, etc.), and I have not had time to review it yet. |
I can understand but the PR was open quite since 1 year. The feature is not different than one already exist for multibranch project. This allows users that use branch property to move to organisation project, share common settings and automate project creation/deletion. Every branch-api release I have to patch manually and load on ours jenkins production. |
@nfalco79 |
Ok, let me update., and thanks. |
Bounced for CI. 😭 I've had a chance to look at it and I get what is being done. I've had a chance to manually play with it a little and it looks good so far. |
@nfalco79 Thanks for you endurance and perseverance on this PR. |
This seems to make |
We have more than 50 multibranch jobs configured with branch properties. This should save time every time we change branch properties, the feature that had stop migration to organisation folder.
Each multibranch project child of the organisation folder have branch property strategy configured (the release link) only for master branch:
Any suggestion for a test case?