Last active
April 19, 2016 13:30
-
-
Save cmawhorter/7c7128d46491cfd2f34c to your computer and use it in GitHub Desktop.
Script to build grunt/yeoman project from jenkins on windows 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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