opendevstack / ods-core

The core of OpenDevStack - infrastructure setup based on Atlassian tools, Jenkins, Nexus, SonarQube and shared images
Apache License 2.0
47 stars 34 forks source link

Webhook proxy BC recretion issues #1265

Open BraisVQ opened 6 months ago

BraisVQ commented 6 months ago

Describe the bug Jenkins webhook component sometimes when re-creting a pipeline BuildConfig that has been removed does not contain the "sourceSecret" on the created resource nor it has the "trigger secret"

To Reproduce Steps to reproduce the behavior:

  1. Make webhook proxy create a Pipeline
  2. Remove that Pipeline
  3. Make webhook create the pipeline again
  4. Check pipeline yaml and see if it contains "sourceSecret" and "trigger secret"
  5. Trigger webhook from Bitbucket
  6. See errors in Webhook proxy pod logs

Expected behavior The BuildConfig pipeline should always be created with the necesary configuration.

Affected version (please complete the following information):