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

Matrix Authentication conflicting with NowSecure plugin after 3.2 upgrade

XMLWordPrintable

      After upgrading to the 3.2 Authentication Matrix, it appears it is having a conflict with NowSecure plugin when setting up through pipeline.

      Pipeline code snippet:

      properties([
          authorizationMatrix([group(name: 'AD Group Name', permissions: ['Job/Build', 'Job/Cancel', 'Job/Discover', 'Job/Read', 'Job/Workspace'])
          ]), 
      ])

       

      This is the error we are getting:

      WARNING: Unknown parameter(s) found for class type 'com.nowsecure.auto.jenkins.plugin.NSAutoPlugin': name,permissions[Pipeline] End of PipelineAlso:   org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 806341b0-06b8-4711-86d6-cef16b1b082b
      org.jenkinsci.plugins.workflow.steps.MissingContextVariableException: Required context class hudson.FilePath is missing
      Perhaps you forgot to surround the code with a step that provides this, such as: node
      	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:90)
      	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:71)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      Finished: FAILURE

      If I leave the pipeline as this:

      properties([
          authorizationMatrix([
          ]), 
      ])

       

      The Jenkins pipeline will run with no issues.

            nowsecure NowSecure
            anovinger Andrew Novinger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: