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

Null pointer exception when using groovy script

    XMLWordPrintable

Details

    Description

      When I try to use the deleteRemoteArtifactsByScript feature, I get a NULL pointer exception when trying to apply my changes to the config.

      The JSON parser exits with NULL.

      Looking at the source on GitHub I think this is because in
      https://github.com/jenkinsci/artifactdeployer-plugin/blob/master/src/main/java/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerPublisher.java#L282

      you are using a Name that does not exist. I guess it should be "deleteRemoteArtifactsByScript", right?

      Attachments

        Activity

          tabascoeye Fabian Koch created issue -

          Thanks.
          The issue came from this line.
          Fixed.

          gbois Gregory Boissinot added a comment - Thanks. The issue came from this line. Fixed.
          gbois Gregory Boissinot made changes -
          Field Original Value New Value
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerBuilder.java
          src/main/java/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerPublisher.java
          http://jenkins-ci.org/commit/artifactdeployer-plugin/e29af0c254b965fac2d2c31321a551603c302f63
          Log:
          Fix JENKINS-14547

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerBuilder.java src/main/java/org/jenkinsci/plugins/artifactdeployer/ArtifactDeployerPublisher.java http://jenkins-ci.org/commit/artifactdeployer-plugin/e29af0c254b965fac2d2c31321a551603c302f63 Log: Fix JENKINS-14547
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 145232 ] JNJira + In-Review [ 191394 ]

          People

            gbois Gregory Boissinot
            tabascoeye Fabian Koch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: