Skip to content

Commit 5349420

Browse files
committed
MLE-15583 : Revert back the homedir-polyfill exclusion changes since homedir-polyfill might not be a threat.
1 parent 7a9a352 commit 5349420

File tree

4 files changed

+407
-586
lines changed

4 files changed

+407
-586
lines changed

Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def runTests(String type,String version){
1010
cd node-client-api
1111
node --version
1212
npm --version
13-
npm install
13+
npm ci
1414
cd test-app
1515
./gradlew -i mlDeploy -g $PWD
1616
cd ..
@@ -26,7 +26,7 @@ def runAuditReport(){
2626
sh '''
2727
export PATH=${NODE_HOME_DIR}/bin:$PATH
2828
cd node-client-api
29-
npm install
29+
npm ci
3030
rm -rf $WORKSPACE/npm-audit-report.json || true
3131
npm audit -json || true > $WORKSPACE/npm-audit-report.json
3232
'''
@@ -40,7 +40,7 @@ def runE2ETests(String type,String version){
4040
cd node-client-api
4141
node --version
4242
npm --version
43-
npm install
43+
npm ci
4444
node etc/test-setup-qa.js
4545
# Adding sleep for the setups to complete before running test-complete
4646
sleep 10

checkNodeVersion.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const result = process.versions;
2+
if (result && result.node) {
3+
const nodeVersion = parseFloat(result.node).toFixed(2);
4+
if (nodeVersion >= 16.14) {
5+
console.log('-------******* Good to Go with your Node Version: ' + result.node + ' *******-------');
6+
} else {
7+
console.log('-------******* Package installation(npm install) or Project startup command(npm start) failed due to Node Version, Please install and use Node Version >=16.14 *******-------');
8+
console.log('-------******* Your current Node Version is: ' + result.node + ' *******-------');
9+
process.exit(1);
10+
}
11+
} else {
12+
console.log('-------******* Something went wrong while checking Node version *******-------');
13+
process.exit(1);
14+
}

0 commit comments

Comments
 (0)