Git Product home page Git Product logo

jenkins-scripts's Introduction

Jenkins Scripts

Jenkins JavaScript enhancements package.

The theme folder contains simple _packaging script that builds theme.js for simple inclusion in Jenkins with Simple Theme Plugin.

Below is a description of most important enhancement scripts.

ViewFilter

Adds a simple filter input for views. Allows quick job filtering searching by words in any order. Technically it simply hides unmatched rows.

EditArea

Integrates EditArea syntax highlighting engine to enhance Linux shell (bash) scripts editing. This includes commands executed through SSH.

Self update with syntax highlighting

Grouping parameters

This is a bit hacky enhancement to allow collapsing blocks of parameters with a checkbox. For example you have a checkbox to enable some tests and when it's checked it shows additional testing parameters (hidden by default).

Request for a less hacky solution is in the issue JENKINS-19002.

How to make collapsible groups now?

Step 1. Start a group

To start a group add a "Choice" parameter named group-start with following options (you can just add one of the options):

  • collapsible - if option is given then it will be possible to close the group with a button.
  • collapsed - if option is given the group will be closed by default.
  • checkboxTrigger-SomeCheckboxParameterName - if option is given group will be closed when checkbox is unchecked (and shown otherwise).

This parameter will be invisible to the user and will also not be submitted with the job.

Step 2. Add trigger

If you use checkboxTrigger-SomeCheckboxParameterName then you should add a checkbox ("Boolean Value") parameter below group-start. The parameter should be named "SomeCheckboxParameterName".

Step 3. End a group

Group continues until the end of params or next group start box. To end a group before the end of params add a "Choice" parameter named group-start with option "-".

Minor fixes

nux-js/minor-fixes.js - contains various minor fixes (mainly usability enhancements).

jenkins-scripts's People

Contributors

eccenux avatar

Watchers

James Cloos avatar minyuan avatar

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.