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



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




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
For more options, visit