This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      I am getting this null pointer exception and the lock is not getting freed, it was working correctly for a long and suddenly started to throw this exceptions

       

      // code placeholder
      stage('Deploy to iDev') {
          steps {
              lock(resource: "$DEV_LOCK", inversePrecedence: true) {
                  script {
                     .
                      .
                      .
                  }
              }
          }
      }
      

       Below is the exception thrown:

       

      {{}}

      java.lang.NullPointerException at org.jenkins.plugins.lockableresources.LockableResourcesManager.freeResources(LockableResourcesManager.java:323) at org.jenkins.plugins.lockableresources.LockableResourcesManager.unlockNames(LockableResourcesManager.java:367) at org.jenkins.plugins.lockableresources.LockStepExecution$Callback.finished(LockStepExecution.java:125) at org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$TailCall.onSuccess(BodyExecutionCallback.java:114) at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$SuccessAdapter.receive(CpsBodyExecution.java:368) at com.cloudbees.groovy.cps.Outcome.resumeFrom(Outcome.java:73)

      {{}}

       

            Assignee:
            Unassigned
            Reporter:
            rahul gowda
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: