Closed Opa- closed 2 years ago
We will look into this. Could you provide a sample configuration and job type
have you marked any methods @NonCPS
and then tried to access the env
variable Jenkins provides?
@Opa- any response to Stevens question
Sorry I miss the GitHub notification.
Non there's not any @NonCPS
in the codebase.
i'm unable to reproduce this bug on the latest version of JTE.
Are you able to provide a reproducible test case for this?
Sorry, I can't (I no longer work for the company I set up Jenkins & JTE for).
thanks for letting us know!
Closing as unable to reproduce.
Jenkins Version
2.322
JTE Version
2.3
Bug Description
Jenkins generates a lot of warning and stacktraces in the log when it seems that Templating Engine tries to get
flowOwner
from the environment. (see attached log output)I added some additional logs to the Workflow CPS Plugin to check what variable is null, causing the NPE. It's always CpsThread on this line: https://github.com/jenkinsci/workflow-cps-plugin/blob/master/src/main/java/org/jenkinsci/plugins/workflow/cps/EnvActionImpl.java#L100
To be honest, I don't really know if the issue comes from Templating Engine or Workflow CPS Plugin.
Relevant log output
Steps to Reproduce
Launch a JTE build, sometimes these stacktraces are generated.