GithubHelp home page GithubHelp logo

isabella232 / node-version-jenkins-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nodejs/node-version-jenkins-plugin

0.0 0.0 0.0 7 KB

A Jenkins plugin to detect the version of the Node.js source code in the current workspace and insert it as a build parameter

License: MIT License

Java 99.73% HTML 0.27%

node-version-jenkins-plugin's Introduction

node-version-jenkins-plugin

A Jenkins plugin to detect the version of the Node.js source code in the current workspace and insert it as a build parameter

Building

$ mvn install -DskipTests

Clean with

$ mvn clean

Installing

Copy the resulting target/node-version-jenkins-plugin.hpi file into the Jenkins server plugin directory, e.g. /var/lib/jenkins/plugins and restart Jenkins.

Using

This plugin extends the Git plugin and runs after the git checkout phase. Its functionality can be switched on in a Jenkins job config under Source Code Management โ†’ Additional Behaviours where you can click on the Add button and select Extract Node.js versions as parameters and then tick the ExportNodejsVersion=Export Node.js version as parameters from nodejs/node git source box.

Once enabled for a job, two new job parameters will be made available after the initial git checkout:

  • NODEJS_VERSION - the three part semver string, excluding any tags (i.e. -pre won't be included for non-release builds)
  • NODEJS_MAJOR_VERSION - the first part of the semver string

These are also inserted as environment variables into the build (ymmv using those).

This plugin couples well with the Matrix Groovy Execution Strategy Plugin which can make use of a parameters property within a full Groovy scripting environment to select the matrix options that should be built, and their ordering.


Managed under the governance of the Node.js Build Working Group.

Copyright (c) 2018 Node.js Foundation. All rights reserved.

Licensed under MIT, see the LICENSE.md file for details

node-version-jenkins-plugin's People

Contributors

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