tophat / jenkins-timeline-plugin

A build timeline to facilitate the inspection of Jenkins pipelines and identify bottlenecks.
https://jenkinstimeline.com
Apache License 2.0
34 stars 11 forks source link

ci: attach node and npm deps #52

Closed jakebolam closed 5 years ago

jakebolam commented 5 years ago

Description

attach node and npm deps to maven

This adds the frontend-maven-plugin to the build process to allow Maven to install npm without having to do it manually before running mvn.

QA

Try mvn clean install and verify that a step like this is present in the trace:

[INFO] --- frontend-maven-plugin:1.6:install-node-and-npm (install node and npm) @ pipeline-timeline ---
[INFO] Node v6.4.0 is already installed.
[INFO] NPM 3.10.3 is already installed.
[INFO]
[INFO] --- exec-maven-plugin:1.6.0:exec (npm install) @ pipeline-timeline ---

The first part is the fe mvn plugin installing node and NPM, and the second is the embedded call to npm install.

This is largely inspired by the documentation found in the frontend-maven-plugin docs.