-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JENKINS-65315: SubmoduleOption: resolve env vars in reference path #1556
base: master
Are you sure you want to change the base?
JENKINS-65315: SubmoduleOption: resolve env vars in reference path #1556
Conversation
On contrary to Freestyle projects' getEnvironment, WorkflowRun.getEnvironment doesn't provide node-specific environment variables as it can have multiple node blocks in parallel. So I suggest to pick up envvars just in place. See also jenkinsci#575
Tests are failing, but I don't know what to do about the "Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.". Even after reading the documentation of Jenkins.getInstanceOrNull I have no clue. If somebody can point me to the right direction this would be very helpful. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not good
can you please give a more in depth explanation? Is the change not working for you? |
…les-not-resolved-in-submodules
…les-not-resolved-in-submodules
Unfortunately, some tests are still failing after merging the latest master into my branch. I still do not understand what the system is trying to tell me and how to fix the issues. |
JENKINS-65315 - Resolve environment variables in SubmoduleOption reference path
On contrary to Freestyle projects' getEnvironment, WorkflowRun.getEnvironment doesn't provide node-specific environment variables as it can have multiple node blocks in parallel. So I suggest to pick up envvars just in place.
See also #575 where this had already been done for CloneOption
Checklist
Types of changes