Skip to content

Error adding ALLOWED_CHANGE_REF_TYPES as env variable #1252

@aoteropas

Description

@aoteropas

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions