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路径

exportJAVA_HOME=/usr/local/jdk1.8.0_131
exportMAVEN_HOME=/usr/local/apache-maven-3.3.9
exportJENKINS_HOME=/var/lib/jenkins
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
重载配置环境
./etc/profile
#安装淘宝cnpm
#安装cnpm
npminstall-gcnpm--registry=
#安装bzip2
yuminstallbzip2-y


下面是jenkins的web界面配置

原文链接:https://www.f2er.com/centos/375386.html

猜你在找的CentOS相关文章