Status: Resolved (View Workflow)
Environment:Jenkins ver. 2.60.2, Windows 7, Chrome Version 59.0.3071.115 (Official Build) (64-bit), Java 1.8.x.
I have installed jenkins on my local windows 7. I have installed java 8. I have downloaded jenkins 2.0 from official website & completed setup by signing up as a admin user.
I have spring boot project with jenkinsFile so I started creating job with pipeline. I have setup pipeline from SCM git/bitbucket. I have also added specific Branch in Branches to build & script path as jenkinsFile path.
I have installed plugins like NodeJSPlugin. & configured in global tool configuration for NodeJS installation.
I tried multiple ways to install bower package but it won't give me success. Also after bower I want to install gulp.
This is how my job is created.
please find below error log.
I tried multiple ways to install by trying Global npm packages to install as - npm install -g grunt-bower-cli, npm install -g bower, email@example.com grunt-cli .
I have done some R&D for these errors. Please see the below details :-
When choose Job Type as "Free Style Project" then we can set option Provide Node & npm bin/ folder to PATH Then we can build project successfully with bower & it is also displaying bower version.
Refer attached snapshot where we can do settings for Free Style project.
In other case we face issues which I mentioned above for bower. If we choose Job Type as Pipeline then we don't have any option to check or select Provide Node & npm bin/ folder to PATH.
Refer attached snapshot where we can do settings for pipeline project.
Can we not make available option (Provide Node & npm bin/ folder to PATH) for both the Job/Project type. If we can do that then this issues will be solved for all.
Please if it is not possible on priority then please can we have some patch or anything that can solve my problem ?
I have created thread on Google group also. Here is the link [Jenkins-CI Issue post Jenkins CI-CD Issue