Page MenuHomePhabricator

Pipelinelib: support passing environment variables to docker images
Closed, ResolvedPublic

Description

Some tests, such as code health tests require secrets like API keys and other configuration that currently isn't available to be passed to a docker image using pipelinelib, so they have to have a separate jenkins job to run. An example can be seen here: https://gerrit.wikimedia.org/r/c/mediawiki/services/push-notifications/+/604830/11

This feature could be added to pipelinelib by reading the environment vars from config.yaml and adding them to the docker run command.

Event Timeline

jeena created this task.Wed, Jul 8, 10:32 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptWed, Jul 8, 10:32 PM

Change 610922 had a related patch set uploaded (by Jeena Huneidi; owner: Jeena Huneidi):
[integration/pipelinelib@master] Support injecting env vars when running images

https://gerrit.wikimedia.org/r/610922

Change 610922 merged by jenkins-bot:
[integration/pipelinelib@master] Support injecting env vars when running images

https://gerrit.wikimedia.org/r/610922

Change 612692 had a related patch set uploaded (by Jeena Huneidi; owner: Jeena Huneidi):
[integration/pipelinelib@master] Support env vars and credentials in docker run

https://gerrit.wikimedia.org/r/612692

Change 612692 merged by jenkins-bot:
[integration/pipelinelib@master] Support env vars and credentials in docker run

https://gerrit.wikimedia.org/r/612692

Change 613321 had a related patch set uploaded (by Jeena Huneidi; owner: Jeena Huneidi):
[integration/pipelinelib@master] Replace println with echo

https://gerrit.wikimedia.org/r/613321

Change 613321 merged by jenkins-bot:
[integration/pipelinelib@master] Replace println with echo

https://gerrit.wikimedia.org/r/613321

Change 614855 had a related patch set uploaded (by Jeena Huneidi; owner: Jeena Huneidi):
[integration/pipelinelib@master] Fix UnsupportedOperationException for MultiBinding

https://gerrit.wikimedia.org/r/614855

Change 614855 merged by jenkins-bot:
[integration/pipelinelib@master] Fix UnsupportedOperationException for MultiBinding

https://gerrit.wikimedia.org/r/614855