Jenkins

「Jenkins」- 周期性构建/定时执行作业(学习笔记,翻译) @20210118

北城以北 提交于 2021-01-19 00:37:11
问题描述 在 Jenkins 中,我们需要周期性构建,即定时执行作业,比如每隔 15 分钟执行构建。 通过 Build Triggers / Build periodically 实现(针对每个作业的单独设置) 该笔记将记录:Build periodically 的配置方法(实际是对帮助手册的翻译,“帮助手册”是指在 Build periodically 后的“问号按钮”) 学习笔记(文档翻译) 该字段(Build periodically)的语法与 Cron 类似,但是有轻微的不同。明确地说,每行有五个字段,使用 SPACE 或 TAB 分隔: 1)MINUTE,Minutes within the hour (0–59) 2)HOUR,The hour of the day (0–23) 3)DOM,The day of the month (1–31) 4)MONTH,The month (1–12) 5)DOW,The day of the week (0–7) where 0 and 7 are Sunday. 在单个字段上,可以指定多个值(操作符),格式如下(以下按照优先级排序): 1)*,指定多个有效值; 2)M-N,指定某个范围内的值; 3)M-N/X,*/X,在特定范围(M-N)或者全部有效值(*)内,间隔 X 的所有值; 4)A,B,...,Z,罗列出多个值;

「Jenkins」- 使用 Nginx 反向代理 Jenkins 服务 @20210118

佐手、 提交于 2021-01-18 17:00:50
配置文件 详细的内容参考官方的「 Running Jenkins behind Nginx 」文档 下面是配置文件(直接复制,我们也没有深入研究): upstream jenkins { keepalive 32; # keepalive connections server 127.0.0.1:8080; # jenkins ip and port } server { listen 80; # Listen on port 80 for IPv4 requests server_name jenkins.example.com; #this is the jenkins web root directory (mentioned in the /etc/default/jenkins file) root /var/run/jenkins/war/; access_log /var/log/nginx/jenkins/access.log; error_log /var/log/nginx/jenkins/error.log; ignore_invalid_headers off; #pass through headers from Jenkins which are considered invalid by Nginx server. location ~ "^

On a build of a Jenkins job, is it possible to change build parameters midway through?

☆樱花仙子☆ 提交于 2021-01-18 08:50:27
问题 We are using Jenkins to automate several of our build and test processes. For some of our process, the engineer starting the build needs to specify a parameter. But the range of possible and optimal values for that parameter change throughout the course of the day. What I would like to do is let the engineer specify a value - if they know an optimal value - or leave it blank and have a value be calculated by an early build step. If the value is calculated, I would like the calculating build

On a build of a Jenkins job, is it possible to change build parameters midway through?

烈酒焚心 提交于 2021-01-18 08:48:08
问题 We are using Jenkins to automate several of our build and test processes. For some of our process, the engineer starting the build needs to specify a parameter. But the range of possible and optimal values for that parameter change throughout the course of the day. What I would like to do is let the engineer specify a value - if they know an optimal value - or leave it blank and have a value be calculated by an early build step. If the value is calculated, I would like the calculating build

On a build of a Jenkins job, is it possible to change build parameters midway through?

孤人 提交于 2021-01-18 08:48:06
问题 We are using Jenkins to automate several of our build and test processes. For some of our process, the engineer starting the build needs to specify a parameter. But the range of possible and optimal values for that parameter change throughout the course of the day. What I would like to do is let the engineer specify a value - if they know an optimal value - or leave it blank and have a value be calculated by an early build step. If the value is calculated, I would like the calculating build

On a build of a Jenkins job, is it possible to change build parameters midway through?

杀马特。学长 韩版系。学妹 提交于 2021-01-18 08:47:28
问题 We are using Jenkins to automate several of our build and test processes. For some of our process, the engineer starting the build needs to specify a parameter. But the range of possible and optimal values for that parameter change throughout the course of the day. What I would like to do is let the engineer specify a value - if they know an optimal value - or leave it blank and have a value be calculated by an early build step. If the value is calculated, I would like the calculating build

On a build of a Jenkins job, is it possible to change build parameters midway through?

做~自己de王妃 提交于 2021-01-18 08:44:57
问题 We are using Jenkins to automate several of our build and test processes. For some of our process, the engineer starting the build needs to specify a parameter. But the range of possible and optimal values for that parameter change throughout the course of the day. What I would like to do is let the engineer specify a value - if they know an optimal value - or leave it blank and have a value be calculated by an early build step. If the value is calculated, I would like the calculating build

On a build of a Jenkins job, is it possible to change build parameters midway through?

不问归期 提交于 2021-01-18 08:44:01
问题 We are using Jenkins to automate several of our build and test processes. For some of our process, the engineer starting the build needs to specify a parameter. But the range of possible and optimal values for that parameter change throughout the course of the day. What I would like to do is let the engineer specify a value - if they know an optimal value - or leave it blank and have a value be calculated by an early build step. If the value is calculated, I would like the calculating build

On a build of a Jenkins job, is it possible to change build parameters midway through?

假如想象 提交于 2021-01-18 08:43:17
问题 We are using Jenkins to automate several of our build and test processes. For some of our process, the engineer starting the build needs to specify a parameter. But the range of possible and optimal values for that parameter change throughout the course of the day. What I would like to do is let the engineer specify a value - if they know an optimal value - or leave it blank and have a value be calculated by an early build step. If the value is calculated, I would like the calculating build

Jenkins系列视频~Jenkins 共享库的基础使用

大憨熊 提交于 2021-01-14 18:53:11
Jenkins系列视频教程火热制作中,每周二发布( 关注 Jenkins 中文社区哔哩哔哩,查看完整的视频 )。 本视频中,介绍 Jenkins Shared-library 共享库的基本使用 概述 Jenkins shared-library 也就是流水线共享库,使用 Groovy 编写,用于封装 Jenkins 流水线(Pipeline)脚本(Jenkinsfile)中的通用逻辑。更多描述,请查看 Jenkins 官方文档。 为什么? 在企业中,通常有很多项目的构建、发布过程是非常相似的。有统一的软件构建、发布流程,对于提高团队效率,减少不必要的面对面沟通的重要手段。但,随之而来的一个问题是: 需要维护很多流水线脚本 流程上一旦有改动,就需要对很多项目进行修改 部分情况下,流水线的维护者和项目的开发者不在一个团队,从而没有修改代码库的权限 对于以上所描述的情况,相信很多人都能想到,我们需要一个集中存放流水线脚本的地方。例如:有人希望可以把流水线脚本(Jenkinsfile)存放到一个 HTTP 服务器上,让每个项目都使用这个服务器上的脚本。 但是,我想说的是:千万不要把你们团队的软件构建、发布脚本随随便便扔一个地方了事。如果你认为这些脚本就是一些普通的文本文件,那么你就错了。正是这些脚本很大程度上影响着团队的项目迭代效率