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

Provision not working with 2.490 #389

Open
mawinter69 opened this issue Jan 8, 2025 · 1 comment
Open

Provision not working with 2.490 #389

mawinter69 opened this issue Jan 8, 2025 · 1 comment

Comments

@mawinter69
Copy link

Jenkins and plugins versions report

version 2.66 of the plugin
Jenkins 2.490

What Operating System are you using (both controller, and any agents involved in the problem)?

doesn't matter

Reproduction steps

define a cloud and go to the /computer page. The button to provision is not working.
The reason is the usage of YAHOO in

var menu = new YAHOO.widget.Button(e, { type: "menu", menu: items, name: "name" });

Since 2.490 YUI is no longer loaded by default in Jenkins which leads to a Javascript error

Expected Results

Clicking the button allows to provision a node

Actual Results

JS error

Anything else?

Take this opportunity to also remove the inline Javascript and move it to a separate file to make that part CSP compliant.
The solution done in the EC2 plugin can serve as a blueprint: jenkinsci/ec2-plugin#997

Are you interested in contributing a fix?

No response

@mawinter69
Copy link
Author

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

No branches or pull requests

1 participant