Skip to content

Feature: Runtime Parameters as Environment Variables in Devtron CI Pipelines #6511

@pawan-59

Description

@pawan-59

🔖 Feature description

Currently, Devtron CI allows passing runtime parameters during pipeline execution, but these parameters are not automatically exposed as environment variables within the CI pipeline steps. This limits the usability of dynamic configurations and custom scripting within the build process.

If anyone wants to use the variable value in any scripting then they have use JQ or some other tool to grep the value from CI_CD_EVENTS variable, which obviously is not known by any end user.

🎤 Pitch / Usecases

We have a use case to update the Base Docker image, which we can pass from the build args of the docker build, and we are passing the value of base Image using a runtime Parameter to grep the value I'm passing build args like this

Key: BASE_IMAGE
Value: (echo $CI_CD_EVENT | jq -r .commonWorkflowRequest.runtimeEnvironmentVariables.BASE_IMAGE)

By enabling this feature, the user can directly use the Value like $BASE_IMAGE

🔄️ Alternative

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Labels

ENT-IPCenhancementNew feature or requestneeds-triageIssue is not approved or ready-to-work on

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions