-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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 appearance of buttons for password and secretTextarea matching 'jenkins-button's #8179
Update appearance of buttons for password and secretTextarea matching 'jenkins-button's #8179
Conversation
replace old style buttons with new jenkins-button
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.
👍 Fine security wise
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!
/label ready-for-merge This PR is now ready for merge. We will merge it after ~24 hours if there is no negative feedback. |
Jenkins 2.412 and earlier use a text area for the client key. Jenkins 2.413 and newer use an input field for the client key. Jenkins 2.413 looks much nicer with a button that is consistent with the other buttons used in the Jenkins pages. jenkinsci/jenkins#8179 is the Jenkins core pull request that implemented the change in Jenkins 2.413. Other plugins that use HTMLUnit to enter a value for the secret text may need a similar change.
A minor test change was needed in the docker-commons plugin as a result of the change from Other plugins that use HTMLUnit to create credentials may need a similar change. I'm a little perplexed that SecretTextAreaTest in Jenkins core is not affected by the same change, but I assume it is not affected because the secret button that is being created in that test is using the old secrets button instead of the newer and better looking secrets button. @mawinter69 does that make sense to you, or have I misunderstood something? I didn't find any other matches for plugins using HTMLUnit to create credentials. It seems much easier to me to create test credentials from Java objects rather than using the web interface to do it. |
The change in core also changed in the test the way the button is selected and clicked. The same problem is in docker-commons. The button is not clicked (it looks for an input but is now a button) that is why the content is still in an input and not a textarea. |
replace old style buttons with new jenkins-button
Before:
After:
Testing done
Manual testing
create password credential and update it
create ssh username with private key credential and update it
Verified that things still work as expected
Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Desired reviewers
@mention
Before the changes are marked as
ready-for-merge
:Maintainer checklist