how to run npm/grunt command from jenkins

前端 未结 2 987
长情又很酷
长情又很酷 2020-12-17 08:57

I\'m new to this area and was trying to run the following commands from jenkins:

npm install
grunt quickStart

So far I\'ve a jenkins runnin

2条回答
  •  天涯浪人
    2020-12-17 09:16

    The way I made it, was trough execute shell, as the build tool for nodejs is npm, I simply wrote a shell script that instructs jenkins to run npm install in the workspace directory inside jenkins where it clones the git repository and then to zip and move the package if successful to another folder.

提交回复
热议问题