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

Update RBAC_Example.groovy #236

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update RBAC_Example.groovy #236

wants to merge 1 commit into from

Conversation

goobed
Copy link

@goobed goobed commented Aug 5, 2024

Was getting errors when trying to run this script from script console. After changing Jenkins.get() to Jenkins.instance this seems to be working now as expected, tested on the following versions:

  • CloudBees CI Cloud Operations Center 2.452.3.2-rolling
  • CloudBees CI Cloud Operations Center 2.426.3.3-rolling
  • CloudBees CI Operations Center 2.346.4.1-rolling

@goobed goobed requested a review from Dohbedoh August 12, 2024 21:26
Copy link
Member

@duemir duemir left a comment

Choose a reason for hiding this comment

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

Jenkins.getInstance() is deprecated. Jenkins.get() is the method to use.
https://javadoc.jenkins.io/jenkins/model/Jenkins.html#get()

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

Successfully merging this pull request may close these issues.

2 participants