Skip to content

Instantly share code, notes, and snippets.

@cmawhorter
Last active April 19, 2016 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save cmawhorter/7c7128d46491cfd2f34c to your computer and use it in GitHub Desktop.
Save cmawhorter/7c7128d46491cfd2f34c to your computer and use it in GitHub Desktop.
Script to build grunt/yeoman project from jenkins on windows 7
@echo off
REM You may need to add `cd %WORKSPACE%` in the jenkins project prior to
REM calling this script. I have it in mine and didn't test without.
REM Correct paths to respective applications as-needed
SET PATH=%PATH%;C:\Program Files (x86)\nodejs;C:\Program Files (x86)\Git\bin;%AppData%\npm;C:\Ruby200-x64\bin
echo Installing or updating bower...
cmd /c npm install -g bower
echo Installing or updating dependencies...
cmd /c npm install
echo Installing or updating grunt-cli...
cmd /c npm install -g grunt-cli
echo Installing or updating bower dependencies...
cmd /c bower install
echo Building...
grunt build --no-color
echo Done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment