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

Commit 03e6fb3

Browse files
chore(jenkins): fix node version chooser in build scripts
The `set-node-version.sh` script was being run in its own shell and so was not actually changing the current version of node.
1 parent 4fc9cf6 commit 03e6fb3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/jenkins/build.sh

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

7+
source scripts/jenkins/set-node-version.sh
8+
79
# Enable tracing and exit on first failure
810
set -xe
911

10-
scripts/jenkins/set-node-version.sh
11-
1212
# This is the default set of browsers to use on the CI server unless overridden via env variable
1313
if [[ -z "$BROWSERS" ]]
1414
then

scripts/jenkins/release.sh

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

3737
function build {
38-
./set-node-version.sh
38+
source ./set-node-version.sh
3939
cd ../..
4040

4141
npm install -g grunt-cli

0 commit comments

Comments
 (0)