diff --git a/modules/ui/bin/jenkins-build-deploy.sh b/modules/ui/bin/jenkins-build-deploy.sh index 343a0c905..b0ada174a 100755 --- a/modules/ui/bin/jenkins-build-deploy.sh +++ b/modules/ui/bin/jenkins-build-deploy.sh @@ -49,7 +49,7 @@ echo "++ Building: UI module - STARTED" # ----------- Install dependencies first --------------------------------------- echo "++ execute: (cd ./modules/ui && npm install && bower install && grunt build)" -(cd ./modules/ui && npm install && bower install && grunt build) +(cd ./modules/ui && npm install && bower install && ./node_modules/grunt-cli/bin/grunt build) # ----------- Copy plugins ------------------------------------------------------ echo "++ Installing Plugins: ${CONTRIB_PLUGINS_TO_INSTALL}" @@ -92,8 +92,8 @@ echo "++ Starting actual grunt build" cp -R dist/plugins target/app; \ sed -i '' -e "s|VERSIONLOC|${version}|g" target/app/index.html 2>/dev/null; \ - (cd target; grunt clean); \ - (cd target; grunt build --target=develop --no-color) \ + (cd target; ./node_modules/grunt-cli/bin/grunt clean); \ + (cd target; ./node_modules/grunt-cli/bin/grunt build --target=develop --no-color) \ ) echo "++ Building: UI module - FINISHED" diff --git a/modules/ui/package.json b/modules/ui/package.json index 3ea321f3e..e5c38f87d 100644 --- a/modules/ui/package.json +++ b/modules/ui/package.json @@ -7,6 +7,7 @@ "grunt": "~0.4.1", "grunt-autoprefixer": "~0.4.0", "grunt-bower-install": "~1.0.0", + "grunt-cli": "^1.3.2", "grunt-concurrent": "~0.5.0", "grunt-contrib-clean": "~0.5.0", "grunt-contrib-compass": "~0.7.2",