Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit bf266b6

Browse files
chore(jenkins): run Jenkins builds on Node 4 (via nvm)
1 parent 9bb184d commit bf266b6

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

scripts/jenkins/build.sh

+4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ echo "#################################"
44
echo "#### Jenkins Build ############"
55
echo "#################################"
66

7+
78
# Enable tracing and exit on first failure
89
set -xe
910

11+
scripts/jenkins/set-node-version.sh
12+
1013
# This is the default set of browsers to use on the CI server unless overridden via env variable
1114
if [[ -z "$BROWSERS" ]]
1215
then
@@ -19,6 +22,7 @@ rm -f angular.js.size
1922

2023

2124
# BUILD #
25+
npm install -g grunt-cli
2226
npm install --color false
2327
grunt ci-checks package --no-color
2428

scripts/jenkins/master.sh

+1-8
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,7 @@ function init {
1717

1818
function build {
1919
cd ../..
20-
21-
if [[ $NO_TEST == "true" ]]; then
22-
npm install --color false
23-
grunt ci-checks package --no-color
24-
else
25-
scripts/jenkins/build.sh
26-
fi
27-
20+
scripts/jenkins/build.sh
2821
cd $SCRIPT_DIR
2922
}
3023

scripts/jenkins/release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ function init {
3535
}
3636

3737
function build {
38+
./set-node-version.sh
3839
cd ../..
39-
4040
npm install --color false
4141
grunt ci-checks package --no-color
4242

scripts/jenkins/set-node-version.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
# Install nvm for this shell
4+
source ~/.nvm/nvm.sh
5+
6+
# Use node.js at 4.2.x
7+
nvm install 4.2

0 commit comments

Comments
 (0)