-
Notifications
You must be signed in to change notification settings - Fork 65
[JENKINS-73408] bom update to bom-2.426.x in order to align with core requirement #211
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
Changes from 5 commits
8397638
e783a0c
3a6dee6
9e7db13
fd99628
e098386
7714c33
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//TODO: this snippet, as well as ids in passphrase and private key fields can be removed once https://issues.jenkins.io/browse/JENKINS-65616 is completed | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unless you (attempt to) implement that, it is not likely anyone ever will. All these hacks could go away by just deprecating |
||
const passphraseElements = document.getElementsByClassName('sshCredentials_passphrase'); | ||
|
||
if (passphraseElements.length > 0) { | ||
// Failsafe in case there's more than 1 element we'll only use the first one. Should not happen. | ||
passphraseElements[0].addEventListener("change", event => { | ||
var newEvent = new Event("change") | ||
const privateKeyElements = document.getElementsByClassName('sshCredentials_privateKey'); | ||
if (passphraseElements.length > 0) { | ||
privateKeyElements[0].dispatchEvent(newEvent) | ||
} | ||
}) | ||
} |
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.
it would be worth extracting to a variable so the next person doesn't make the same mistake
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.
If you want to offer such advice, you should do it first in
archetypes
and demonstrate that it is comprehensible to @dependabot etc.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.
jenkinsci/archetypes#737