tacoss / nvm-wrapper-plugin

Jenkins new nvm Plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

A java/groovy version of Jenkins nvm plugin, it doesn't require ruby-runtime to be installed.

Usage

  • Please follow this steps

Build

  • It was built using maven and Java 1.8

  • mvn package - Build the Jenkins plugin file, which can then be found in the build directory. The file will currently end in ".hpi".

  • mvn install - Build the Jenkins plugin and install it into your local Maven repository.

  • gradle uploadArchives (or 'gradle deploy') - Deploy your plugin to the Jenkins Maven repository to be included in the Update Center.

  • mvn hpi:run - Run a local jenkins to test

  • mvn hpi:run -Djenkins.version=2.102 -Run a local jenkins against a version.

  • mvn clean test -Djenkins.version=2.7.3 -Denforcer.skip=true -B if local test nvm unset && nvm unload

Features

  • Installs nvm.sh
  • Installs node version configured for job.
  • Amends build environment to use configured node version.

Acknowledgements

Based on :

Jenkins rvm plugin and Jenkins nvm plugin.

License

Copyright (c) 2018 Tomas Salazar. This software is licensed under the MIT License.

Please fork and improve.

About

Jenkins new nvm Plugin

License:MIT License


Languages

Language:Java 90.0%Language:Groovy 7.4%Language:HTML 2.6%