jenkins常用插件

jenkins插件相关

插件源地址
https://updates.jenkins.io/update-center.json
https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json


## 基础插件
//中文插件
Chinese (Simplified)

// pipeline阶段视图
Pipeline Stage View

//LDAP集中用户管理
LDAP Plugin

//工作区清理
Workspace Cleanup

//角色权限管理
Role-based Authorization
Authorize Project

//凭证管理
Credentials Binding

//配置文件管理
Config File Provider

//右键发送
Email Extension

//通过SSH方式管理节点
SSH Build Agents
SSH Agent


## 任务相关插件
//扩展参数插件
Extended Choice
Active Choice Parameter
Dynamic Extended Choice ParameterVersion


//流水线插件管理
Pipeline

//git插件
Git Plugin
GitLab

//Git Parameter插件(构建时可选分支和tag)
Git Parameter

//获取harbor镜像标签
Image Tag Parameter

//Maven插件
Maven Integration
Pipeline Maven Integration

//SonarQube插件
SonarQube Scanner

//K8S相关插件
Kubernetes
Kubernetes Continuous Deploy

//部署推送插件
Deploy WebLogic
Deploy to container
# vim conf/tomcat-users.xml
<role rolename="manager-gui"/>
<user username="jenkins" password="jenkins" roles="manager-gui"/>

# vim webapps/manager/META-INF/context.xml
<!--
  <Valve className="org.apache.catalina.valves.RemoteAddrValve"
         allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
-->

//远程部署
Publish Over SSH

更换插件源

更换jenkins插件源: 插件管理->高级设置

https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json


进入jenkins目录
cd jenkins_home/updates
sed -i 's#https://updates.jenkins.io/download#https://mirrors.tuna.tsinghua.edu.cn/jenkins#g' default.json && sed -i 's#http://www.google.com#https://www.baidu.com#g' default.json

MAVEN相关配置

//仓库位置
<localRepository>/data/repo</localRepository>

//阿里云镜像,在最后一个 </mirrors>结束标签前添加
    <mirror>
       <id>nexus-aliyun</id>
       <mirrorOf>*</mirrorOf>
       <name>Nexus aliyun</name>
       <url>http://maven.aliyun.com/nexus/content/groups/public</url>
    </mirror>

jenkins页面配置
配置JDK和MAVEN
Jenkins->Global Tool Configuration
新增JDK和MAVEN(取消自动安装)
添加MAVEN环境变量

Jenkins->Manage Jenkins->Configure System
勾选Environment variables
新增
JAVA_HOME -> /usr/local/java/jdk1.8.0_251
MAVEN_HOME-> /usr/local/apache-maven-3.6.3
PATH+EXTRA-> $MAVEN_HOME/bin

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值