-
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
-
[JENKINS-44771] Mask Passwords should not require node
Link |
New:
This issue relates to |
Component/s | New: mask-passwords-plugin [ 15761 ] | |
Component/s | Original: timestamper-plugin [ 15749 ] |
Issue Type | Original: New Feature [ 2 ] | New: Improvement [ 4 ] |
Priority | Original: Minor [ 4 ] | New: Major [ 3 ] |
Environment |
Original:
jenkins 1.609.2 workflow 1.10-beta1 timestamper 1.7.2 |
Assignee | Original: Steven G Brown [ stevengbrown ] | New: Oleg Nenashev [ oleg_nenashev ] |
Description |
Original:
it is not possible to wrap all the logs from workflow with timestamps. if you use {noformat} wrap([$class: 'TimestamperBuildWrapper']) { // commands here } {noformat} outside of a node block the workflow will fail with {noformat} org.jenkinsci.plugins.workflow.steps.MissingContextVariableException: Required context class hudson.FilePath is missing at org.jenkinsci.plugins.workflow.steps.StepDescriptor.checkContextAvailability(StepDescriptor.java:126) {noformat} The reason for wrapping outside of a node is that you may want to be using some steps that do not require a workspace - e.g. {{echo}} before and after an {{input}}. |
New:
If you use {noformat} wrap([$class: 'MaskPasswordsBuildWrapper']) { // commands here } {noformat} outside of a node block the workflow will fail with {noformat} org.jenkinsci.plugins.workflow.steps.MissingContextVariableException: Required context class hudson.FilePath is missing at org.jenkinsci.plugins.workflow.steps.StepDescriptor.checkContextAvailability(StepDescriptor.java:126) {noformat} It's a hassle to have to wrap every individual node with this |
Link |
New:
This issue relates to |
Description |
Original:
If you use {noformat} wrap([$class: 'MaskPasswordsBuildWrapper']) { // commands here } {noformat} outside of a node block the workflow will fail with {noformat} org.jenkinsci.plugins.workflow.steps.MissingContextVariableException: Required context class hudson.FilePath is missing at org.jenkinsci.plugins.workflow.steps.StepDescriptor.checkContextAvailability(StepDescriptor.java:126) {noformat} It's a hassle to have to wrap every individual node with this |
New:
If you use {noformat} wrap([$class: 'MaskPasswordsBuildWrapper']) { // commands here } {noformat} outside of a node block the workflow will fail with {noformat} org.jenkinsci.plugins.workflow.steps.MissingContextVariableException: Required context class hudson.FilePath is missing at org.jenkinsci.plugins.workflow.steps.StepDescriptor.checkContextAvailability(StepDescriptor.java:260) {noformat} It's a hassle to have to wrap every individual node with this |
Assignee | Original: Oleg Nenashev [ oleg_nenashev ] |