How to use Jenkins CLI for linter?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to use Jenkins CLI for linter?

David Aldrich-2

Hi

 

I want to use the Jenkins declarative script linter via the CLI.

 

I have specified a fixed SSHD port in Jenkins Global Security. 

 

I have shared my SSH public key with my account on the Jenkins server, so I can connect to the server using SSH.

 

However, when I try to run the linter I get an error:

 

$ ssh -p <port> hudsonmaster declarative-linter < Jenkinsfile

Permission denied (publickey).

 

Can anyone help me please?

 

Best regards

 

David

 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/315ff9f469364ad48e2a1e4da7b77311%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.