[JIRA] (JENKINS-59143) Unable to access "SSH Username with private key" in DSL.groovy.
Title: Message Title Daniel Spilker updated JENKINS-59143 Jenkins / JENKINS-59143 Unable to access "SSH Username with private key" in DSL.groovy. Change By: Daniel Spilker Status: Fixed but Unreleased Closed Add Comment This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.201577.1567102473000.5279.1583931721567%40Atlassian.JIRA.
[JIRA] (JENKINS-59143) Unable to access "SSH Username with private key" in DSL.groovy.
Title: Message Title Jai Nath commented on JENKINS-59143 Re: Unable to access "SSH Username with private key" in DSL.groovy. Thank you so much . Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.201577.1567102473000.5276.1567491120175%40Atlassian.JIRA.
[JIRA] (JENKINS-59143) Unable to access "SSH Username with private key" in DSL.groovy.
Title: Message Title Daniel Spilker updated JENKINS-59143 Use the embedded API viewer to lookup the correct syntax, see Dynamic DSL for details. job('example') { wrappers { credentialsBinding { sshUserPrivateKey { keyFileVariable('KEY_FILE') credentialsId('test') passphraseVariable('PASSWORD') usernameVariable('USERNAME') } } } } Use Stack Overflow or the mailing list for asking questions about syntax. Jenkins / JENKINS-59143 Unable to access "SSH Username with private key" in DSL.groovy. Change By: Daniel Spilker Status: Open Fixed but Unreleased Assignee: Joe Roberts Daniel Spilker Resolution: Not A Defect Add Comment
[JIRA] (JENKINS-59143) Unable to access "SSH Username with private key" in DSL.groovy.
Title: Message Title Jai Nath created an issue Jenkins / JENKINS-59143 Unable to access "SSH Username with private key" in DSL.groovy. Issue Type: Bug Assignee: Joe Roberts Components: job-dsl-plugin Created: 2019-08-29 18:14 Priority: Major Reporter: Jai Nath Is any one using "SSH Username with private key" in DSL.groovy. I am trying to use two ways but both are giving exception: First way:- withCredentials([sshUserPrivateKey(credentialsId: 'hop_server_ssh', keyFileVariable: 'hop_file', passphraseVariable: 'hop_passphrase', usernameVariable: 'hop_user_name')]) { // some block } Second way:- wrappers { credentialsBinding { sshUserPrivateKey(credentialsId: 'hop_server_ssh', keyFileVariable: 'private_key', passphraseVariable: 'hop_phrase', usernameVariable:'hop_user') Exception: ERROR: (job_mi_backend_hop_deploy_dsl.groovy, line 36) No signature of method: javaposse.jobdsl.dsl.jobs.FreeStyleJob.sshUserPrivateKey() is applicable for argument types: (java.util.LinkedHashMap, job_mi_backend_hop_deploy_dsl$_run_closure1$_closure3) values: [[credentialsId:gid-chef-dorch-px, keyFileVariable:hop_file, ...], ...] Please help me to get access "SSH Username with private key" in DSL.groovy.