Skip to content

Instantly share code, notes, and snippets.

@wulliam
Forked from cmawhorter/grunt-build.bat
Created November 9, 2015 15:30
Show Gist options
  • Select an option

  • Save wulliam/560818edf2a235005bdd to your computer and use it in GitHub Desktop.

Select an option

Save wulliam/560818edf2a235005bdd 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