Giter Site home page Giter Site logo

jenkins-image-for-pipeline-linting's Introduction

jenkins-image-for-pipeline-linting

Jenkins docker image for usage with Jenkins Pipeline Linter Plugin for Visual Studio Code and IntelliJ IDEs. It can also be used via command line

This image has no setup required, ready to use as soon as it is run, plugins are pre-installed, all security and first type setup wizzard disabled, ready to take queries from the extension or the command line.

Linting with Visual Studio Code

Pull the image from Dockerhub using:

docker pull paulohgodinho/jenkins-for-pipeline-linting

Run the container with the 8080 port exposed to the host system

docker run -p 8080:8080 paulohgodinho/jenkins-for-pipeline-linting

Install the Jenkins Pipeline Linter Connector plugin for Visual Studio Code

img

Go to the extension settings

img

Input the running Jenkins container URL with port, and the path /pipeline-model-converter/validate at the end.

img

Run the linter by pressing CTRL+SHIFT+P and searching for Validate Jenkinsfile

img

Linting via Command Line

You can use Bash and Powershell to manually verify your Pipeline

Bash:

curl -F "jenkinsfile=< mypipeline.jenkinsfile" http://localhost:8080/ipeline-model-converter/validate

Powershell:

Invoke-RestMethod -Method Post -Form @{jenkinsfile=$(Get-Content .\mypipeline.jenkinsfile -raw)} -Uri http://localhost:8080/pipeline-model-converter/validate

Issue: The docker image does not contain the Jenkins Pipeline plugin I am using

You can add your plugin id to plugins.txt and build your own image. If you belive the plugin should be in this distributed image please make a PR or message me, I am happy to add more.

jenkins-image-for-pipeline-linting's People

Contributors

paulogodinhoaq avatar paulohgodinho avatar

Watchers

 avatar

Forkers

paulogodinhoaq

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.