-
Improvement
-
Resolution: Unresolved
-
Major
If you use
wrap([$class: 'MaskPasswordsBuildWrapper']) { // commands here }
outside of a node block the workflow will fail with
org.jenkinsci.plugins.workflow.steps.MissingContextVariableException: Required context class hudson.FilePath is missing at org.jenkinsci.plugins.workflow.steps.StepDescriptor.checkContextAvailability(StepDescriptor.java:260)
It's a hassle to have to wrap every individual node with this
- relates to
-
JENKINS-30142 timestamped logs not available in all workflow logs.
-
- Resolved
-
-
JENKINS-44741 Build User Vars should not require node
-
- Closed
-
I think this requires a custom workflow step, as per https://issues.jenkins-ci.org/browse/JENKINS-30142?focusedCommentId=235739&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-235739