ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Jenkinsfile

by june07 Win ALL

Lint Jenkins' Jenkinsfile via SSH

Details

Installs

  • Total 1K
  • Win 1K
  • Mac 0
  • Linux 0
Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11
Windows 3 0 1 5 3 4 1 2 2 1 5 5 10 4 3 2 0 6 3 3 4 8 0 0 7 6 9 7 15 0 0 5 4 4 4 4 0 1 5 10 4 6 10 0 2 9
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

sublime-Jenkinsfile

Jenkinsfile is a plugin for Sublime Text.

https://packagecontrol.io/packages/Jenkinsfile

  • Securely (ssh) lint your Jenkinsfile (What is a Jenkinsfile?) inside of Sublime Text
  • Lint against Jenkins cloud instance if ssh access is unavailble on your primary environment
  • Magic

Jenkins includes Pipeline Development Tools as shown on Jenkins.io

Jenkins can validate, or “lint”, a Declarative Pipeline from the command line before actually running it. This can be done using a Jenkins CLI command or by making an HTTP POST request with appropriate parameters. We recommended using the SSH interface to run the linter. See the Jenkins CLI documentation for details on how to properly configure Jenkins for secure command-line access.

Technology

Jenkinsfile uses a number of open source projects to work properly: * Python - a programming language changes the world * SSH - a cryptographic network protocol for operating network services securely over an unsecured network

And of course Jenkinsfile itself is open source with a public Git repository on GitHub.

How to install

With Package Control: 1. First step is done with Package Control or manually - With Package Control Run “Package Control: Install Package” command, find and install Jenkinsfile plugin.

- ***Manually*** *(without Package Control)*:
Clone or download from [git][jenkinsfilegh] into your packages folder (in ST, find Browse Packages… menu item to open this folder).
note: You must clone or download into a directory named "Jenkinsfile" and not sublime-Jenkinsfile.
  1. Restart Sublime Text (if required)

Setup

Currently you must use Pageant (Windows) to create a session that can authenticate via ssh to your Jenkins host. The name of the session must match the configured value of pageant_session (default is “jenkins”) as shown:

Usage

Now whenever you have are editing a Jenkinsfile (must be named as such) and save the file, the plugin will invoke the remote instance of the Jenkins declarative-linter. The file can also be linted without saving by using the keyboard shortcut (cntl-alt-j by default)

Todos

  • Pipeline the whole enchilada (CT/CI/CD)
    • JENKINS!
    • Docker
  • Add support for Linux, OSX
  • Add hosted Jenkins validation

License

MIT

.