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

[Bug][GitLab] Disable deployments extraction with production #8219

Open
2 of 3 tasks
antoniomuso opened this issue Nov 25, 2024 · 1 comment
Open
2 of 3 tasks

[Bug][GitLab] Disable deployments extraction with production #8219

antoniomuso opened this issue Nov 25, 2024 · 1 comment
Labels
devops Something about CI/CD (devops) type/bug This issue is a bug

Comments

@antoniomuso
Copy link
Contributor

antoniomuso commented Nov 25, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

I want to match only pipelines of tags that match my regex. But for some reason, this configuration match all deployments:
image

What do you expect to happen

I expect to have inside the deployments set only the pipelines that match the regex, but it doesn't work for some reason.

How to reproduce

Take a repository that has Gitlab deployments and configure the data scope in that way:
image

You will get all deployments!

Anything else

No response

Version

v1.0.2-beta4

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@antoniomuso antoniomuso added the type/bug This issue is a bug label Nov 25, 2024
Copy link

dosubot bot commented Nov 25, 2024

To address the issue of matching only pipelines of tags that match your regex without including production pipelines, you can configure your GitLab settings in Apache DevLake as follows:

  1. Identify Deployments with Regex: Use a regex pattern that matches only the pipelines you want to consider as deployments. For example, if you want to match pipelines that run on specific tags, ensure your regex accurately reflects those tags.

  2. Exclude Production Deployments: Use a separate regex pattern to match and exclude production deployments. If production pipelines are identified by specific job names or tags, ensure this regex matches those and excludes them from the deployment set. For instance, if production pipelines are identified by a job like 'build-image-to-prod', you can use a regex like .*-prod.* to match and exclude them.

Make sure that the regex patterns are correctly configured in the appropriate fields to ensure that only the desired pipelines are included in the deployments set [1].

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added the devops Something about CI/CD (devops) label Nov 25, 2024
@antoniomuso antoniomuso changed the title [Bug][GitLab] Disable deployment extraction with production [Bug][GitLab] Disable deployments extraction with production Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops Something about CI/CD (devops) type/bug This issue is a bug
Projects
None yet
Development

No branches or pull requests

1 participant