Browse Source

08jenkins-agent-install-centos.sh

master
lizw 3 years ago
parent
commit
cc2d4717eb
  1. 1
      00base/08jenkins-agent-install-centos.sh

1
00base/08jenkins-agent-install-centos.sh

@ -331,6 +331,7 @@ function init:nodejs() {
wget --timeout=10 --waitretry=3 --tries=5 --retry-connrefused --no-check-certificate $nodejs_url -O ${BASE_DIR}/maven/$nodejs_file_name wget --timeout=10 --waitretry=3 --tries=5 --retry-connrefused --no-check-certificate $nodejs_url -O ${BASE_DIR}/maven/$nodejs_file_name
cd ${BASE_DIR}/nodejs cd ${BASE_DIR}/nodejs
tar -zxvf $nodejs_file_name tar -zxvf $nodejs_file_name
sudo chown -R \$(id -u):\$(id -g) ${BASE_DIR}/nodejs
fi fi
" "
check::exit_code "$?" "nodejs" "$host 安装nodejs ${NODEJS_VERSION}" "exit" check::exit_code "$?" "nodejs" "$host 安装nodejs ${NODEJS_VERSION}" "exit"

Loading…
Cancel
Save