Jenkins配置git插件以及服务器安装git
来源:互联网 发布:快手虚拟定位软件 编辑:程序博客网 时间:2024/05/27 18:17
1、git安装包
2、git安装在和Jenkins同一个服务器上
1、git所需的安装依赖包
#yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils
2、解压git安装包
tar xzf git-1.8.3.1.tar.gz
3、确认所在服务器是否安装了cmake
cmake下载地址:http://www.cmake.org/cmake/resources/software.html
[root@localhost mysql-5.6.4-m7]# yum install ncurses-devel*
[root@localhost mysql-5.6.4-m7]# rm CMakeCache.txt (注意这里是删除CMakeCache.txt ,有一个跟它很相似的文件,别删错了!)
[root@localhost mysql-5.6.4-m7]#make
[root@localhost mysql-5.6.4-m7]#make install
[root@localhost tmp]# cd cmake-2.8.9/
[root@localhost cmake-2.8.9]# ./bootstrap
[root@localhost cmake-2.8.9]#make
[root@localhost cmake-2.8.9]#make install
如果要更新cmake 只需进入相关目录,执行
cmake.
make
make install
4、编译
[root@localhost cmake-2.8.9]#cd git-1.8.3.1# make prefix=/usr/local/opt/git all
[root@localhost cmake-2.8.9]# make prefix=/usr/local/opt/git install
5、添加到执行文件中
[root@localhost cmake-2.8.9]# echo "export PATH=$PATH:/usr/local/opt/git/bin" >>/etc/bashrc# source /etc/bashrc
6、查看版本
[root@localhost cmake-2.8.9]# git --version
7、Jenkins配置git
jenkins-系统管理-全局变量配置
8、Jenkins服务器生成密钥对(无需设置密码)
Enter file in which to save the key (/home/hadoop/.ssh/id_rsa): (直接回车)
Enter passphrase (empty for no passphrase): (不需要输入密码)
Enter same passphrase again:
Your identification has been saved in /home/hadoop/.ssh/id_rsa.
Your public key has been saved in /home/hadoop/.ssh/id_rsa.pub.
The key fingerprint is: 79:0a:3d:04:3d:83:d5:24:a8:94:62:89:f3:b7:90:f8 hadoop@test
9、登录git服务器,点击头像-settings-SSH keys
key内容填写id_rsa.pub公钥的内容
title随便写
10、构建项目配置
a.git参数
b.输入git路径
- Jenkins配置git插件以及服务器安装git
- jenkins git插件安装
- Git+gerrit+jenkins安装配置
- jenkins安装,配置git项目
- Jenkins Git Parameter 插件配置过程
- Jenkins的Git配置
- jenkins+git配置
- jenkins+git配置
- git+jenkins配置
- Jenkins + Maven + Git 安装
- jenkins使用之git插件
- linux搭建配置以及恢复git服务器
- Ubuntu--Jenkins中配置GIT仓库 以及出现配置git时not connection 解决办法 ---
- Jenkins的Git path配置
- Jenkins-配置git maven testng
- Jenkins安装+配置Git +Maven的自动化构建(上)
- Jenkins安装+配置Git +Maven的自动化构建(中)
- Jenkins安装+配置Git +Maven的自动化构建(下)
- SOA入门--新建简单的web service project
- ElasticSearch5.X IK分词器使用
- 移动互联网时代,小微企业仍需要官网
- Vue+Django REST framework 生鲜电商项目
- 关于Hibernate的QBC查询hibernate_Restrictions用法
- Jenkins配置git插件以及服务器安装git
- 数据结构与算法之一(三种简单排序)
- 湘潭大学-基于Dragonboard 410c教室资源管理与信息查询系统(三)
- linux下nginx的安装与配置
- 指定网段走指定网卡网关方法
- nginx入门级学习
- bzoj 2212: [Poi2011]Tree Rotations
- Linux 零拷贝技术
- 1_性能方面的命令