slachiewicz opened a new pull request, #815:
URL: https://github.com/apache/maven-invoker-plugin/pull/815

   Selector, setup and verify scripts get the `File` of the current job's build 
log as `context.get('buildLog')`; it is `null` with `noLog`, and in a selector 
script the file may not exist yet. It lives in `context` because jobs run in 
parallel with `parallelThreads` and share one `ScriptRunner`, so a global 
variable would be overwritten by other jobs.
   
   Plan: apache/maven-script-interpreter#241 adds a `run` overload with per-run 
script variables. Once that is released and the dependency is bumped, this will 
also be exposed as a top-level `buildLog` variable and `context.buildLog` kept 
for compatibility. This PR does not depend on an unreleased version.
   
   Verified: `mvn -Prun-its verify 
-Dinvoker.test=script-buildlog-variable,script-context,script-global-vars` → 3 
passed; the new IT fails when the `context.put` is removed.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to