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

Workflow step to mask console output

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • pipeline
    • None

      We want to have a block statement that allows sensitive tokens to be masked from the console output inside the body, such as:

      maskPassword("s3cr3t!") {
        echo "Hello s3cr3t!" // this should produce "Hello ***********" or something
      }
      

      The exact syntax can be anything, but the above one would prove the concept that this can be done in a composable manner.

            jglick Jesse Glick
            kohsuke Kohsuke Kawaguchi
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: