-
Notifications
You must be signed in to change notification settings - Fork 61
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
Allow missing FilePath when expanding macros #241
Conversation
Have you done any checking to see if there are token macros from other plugins that would need to be updated? This changes some of the public API, so we would need to make sure this doesn't break anything. |
The list is auto-generated, so it should be pretty accurate. We'll need to verify that this update works with email-ext at a minimum. |
@slide https://github.com/jenkinsci/email-ext-plugin/pull/576/files contains a test that shows that exception handling in EmailExt got slightly improved by this (before a NPE would be thrown that results in macro not expanding at all, now it expands to a useful error message). The other PR is still a draft because it depends on incremental build of this one, if this one is merged and released I'll update the other one. |
@slide can I do something to help get this merged? |
Let me take a look into it more on Monday. I just want to make sure that we don't break anyone. |
@zbynek @slide This doesn't work with email-ext. It was doing this:
The error reported in my pipeline was |
@mwebber Thanks for the report, I'll take a look ASAP. |
@mwebber you can also download the plugin as .hpi from https://ci.jenkins.io/job/Plugins/job/token-macro-plugin/job/main/ and upload it to your instance via "adv (but I'm sure it will be released soon) |
Sometimes it's useful to run the
tm
step even if there is no active node/workspace. Instead of checking that FilePath is present upfront, check it only while expanding a macro that needs it.Testing done
Checked that the Build Failure Analyzer macro expands properly after all connections to nodes are stopped.
Submitter checklist