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

Jenkins jobs fail immediately with error from getSecretValuesToMask

XMLWordPrintable

      I'm using Jenkins 2.387.3 with Mask Passwords Plugin Version 173.v6a_077a_291eb_5.

      The error stack from Jenkins System Logs is:

      #1418 failed to build and we don't even have a listener
      java.lang.NullPointerException
      	at org.jenkinsci.plugins.configfiles.buildwrapper.ConfigFileBuildWrapper.getSecretValuesToMask(ConfigFileBuildWrapper.java:96)
      	at org.jenkinsci.plugins.configfiles.buildwrapper.ConfigFileBuildWrapper.createLoggerDecorator(ConfigFileBuildWrapper.java:103)
      	at jenkins.tasks.SimpleBuildWrapper.decorateLogger(SimpleBuildWrapper.java:343)
      	at hudson.model.Run.createBuildListener(Run.java:2003)
      	at hudson.model.Run.execute(Run.java:1881)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
      	at hudson.model.ResourceController.execute(ResourceController.java:101)
      	at hudson.model.Executor.run(Executor.java:442)
      
      May 15, 2024 10:52:41 AM SEVERE hudson.model.Run handleFatalBuildProblem#1418 failed to build and we don't even have a listener
      java.lang.NullPointerException
      	at java.base/java.util.Objects.requireNonNull(Objects.java:221)
      	at hudson.model.Run.execute(Run.java:1925)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
      	at hudson.model.ResourceController.execute(ResourceController.java:101)
      	at hudson.model.Executor.run(Executor.java:442) 

      I suspect the Mask Password Plugin because of the getSecretValuesToMask function name. 

      Also this particular job is not using Mask Password Plugin.

            dmirchev Dimitar Mirchev
            dmirchev Dimitar Mirchev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: