gitlabJenkins

CICD6 Jenkins分布式和pipeline

CICD6 Jenkins分布式和pipeline

jenkins distributed and pipeline work flow

suo.li
一. Jenkins 的分布式 在公司业务量很大,部署升级很频繁的情况下,Jenkins 面临的任务(Job)很多, 单台 jenkins master 同时执行代码 clone、编译、打包及构建,其性能可能会 出现瓶颈从而会影响代码部署效率。 Jenkins 官方提供了 jenkins 基于分布式的代码构建部署方案,将众多
CICD5 Jenkins和Gitlab实现持续部署

CICD5 Jenkins和Gitlab实现持续部署

using jenkins and gitlab to achive cicd

suo.li
环境: 主机名 IP gitlab-server 192.168.100.146 Jenkins-server 192.168.100.148 tomcat-server-node1 192.168.100.150 tomcat-server-node1 192.168.100.152 一. 配置基于 SSH KEY 拉取代码 1.1 在 Jenkins 生成秘钥对 root@Jenkins-server:~# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: SHA256:qqS6nFEktETN7yjdrUfRXyLjxgBrxN3+A+qQt4N9nNw root@Jenkins-server The key\'s randomart image is: +---[RSA 2048]----+ |.+o . . . | |o .o + . . | | o .o o o | | o + o * . . | | ..= o S * o
CICD4 Jenkins部署和基础使用

CICD4 Jenkins部署和基础使用

jenkins basics

suo.li
Jenkins 是一款开源 CI&CD 软件,用于自动化各种任务,包括构建、测试和部署软件。 Jenkins 支持各种运行方式,可通过系统包、Docker 或者通过一个独立的 Java 程序。 一. 部署 Jenkins 环境: 主机名 IP Jenkins-server 192.168.100.148 1.1 准备 JAVA 环境 ## 准备jdk并 解压 root@Jenkins-server:~# cd /usr/local/src/ root@Jenkins-server:/usr/local/src# rz -E rz waiting to receive. root@Jenkins-server:/usr/local/src# ll total 189996 drwxr-xr-x 2 root root 4096 Mar 10 15:15
CICD1 Gitlab部署和基础使用

CICD1 Gitlab部署和基础使用

Gitlab deploy and usage

suo.li
一. 环境准备 1.1 Ubuntu 环境 允许 root 远程 ssh 连接 ~$ sudo su - root [sudo] password for stevenux: ~# passwd Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully ~# vim /etc/ssh/sshd_config ... PermitRootLogin yes PasswordAuthentication yes ... 网络配置 root@gitlab-server:~# cat /etc/netplan/01-netcfg.yaml # This file describes the network interfaces available on your system # For more information, see netplan(5). network: version: 2 renderer: networkd ethernets: eth0: dhcp4: no dhcp6: no addresses: [192.168.100.146/24] gateway4: 192.168.100.2 nameservers: addresses: [192.168.100.2, 223.6.6.6] 配置国内的软件源,比如:阿里云 root@gitlab-server:~# cat /etc/apt/sources.list deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/