Coder Social home page Coder Social logo

bulksecuritygeneratorprojectv2 / pmaccamp__global-variable-string-parameter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pmaccamp/global-variable-string-parameter

0.0 0.0 0.0 67 KB

Jenkins plugin to provide a string variable that substitutes global variables using the ${} syntax

Java 100.00%

pmaccamp__global-variable-string-parameter's Introduction

Global Variable String Parameter Plugin

This plugin is intended to provide a parameter with support for global node properties via $VARIABLE or ${VARIABLE}

Installation

Add global-variable-string-parameter.hpi to jenkins/plugins and restart. In your job, choose Add Parameter and select Global Variable String Parameter. Use $VARIABLE or ${VARIABLE} to substitute global node parameters.

Example

  1. Create a global variable
    createglobalvariable
  2. Create a global variable string parameter in a job
    createparameter
  3. Reference the global variable in the default value
    parametervalue
  4. Add a simple echo statement to demonstrate the substitution
    echoparameter
  5. The variable remains unsubstituted on the Build Now page
    parameterbuildnow
  6. But is correctly substituted in the console output
    console
  7. The variable can also be changed from the build now screen to be incorrect
    buildnow2
  8. And no longer substitutes
    console2

pmaccamp__global-variable-string-parameter's People

Contributors

pmaccamp 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.