Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature of update this project automatically #8

Merged
merged 25 commits into from Mar 12, 2020

Conversation

LinuxSuRen
Copy link
Member

@LinuxSuRen LinuxSuRen commented Mar 9, 2020

master 分支上的方案,还需要人工进行维护——也就是每次版本更新之后都需要手工添加一些配置信息。该 feature 分支希望能够自动化这个过程,把该项目的重点在于维护配方(formula)。大致的思路如下:

  1. 定时检测 Jenkins 是否有新版本,如果有的话,更新到配置文件 config.yaml
  2. master 分支有变更后,触发流水线
    1. 检查配方文件的 md5 值是否有变化
    2. 构建有变化的配方
    3. 如果配方没有变化,则检查制品仓库中是否包含 Jenkins 对应的版本,如果不存在则构建该版本

鉴于上述过程有一定的复杂度,因此,计划采用 go 语言来实现。需要有的命令行包括:

  • cwp check 上述的第一步
  • cwp build 上述的第二步

@LinuxSuRen LinuxSuRen changed the title WIP: Add feature of update this project automatically Add feature of update this project automatically Mar 12, 2020
@LinuxSuRen LinuxSuRen merged commit d5c2236 into jenkins-zh:master Mar 12, 2020
@LinuxSuRen LinuxSuRen deleted the auto-update branch March 12, 2020 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant