ikedam commented on Bug JENKINS-26694

What AbstractBuild#getEnvironments(TaskListener) does additional to what Run#getEnvironments(TaskListener) does:

  • defines WORKSPACE
  • defines variables from SCM (like GIT_BRANCH, GIT_COMMIT in git plugin)
  • defines variables from RunListenre s.
  • defines variables from NodeProperty s.
  • defines variables from EnvironmentContributingAction s.
    • ParametesAction is a EnvironmentContributingAction , and defines build parameters.

I know workflow cannot resolve this so soon as EnvironmentContributingAction works only for AbstractBuild and I'll work for the fix @jglick mentioned.

At the same time, I know that it may not work for all cases like a user wants to filter builds with GIT_BRANCH (which is provided by SCM). And I think plugins often use Run#getEnvironment(TaskListener) to retrieve parameters and it may cause problems with workflow.
I expect the day Jenkins and workflow provide a complete alternate solution for this problem.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to