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

NPE on CopyArtifact.java line 441 if the job config XML is missing <target>

    Details

    • Similar Issues:

      Description

      CopyArtifact 1.4.1 will crash with a NullPointerException on CopyArtifact.java line 441 if the job config XML is missing <target>. This is a problem because JJB version =2.0.0.0b3.201803131321 doesn't write that tag if "target: null".

      This should be easily fixable if we can modify and test the Copy Artifact plugin on Jenkins.

      The crashing line of code is:
      if (target.length() > 0) targetDir = new FilePath(targetDir, env.expand(target));

        Attachments

          Activity

          Hide
          ikedam ikedam added a comment -

          A broken configuration results a broken behavior.
          It sounds an issue of Jenkins Job Builder and I don’t plan to support it.
          Please create a ticket in the issue tracker of Jenkins Job Builder.

          Show
          ikedam ikedam added a comment - A broken configuration results a broken behavior. It sounds an issue of Jenkins Job Builder and I don’t plan to support it. Please create a ticket in the issue tracker of Jenkins Job Builder.

            People

            • Assignee:
              ikedam ikedam
              Reporter:
              darrelvun Darrel Vuncannon
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: