mcrooney created JENKINS-13738:
----------------------------------

             Summary: multi-configuration jobs don't expose axes as variables 
to EnvVars
                 Key: JENKINS-13738
                 URL: https://issues.jenkins-ci.org/browse/JENKINS-13738
             Project: Jenkins
          Issue Type: Bug
          Components: core
         Environment: Jenkins 1.463
            Reporter: mcrooney
            Priority: Minor


I've got a multi-configuration job, and created a user-defined axis "ANIMAL" 
with one value, "zebra". Then I ran a publisher which in perform() did:

listener.getLogger().println(build.getEnvironment(listener));

The problem is that build.getEnvironment(listener).expand("$ANIMAL") does not 
find anything to expand. This is because it isn't in the EnvVars. The closest 
thing I found is "JOB_NAME=bar/ANIMAL=zebra", but there's no "ANIMAL", which 
seems weird, since it is exposed as an environment variable to build-steps.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to