Skip to content
This repository was archived by the owner on Jan 17, 2024. It is now read-only.
This repository was archived by the owner on Jan 17, 2024. It is now read-only.

[BUG] Environment variables are overwritten #47

Open

Description

@raydouglass

Each docker exec runs with the host's environment variables. This can cause weird issues since things like the PATH is overwritten and the image being used may rely on its specific PATH.

At the very least, PATH from the host should not be used. Potentially nothing from the host should be.

Activity

  1. ajschmidt8 commented on Nov 29, 2021

    @ajschmidt8
    Member

    I'm thinking we should handle environment variables like this:

    • Include a checkbox that, when enabled, will automatically pass through all known Jenkins environment variables (we'll have to make a list of all known environment variables provided by Jenkins)
    • Include a text area input box for additional environment variables that should be passed into container
      • Input should accept two formats:
        • ENV_VAR, which copies the ENV_VAR from the host machine if it exists, otherwise defaults to blank (i.e. ENV_VAR=)
        • ENV_VAR=value, which lets users explictly pass environment variables with values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions