Skip to content

Resolve environment variables before descriptor lookup in HeteroDescribableConfigurator#2805

Merged
timja merged 2 commits into
jenkinsci:masterfrom
somiljain2006:theme-manager-issue
Mar 24, 2026
Merged

Resolve environment variables before descriptor lookup in HeteroDescribableConfigurator#2805
timja merged 2 commits into
jenkinsci:masterfrom
somiljain2006:theme-manager-issue

Conversation

@somiljain2006

@somiljain2006 somiljain2006 commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

Resolve scalar values using SecretSourceResolver before descriptor lookup in HeteroDescribableConfigurator. Previously, values like ${ENV_VAR} were treated as literal symbols, causing lookup failures. This change ensures environment variables are resolved prior to selecting the Describable implementation. The fix includes unit tests in HeteroDescribableConfiguratorTest and has been manually verified via the Jenkins Script Console to instantiate the correct configuration classes.

Fixes #2323

Your checklist for this pull request

🚨 Please review the guidelines for contributing to this repository.

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side) and not your master branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or in Jenkins JIRA
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Did you provide a test case? That demonstrates a feature that works or fixes the issue.

@somiljain2006
somiljain2006 requested a review from a team as a code owner March 24, 2026 03:49
@somiljain2006

Copy link
Copy Markdown
Contributor Author

@timja Can you please review this pr?

@timja timja left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, looks reasonable and good test coverage.

@timja
timja merged commit 6ae126e into jenkinsci:master Mar 24, 2026
17 checks passed
@somiljain2006
somiljain2006 deleted the theme-manager-issue branch March 24, 2026 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug with Theme Manager using Environment Variable

2 participants