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

Artifactory Plugin not Publishing Build Information

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Critical Critical
    • artifactory-plugin
    • Jenkins v2.121.3
      Artifactory Plug-in Version 3.1.0

      We are testing our Jenkins upgrade to version 2.150.2. 
      Using the UI, we are running existing jobs as a test.  Note, these jobs run fine on version 2.121.3, which is our current version.  This is preventing us from upgrading.

      This is what we call a health check job running every 30 minutes to confirm our connection to Artifactory is working. 

      Errors:
      17:46:11 [consumer_0] Deploying artifact:  Our Artifactory URL
      17:46:11 Deploying build info to:  Our Artifactory URL
      17:46:11 ERROR: Could not publish build-info: Failed to send build descriptor. 400 Response message: {
      17:46:11   "errors" : [

      { 17:46:11     "status" : 400, 17:46:11     "message" : "Dependency id name cannot be null!" 17:46:11   }

      ]
      17:46:11 }
      17:46:11 java.io.IOException: Could not publish build-info: Failed to send build descriptor. 400 Response message: {
      17:46:11   "errors" : [

      { 17:46:11     "status" : 400, 17:46:11     "message" : "Dependency id name cannot be null!" 17:46:11   }

      ]
      17:46:11 }
      17:46:11  at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.sendBuildInfo(ArtifactoryBuildInfoClient.java:261)
      17:46:11  at org.jfrog.build.extractor.retention.Utils.sendBuildAndBuildRetention(Utils.java:63)
      17:46:11  at org.jfrog.hudson.generic.GenericBuildInfoDeployer.deploy(GenericBuildInfoDeployer.java:62)
      17:46:11  at org.jfrog.hudson.generic.ArtifactoryGenericConfigurator$1.tearDown(ArtifactoryGenericConfigurator.java:360)
      17:46:11  at hudson.model.Build$BuildExecution.doRun(Build.java:174)
      17:46:11  at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
      17:46:11  at hudson.model.Run.execute(Run.java:1810)
      17:46:11  at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      17:46:11  at hudson.model.ResourceController.execute(ResourceController.java:97)
      17:46:11  at hudson.model.Executor.run(Executor.java:429)

      Configuration:
      {
          "files": [
             

      {             "pattern": "TestUpload.txt",             "target": "ili-libs-snapshot-local/com/ourURL/ConfigMgmt/1.1.1/TestUploadPlugin.txt",             "props": "build.latest=true;dateDeploy.dev=1/16/18"         }

          ]
      }

       

      Updated Information:

      We have isolated this error to the download using the plugin.  It looks like it tries to publish build information on the download before even trying to download the artifact.  In the output below, you'll see a directory listing from a prior job step.  Then it will show it's trying to publish the build information and the failure. I don't see it trying to download the artifact, which I though would happen before the publish.

      16:17:35 + ls alt*16:17:35* total 32*16:17:35* -rw-rr- 1 jenkins jenkins 23745 Feb 20 16:17 TestDownloadCURL*16:17:35* drwxr-xr-x 2 jenkins jenkins 82 Feb 20 16:17 .16:17:35 rw-rr- 1 jenkins jenkins 27 Feb 20 16:17 TestUpload.txt*16:17:35* rw-rr- 1 jenkins jenkins 29 Feb 20 16:17 TestDownloadPlugin.txt*16:17:35* drwxr-xr-x 9 jenkins jenkins 188 Feb 20 16:17 ..16:17:35 Deploying build info to:
      [Our Artifactory URL
      16:17:35 ERROR: Could not publish build-info: Failed to send build descriptor. 400 Response message: {16:17:35 "errors" : [ {16:17:35 "status" : 400,16:17:35 "message" : "Dependency id name cannot be null!"16:17:35 } ]16:17:35 }16:17:35 java.io.IOException: Could not publish build-info: Failed to send build descriptor. 400 Response message: {16:17:35 "errors" : [ {16:17:35 "status" : 400,16:17:35 "message" : "Dependency id name cannot be null!"16:17:35 } ]16:17:35 }16:17:35 at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.sendBuildInfo(ArtifactoryBuildInfoClient.java:263)16:17:35 at org.jfrog.build.extractor.retention.Utils.sendBuildAndBuildRetention(Utils.java:63)16:17:35 at org.jfrog.hudson.generic.GenericBuildInfoDeployer.deploy(GenericBuildInfoDeployer.java:62)16:17:35 at org.jfrog.hudson.generic.ArtifactoryGenericConfigurator$1.tearDown(ArtifactoryGenericConfigurator.java:410)16:17:35 at hudson.model.Build$BuildExecution.doRun(Build.java:174)16:17:35 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)16:17:35 at hudson.model.Run.execute(Run.java:1810)16:17:35 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)16:17:35 at hudson.model.ResourceController.execute(ResourceController.java:97)16:17:35 at hudson.model.Executor.run(Executor.java:429)
       

            eyalbe Eyal Ben Moshe
            x102785 Jed Jacobs
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: