Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/bs / src / scripts / shell / pre_jenkins.ts
Size: Mime:
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 ')