opendevstack / opendevstack/ods-core

Error adding ALLOWED_CHANGE_REF_TYPES as env variable

Open
#1,252 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
53
Forks
34
Avg merge
3h 26m
Merged PRs (30d)
1

Description

https://github.com/opendevstack/ods-core/blob/0e02f3466cdd6f6e80a2c3a7d45509ff72f0ca97/jenkins/webhook-proxy/main.go#L207C18-L207C18

When:

  • Create Env Variable for Change Ref type that includes Branch and Tag

Expected result:

  • Webhook instance catches Tag pushed to the repo as a trigger event

Actual result:

  • Webhook instance does not load the env Variable and always say it is empty

Analysis:
The if clause is not checking the variable that retrieves en env information, is checking the empty array that will contain it after spliting (done inside the if)

Contributor guide

No contributing guide indexed for this repository

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 at jenkins/webhook-proxy/main.go around line 207 and trace how ALLOWED_CHANGE_REF_TYPES is read and split. Reproduce the configuration with both branch and tag values, then verify that a pushed tag triggers the webhook and that the environment variable is no longer reported as empty.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.