|
@@ -367,6 +367,10 @@ function init:nodejs() {
|
|
|
yarn config set chromedriver_cdnurl https://cdn.npm.taobao.org/dist/chromedriver -g
|
|
|
yarn config set operadriver_cdnurl https://cdn.npm.taobao.org/dist/operadriver -g
|
|
|
yarn config set fse_binary_host_mirror https://npm.taobao.org/mirrors/fsevents -g
|
|
|
+ # 验证
|
|
|
+ node -v
|
|
|
+ npm -v
|
|
|
+ yarn -v
|
|
|
"
|
|
|
check::exit_code "$?" "nodejs" "$host 安装nodejs环境" "exit"
|
|
|
exc_cmd="$(utils::quote "$exc_cmd")"
|
|
@@ -505,7 +509,7 @@ function init:jenkins() {
|
|
|
httpPort=\\\${1:-'30003'}
|
|
|
pid=\\\`ps -ef | grep 'DappName=jenkins' | grep -v 'grep' | awk '{print \\\$2}'\\\`
|
|
|
if [ -z \\\$pid ];then
|
|
|
- nohup $java_path/bin/java $java_mem_opts $database_opts $java_opts_ext -jar jenkins.war --httpPort=\\\$httpPort >${BASE_DIR}/jenkins/logs.log 2>&1 &
|
|
|
+ nohup $java_path/bin/java $java_mem_opts $database_opts $java_opts_ext -jar ${BASE_DIR}/jenkins/jenkins.war --httpPort=\\\$httpPort >${BASE_DIR}/jenkins/logs.log 2>&1 &
|
|
|
echo 'jenkins启动成功!'
|
|
|
else
|
|
|
echo 'jenkins正在运行...'
|