Add support to inject environmental variables from Jenkins to Mock

Description

We need to add support to inject environmental variables from Jenkins to Mock env using ci_env_client.py.
The problem is that when mock is reading the configuration file, it's already running as root, so we don't have the environmental variables we need to inject.
The solution is probably to save the variables before we're running as root.

Activity

Show:

Barak Korren October 8, 2017 at 8:40 AM

Error message when a requested env var is missing needs to be improved to tell the user what to do.

Current message can be very confusing when trying to use 'mock_runner.sh' for the 'jenkins' repo for example.

Eyal Edri October 1, 2017 at 10:56 AM

please make sure this feature is properly documented before closing the ticket, or open a dedicated ticket on documentation.

Fixed

Details

Assignee

Reporter

Priority

Created August 21, 2017 at 11:22 AM
Updated November 1, 2017 at 10:02 AM
Resolved October 8, 2017 at 10:02 AM