kubesphere / kubesphere/ks-devops

Add the functions of tag automatic scanning and automatic trigger pipeline for gitlab type pipeline under Devops project

Open
#306 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/proposal
Dominant language
Go
Stars
164
Forks
140
PR merge metrics
No merged PRs in 30d

Description

  1. By default, when you create a pipeline with gitlab type, you can only automatically scan out branches and tags without triggering automatic build

  2. There is a requirement that specific branches or tags can not only be scanned, but also be built automatically. It is found that the basic branch build strategies plug-in can solve this problem, but there is no interface for configuration in kubesphere

  3. Because there is no interface configuration, you need to configure parameters on Jenkins every time you create a pipeline from kubesphere to realize the function of automatic build

This operation needs to modify the pipeline configuration from kubesphere in the future, and may not be synchronized to Jenkins.

Note:

After the tag is set on gitlab, the CI operation can be triggered immediately to ensure that the online production image can be built. When it comes to the official release, manual CD is to ensure that only CD operation is required to control the online time (CI / CD is a pipeline, and only CI will be triggered automatically through the logic control in jenkinsfile).

The gitlab Branch source plugin is described as follows:

Tag discovery - Discover tags in the project. To automatically build tags install basic-branch-build-plugin.

https://plugins.jenkins.io/gitlab-branch-source/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the GitLab Branch Source plugin behavior described in the issue and how KubeSphere creates GitLab-type pipelines. Define where branch and tag automatic-build settings belong in the KubeSphere pipeline configuration, and verify that those settings remain synchronized with Jenkins.

Written by the indexing model from the issue text.

Assessment

Domain
ci-cd, devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.