GithubHelp home page GithubHelp logo

phamchienbk / jenkins-steps-override Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tdongsi/jenkins-steps-override

0.0 1.0 0.0 96 KB

Override Jenkins Pipeline steps for local development

Groovy 100.00%

jenkins-steps-override's Introduction

jenkins-steps-override

Override Jenkins Pipeline steps for local development

Context

This repo is just one part of a larger project for local development of Jenkins Pipeline libraries. Basic Pipeline steps such as mail or sendSlack, which require complex setup or communication to external systems, can be mocked in this library.

Configure local Jenkins

The idea is that since Jenkins Global Libraries allow creating our own global variables, we can configure a Library which overrides some built-in steps. To make our custom global variables/overridden steps active over built-in steps, configure a "Global Pipeline Library" in "Manage Jenkins > Configure System" as follows:

Screeshot

Note that the option "Legacy SCM" > "File System" is shown as an example, in the context of local development of a Jenkins plugin/library. It should not stop you from overriding Pipeline steps (e.g., to override sh steps to add timeout) in a production Jenkins instance with actual, actively maintained library repositories, using "Modern SCM" > "Github" for example.

jenkins-steps-override's People

Contributors

tdongsi avatar

Watchers

James Cloos 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.