Repository URL to install this package:
|
Version:
3.1.2 ▾
|
let resolve = require('path').resolve;
let shell = require('shelljs');
let MAJOR = require('./params/NODE_VERSION').MAJOR;
const envs = process.env;
// const pwd = String(shell.pwd())
const dir = __dirname;
let script = resolve(dir, './pre_jenkins.sh');
script = 'bash ' + script;
console.log('environment:', envs);
console.log('running shell script with bash: ', script);
if (MAJOR < 8) {
console.log('node version force installing...');
shell.exec(script);
}
else {
console.log('node version is good to go :-)');
shell.exec(script);
}
console.log('checking all node versions installed using this directory ');
//# sourceMappingURL=pre_jenkins.js.map