Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-44771

Mask Passwords should not require node

XMLWordPrintable

      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

            Unassigned Unassigned
            jbochenski Jakub Bochenski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: