[JIRA] (JENKINS-39923) CLI command for Declarative linter

2 views
Skip to first unread message

andrew.bayer@gmail.com (JIRA)

unread,
Nov 21, 2016, 4:34:02 PM11/21/16
to jenkinsc...@googlegroups.com
Andrew Bayer created an issue
 
Jenkins / Improvement JENKINS-39923
CLI command for Declarative linter
Issue Type: Improvement Improvement
Assignee: Andrew Bayer
Components: pipeline-model-definition-plugin
Created: 2016/Nov/21 9:33 PM
Priority: Minor Minor
Reporter: Andrew Bayer

We need a command-line linter - the Jenkins CLI is right there, so let's take advantage of it!

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

andrew.bayer@gmail.com (JIRA)

unread,
Nov 21, 2016, 4:35:03 PM11/21/16
to jenkinsc...@googlegroups.com
Andrew Bayer started work on Improvement JENKINS-39923
 
Change By: Andrew Bayer
Status: Open In Progress

andrew.bayer@gmail.com (JIRA)

unread,
Nov 21, 2016, 4:37:01 PM11/21/16
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Nov 21, 2016, 4:37:01 PM11/21/16
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Nov 21, 2016, 4:55:02 PM11/21/16
to jenkinsc...@googlegroups.com
 
Re: CLI command for Declarative linter

Still debating also adding a shell script that you can download and run without needing to have CLI SSH port access to the master. Haven't decided yet.

andrew.bayer@gmail.com (JIRA)

unread,
Dec 2, 2016, 10:56:04 AM12/2/16
to jenkinsc...@googlegroups.com
Change By: Andrew Bayer
Status: In Review Resolved
Resolution: Fixed

scm_issue_link@java.net (JIRA)

unread,
Dec 2, 2016, 10:56:05 AM12/2/16
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon commented on Improvement JENKINS-39923
 
Re: CLI command for Declarative linter

Code changed in jenkins
User: Andrew Bayer
Path:
pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/DeclarativeLinterCommand.java
pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/Messages.properties
http://jenkins-ci.org/commit/pipeline-model-definition-plugin/ad5731247cfbb3f83597e9c122d04825f17d6068
Log:
[FIXED JENKINS-39923] Add a CLI endpoint for the linter

Can be used like:

```
ssh -p [sshd port on master] localhost declarative-linter < Jenkinsfile
```

Tweaks still needed for permissions (right now, it's anyone with read
access, which, I think, is OK) and possibly reading the file reading
than just taking it from stdin.

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:25:55 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Fixed
 

Bulk closing resolved issues.

Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages