Hi Mayur You need to connect to Jenkins' SSH port and not the system port number. See https://wiki.jenkins.io/display/JENKINS/Jenkins+SSH for more info.
Richard. On Tue, 16 Jan 2018 at 21:25 Mayur Nagekar <[email protected]> wrote: > ssh -i ~/.ssh/id_rsa_jenkins -p 22 <HOST_IP> declarative-linter < > Jenkinsfile > > I have been trying to test a *declarative pipeline *style Jenkinfile. > > On Tuesday, January 16, 2018 at 1:10:17 PM UTC+5:30, ok999 wrote: > >> Somethings that you need to add in your help request: >> 1. How are connecting to the server cli/curl? >> 2. What kind of jenkinsfile your are attempting to lint? Declarative or >> scripted pipeline? >> >> On Tue, Jan 16, 2018 at 1:34 AM Mayur Nagekar <[email protected]> >> wrote: >> > Hello all, >>> >>> I have been trying to find a way to lint Jenkinsfile and came across >>> https://jenkins.io/doc/book/pipeline/development/#linter but this >>> hasn't helped unfortunately. >>> Every time I try to run the command, I get >>> >>> bash: declarative-linter: command not found >>> >>> Looks like there are some additional installs (may be plugins) that need >>> to happen on jenkins server? I'd appreciate if someone could enlighten me >>> on the same. >>> >>> Many thanks, >>> Mayur >>> >>> -- >>> 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 [email protected]. >> >> >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/jenkinsci-users/0c9846b3-3bc6-44a6-8de3-5a3ab6cc9d91%40googlegroups.com >>> <https://groups.google.com/d/msgid/jenkinsci-users/0c9846b3-3bc6-44a6-8de3-5a3ab6cc9d91%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> Sent from mobile device, excuse typos if any. >> > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/62a89a9f-9e1a-46e9-b536-8a64e8381471%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/62a89a9f-9e1a-46e9-b536-8a64e8381471%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAMui9455%2B%2BPXuFofv367JUC0TQBuHbDMZnTfhVWDyjSuAx2CnQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
