centos7.x之jenkins添加nodejs插件

前端之家收集整理的这篇文章主要介绍了centos7.x之jenkins添加nodejs插件前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

到npm官网下载node-v8.1.3-linux-x64.tar,然后解压到/usr/local/目录下

/usr/local/node-v8.1.3-linux-x64

/etc/profile添加nodejs路径

  1. exportJAVA_HOME=/usr/local/jdk1.8.0_131
  2. exportMAVEN_HOME=/usr/local/apache-maven-3.3.9
  3. exportJENKINS_HOME=/var/lib/jenkins
  4. exportPATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/jdk1.8.0_131/bin:/usr/local/jdk1.8.0_131/bin:/usr/local/apache-maven-3.3.9/bin:/usr/local/jdk1.8.0_131/bin:/usr/local/apache-maven-3.3.9/bin:/usr/local/node-v8.1.3-linux-x64/bin
  1. 重载配置环境
  2. ./etc/profile
  1. #安装淘宝cnpm
  2. #安装cnpm
  3. npminstall-gcnpm--registry=
  4. #安装bzip2
  5. yuminstallbzip2-y


下面是jenkins的web界面配置

猜你在找的CentOS相关文章