Name Last Update
.idea Loading commit data...
Docker-Image-Deplopy Loading commit data...
Docker-Node-Build Loading commit data...
.gitignore Loading commit data...
jenkins-pipeline.iml Loading commit data...
readme.md Loading commit data...

jenkins pipeline

build

当前支持的应用:

deploy

当前支持应用:

预置条件

master 节点

基础键安装: java,maven,node,docker,aws cli,python,git JAVA

[root@VM_102_17_centos ~]# java  -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)

MAVEN

[root@VM_102_17_centos ~]# mvn -v
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00)
Maven home: /home/soft/apache-maven-3.3.9
Java version: 1.8.0_65, vendor: Oracle Corporation
Java home: /opt/jdk1.8.0_65/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-123.el7.x86_64", arch: "amd64", family: "unix"

DOCKER

[root@VM_102_17_centos ~]# docker version
Client:
 Version:         1.12.6
 API version:     1.24
 Package version: docker-1.12.6-32.git88a4867.el7.centos.x86_64
 Go version:      go1.7.4
 Git commit:      88a4867/1.12.6
 Built:           Mon Jul  3 16:02:02 2017
 OS/Arch:         linux/amd64

Server:
 Version:         1.12.6
 API version:     1.24
 Package version: docker-1.12.6-32.git88a4867.el7.centos.x86_64
 Go version:      go1.7.4
 Git commit:      88a4867/1.12.6
 Built:           Mon Jul  3 16:02:02 2017
 OS/Arch:         linux/amd64

AWS CLI

#如果您已经有 pip 和支持的 Python 版本,则可以使用以下命令安装 AWS CLI:
$ pip install awscli --upgrade --user
[root@VM_102_17_centos ~]# aws --version
aws-cli/1.16.81 Python/2.7.15 Linux/3.10.0-123.el7.x86_64 botocore/1.12.71
#需要使用AWS账户来认证后即可使用
$ aws configure

NODE

[root@VM_102_17_centos ~]# node -v
v10.3.0

Python

下载的版本为:Python-2.7.15
1.下载python2.7.x

wget https://www.python.org/ftp/python/2.7.x/Python-2.7.x.tgz

2.解压并编译安装

tar -zxvf Python-2.7.x.tgz && cd Python-2.7.x && ./configure && make all && make install && make clean  && make distclean 

3.检查安装

/usr/local/bin/python2.7 -V

需要配置环境变量,且jenkins中执行命令能够正常的使用。

DOCKREE_NODE_BUILD

主要用于node的镜像的构建,其中涉及的流程为,测试环境构建镜像,spinnaker部署测试环境,线上工单申请,提交对应的镜像信息即可。

适用的项目:yohobuywap-node,yohobuy-node,yoho-web-app,ufo-web-app

Docker-Image-Deplopy

主要用于所有镜像aws与qcloud发布,可以被jenkins调用,也可以被工单系统调用。