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

[JENKINS-73038] Adapt plugin to allow user with Overall/Manage to configure global settings #846

Merged
merged 5 commits into from
May 6, 2024

Conversation

mikecirioli
Copy link
Contributor

@mikecirioli mikecirioli commented Apr 18, 2024

Adapt plugin to allow user with Overall/Manage to configure global settings under Manage Jenkins --> System

Jenkins Issue -> https://issues.jenkins.io/browse/JENKINS-73038

Your checklist for this pull request

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side) and not your master branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or in Jenkins JIRA
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Did you provide a test-case? That demonstrates feature works or fixes the issue.

MockAuthorizationStrategy mockStrategy = new MockAuthorizationStrategy();
mockStrategy.grant(Jenkins.MANAGE).onRoot().to("admin");
j.jenkins.setAuthorizationStrategy(mockStrategy);
try (ACLContext context = ACL.as(User.get("admin"))) {

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
User.get
should be avoided because it has been deprecated.
@@ -5,7 +5,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.80</version>
<version>4.81</version>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it risking conflict with the automatic dependency PR #844 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if so i will resolve it

@@ -30,6 +30,7 @@
<gitHubRepo>jenkinsci/bitbucket-branch-source-plugin</gitHubRepo>
<jenkins.version>2.401.3</jenkins.version>
<hpi.compatibleSinceVersion>2.0</hpi.compatibleSinceVersion>
<useBeta>true</useBeta> <!-- Jenkins.MANAGE -->

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it supposed to stay or was it to test ?

Copy link
Contributor Author

@mikecirioli mikecirioli Apr 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is required until an agreement can be had that its safe to take the Overall/Manage permission feature out of beta

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I read badly this conf, I thought it was forcing the plugin in beta mode -_-
My bad, sorry.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no worries, i've also started JENKINS-73089 to address moving the Overall/Manage permission out of beta status

@mikecirioli
Copy link
Contributor Author

@LyroStedman / @basil / @rsandell could i get an additional review when you have a minute?

@basil basil requested a review from a team April 30, 2024 21:46
@mikecirioli
Copy link
Contributor Author

@LyroStedman / @basil if you happy with the PR can you please merge it at your convenience?

Copy link
Contributor

@joseblas joseblas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @mikecirioli how are you doing :)

@basil basil merged commit 44cf5e4 into jenkinsci:master May 6, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants