Skip to content

Add environment variable substitution support to jenkins-support.psm1 (Windows parity) #2350

Description

@SalmanDeveloperz

What feature do you want to see added?

PR #2250 added environment variable substitution for configuration files copied
from /usr/share/jenkins/ref/ on Linux via jenkins-support. The same functionality
is not yet available for Windows containers via jenkins-support.psm1.

This would add equivalent support for JENKINS_ENABLE_ENV_SUBST=true in
jenkins-support.psm1, handling ${VAR} and ${VAR:-default} syntax in .xml,
.conf, .properties, and .groovy files during container initialization.

Upstream changes

Introduced in #2250, suggested by @lemeurherve upon merging.

Are you interested in contributing this feature?

Yes, I plan to open a follow-up PR implementing this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions