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

injectedEnvVars Environment variables missing "Workspace"

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • envinject-plugin
    • None
    • docker based, 2.19.2

      Using jenkins 2.19.2 (or 2.19.4, through official docker image), with envinject, Environment Injector Plugin 1.93.1.
      Doing an empty "freestyle" job build and on the result cheking out the environment-Variables page (i.e. http://192.168.99.100:8080/job/test/2/injectedEnvVars/) will not show the "Workspace" variable.
      Also not included when using the REST-API (i.e. http://192.168.99.100:8080/job/test/2/injectedEnvVars/api/json?pretty=true).

      It IS however set (tested via "execute shell" -> printvars).

      After activating the "Inject environment variables to the build process" in the job configuration (even without setting anything), the Workspace variable shows up in the results.

          [JENKINS-40411] injectedEnvVars Environment variables missing "Workspace"

          Andreas Fe created issue -
          Andreas Fe made changes -
          Description Original: Using jenkins 2.19.2 (or 2.19.4, through official docker image), with envinject, Environment Injector Plugin 1.93.1 - doing an empty "freestyle" job build and on the result cheking out the environment-Variables page (i.e. http://192.168.99.100:8080/job/test/2/injectedEnvVars/) will not show the "Workspace" variable. Also not included when using the REST-API (i.e. http://192.168.99.100:8080/job/test/2/injectedEnvVars/api/json?pretty=true).

          It *IS* however set (tested via "execute shell" -> printvars).

          After activating the "Inject environment variables to the build process" in the job configuration (even without setting anything), the Workspace variable shows up in the results.
          New: Using jenkins 2.19.2 (or 2.19.4, through official docker image), with envinject, Environment Injector Plugin 1.93.1.
          Doing an empty "freestyle" job build and on the result cheking out the environment-Variables page (i.e. http://192.168.99.100:8080/job/test/2/injectedEnvVars/) will not show the "Workspace" variable.
          Also not included when using the REST-API (i.e. http://192.168.99.100:8080/job/test/2/injectedEnvVars/api/json?pretty=true).

          It *IS* however set (tested via "execute shell" -> printvars).

          After activating the "Inject environment variables to the build process" in the job configuration (even without setting anything), the Workspace variable shows up in the results.
          Summary Original: injectedEnvVars Environment variables display trunacted New: injectedEnvVars Environment variables missing "Workspace"
          Oleg Nenashev made changes -
          Assignee Original: Oleg Nenashev [ oleg_nenashev ]

            Unassigned Unassigned
            afe Andreas Fe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: