TeamCity build runner not recognizing executable

后端 未结 8 1568
悲哀的现实
悲哀的现实 2020-12-25 13:12

I\'m trying to run a simple gruntfile.js as part of my build in TeamCity. However, even after installing grunt and grunt-cli as global node packages, TeamCity s

8条回答
  •  清酒与你
    2020-12-25 13:27

    I know this question is kind of old. But I struggled with the same problem nowadays and couldn't find a solution... but finally I did. Here you are.

    TeamCity build steps should include:

    1) Installation grunt-cli Command Line Command: npm install grunt-cli

    2) Running grunt build task Command Line Command: node "node_modules/grunt-cli/bin/grunt" build

    Working directory for both cases should be where your grountfile.js is located.

提交回复
热议问题