You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/usr/bin/java -jar /usr/lib/jenkins/jenkins-cli.jar -s http://127.0.0.1:8080 groovy /usr/lib/jenkins/puppet_helper.groovy create_or_update_credentials user-sysadmin '' '' 'Managed by Puppet' '-----BEGIN RSA PRIVATE KEY-----
long private key contents
long private key contents
long private key contents
-----END RSA PRIVATE KEY-----
'
It tells me this when I run it by itself (this is also the output of puppet-agent):
"-----BEGIN RSA PRIVATE KEY-----
long private key contents
long private key contents
long private key contents
-----END RSA PRIVATE KEY-----
" is not a valid option
java -jar jenkins-cli.jar groovy [SCRIPT] [ARGUMENTS ...]
Executes the specified Groovy script.
SCRIPT : Script to be executed. File, URL or '=' to represent stdin.
ARGUMENTS : Command line arguments to pass into script.
I changed the declaration to a template as you had suggested:
I'm also seeing this behavior. The workaround provided by @haloflightleader seems to work great. I think this is either still a bug, or an issue with the documentation (which reads: private_key_or_path is the text of key itself or an absolute path to a key file on the managed system.)
Could this be reopened since it seems to still be occurring? Or maybe the documentation should be updated if the recommended usage has changed?
Hello,
I am on Puppet 3.8. I am using the
jenkins::credentials
. The declaration looks like this:Puppet dislikes this. How do I put in a multiline value like this?
The text was updated successfully, but these errors were encountered: