随笔分类 - CI-CD-Jenkins
CI-CD-Jenkins
摘要:1. 参数化构建 2. Jenkins script podTemplate(name: 'jenkins-slave-4000', cloud: 'kubernetes', namespace: 'default', label: 'jenkins-slave-4000', containers:
阅读全文
摘要:1. nginx的配置 location /jenkinsno { index index.html index.htm; proxy_pass http://127.0.0.1:8081; proxy_connect_timeout 3000s; proxy_send_timeout 3000s;
阅读全文
摘要:1.脚本的路径 2.代码路径 3.自动生成的Jenkinsfile creating-a-pipeline-in-blue-ocean/Jenkinsfile pipeline { agent { docker { image 'node:6-alpine' args '-p 3000:3000'
阅读全文
摘要:1.mail As an example of loading variable values from Groovy: mail to: 'devops@acme.com', subject: "Job '${JOB_NAME}' (${BUILD_NUMBER}) is waiting for
阅读全文
摘要:0.获取admin的token 1.告警脚本 [root@slave1 do1cloud]# cat /do1cloud/post_build/sz_build.sh#!/bin/bashJENKINS_URL=$3JOB_NAME=$4BUILD_NUMBER=$5#深圳团队userkey='42
阅读全文
摘要:1.sh /home/jenkins_scripts/sendmessg.sh 生产 公众号 ${DEPLOY_FILE} 开始发布 2.脚本 sh /home/jenkins_scripts/sendmessg.sh 生产 公众号 ${DEPLOY_FILE} 开始发布 #!/bin/sh use
阅读全文
摘要:1.拉取代码: mkdir /do1cloud/testplugins cd /do1cloud/testplugins git clone https://github.com/KrisMarko/kr-changelog.git 2.重启jenkins服务 ls /root/.jenkins/p
阅读全文
摘要:1.Quick setup — if you’ve done this kind of thing before https://github.com/littlevigra/django-urls-mgr 2.create a new repository on the command line
阅读全文
摘要:1.安装node,npm wget https://nodejs.org/dist/v14.15.1/node-v14.15.1-linux-x64.tar.xz tar -xf node-v14.3.0-linux-x64.tar.xz mv node-v14.3.0-linux-x64 /opt
阅读全文
摘要:pipeline { agent any stages { stage('common') { //每个stage为一流程,与脚本式基本一致,每个stage可以定义名称 steps { //步骤块,内部包含具体操作 sh 'rm -fr /tmp/jenkins-test;mkdir -p /tmp
阅读全文
摘要:1.推送代码进gitlab yum -y install git git clone http://192.168.1.45/root/devops-java-sample.git cd devops-java-sample/ vi fuck.txt git add . git commit -m
阅读全文
摘要:1.Jenkins 2.0 的精髓是 Pipeline as Code Jenkins 2.0 的精髓是 Pipeline as Code,是帮助 Jenkins 实现 CI 到 CD 转变的重要角色。Pipeline是一套运行于 Jenkins 上的工作流框架,将原本独立运行于单个或者多个节点的任
阅读全文