Upload a groovy file from the local machine to the groovyCommand

2020-12-21 Thread Charles Moulliard
Hi How can we upload a groovy file from a local machine to the jenkins instance - workspace as the following reports the error within a FreeStyle project "ERROR: (script, line 81) File backupPOM.groovy does not exist in workspace" ? mavenJob('check-bom-dependencies') { description 'Maven J

Nvm in Jenkins pipeline

2020-12-21 Thread Manoj Chander
Hi I have installed nvm and have nvm.sh under /home/Jenkins/.nvm. Have configured NVM_DIR to Jenkins bashrc How to use nvm to use specific version npm in my pipeline. Stages { Stage { Sh """ Source~/.nvm /home/Jenkins/. nvm/nvm.sh use 12.16.3 """ } } Is not working . Regards , manoj -- You

Re: Advice for structuring a maven pipeline with jenkins and git

2020-12-21 Thread Yannick Lacaute
Hi, the question is more : how many versions do you want to manage ? Does it make sense for a final product to take a "common" dependency in version 1.1.2 while another final product take the same dependency in version 1.0.0 because late in dev ? There is many way of doing, one repo for all, one re

Advice for structuring a maven pipeline with jenkins and git

2020-12-21 Thread Max
Hi, we have several maven projects which are separate but depend on each other from within in several ways. If It helps to get the general picture, the following link lists all our current maven projects with their respective internal dependencies listed in the bullet points. https://docs.google