-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-73408] bom update to bom-2.426.x in order to align with core…
… requirement (#211) * updated bom and excluded eddsa-api * updated test to use RealJenkinsRule with omit plugins * moving js back to adjunct * Using class name instead of ids
- Loading branch information
Showing
5 changed files
with
43 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...dbees/jenkins/plugins/sshcredentials/impl/BasicSSHUserPrivateKey/passphraseChangeEvent.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
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) | ||
} | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters