Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-54407

docker exec fails within docker.image.inside because of empty environment variable name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • docker-workflow-plugin
    • None
    • Jenkins ver. 2.138.2

      There is an environment variable from unknown source which has an empty name. Jenkins would run a docker exec command to execute the content of an sh step within a docker.image.inside block. The docker exec command fails because of the environment variable.

      I have written a wrapper bash script around the docker command which filters out the empty environment variable name. With this script in place the same Jenkinsfile runs sucessfully.

      The environment variable does not appear on the global configure system page, neither on the agent page. Its value is 'build'.

            Unassigned Unassigned
            hontvari HONTVÁRI Levente
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: