[JIRA] (JENKINS-56220) Artifactory Plugin not Publishing Build Information

0 views
Skip to first unread message

jed.jacobs@prudential.com (JIRA)

unread,
Feb 20, 2019, 11:32:02 AM2/20/19
to jenkinsc...@googlegroups.com
Jed Jacobs created an issue
 
Jenkins / New Feature JENKINS-56220
Artifactory Plugin not Publishing Build Information
Issue Type: New Feature New Feature
Assignee: Eyal Ben Moshe
Components: artifactory-plugin
Created: 2019-02-20 16:31
Environment: Jenkins v2.121.3
Artifactory Plug-in Version 3.1.0
Labels: plugin
Priority: Critical Critical
Reporter: Jed Jacobs

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: https://us-artifactory.ourURL.com/artifactory/ili-libs-snapshot-local/com/ourURL/ConfigMgmt/1.1.1/TestUploadPlugin.txt
17:46:11 Deploying build info to: https://us-artifactory.ourURL.com/artifactory/api/build
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"         }

    ]
}

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

jed.jacobs@prudential.com (JIRA)

unread,
Feb 20, 2019, 4:26:02 PM2/20/19
to jenkinsc...@googlegroups.com
Jed Jacobs updated an issue
Change By: Jed Jacobs
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. 

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-r--r-- 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-r--r-- 1 jenkins jenkins    27 Feb 20 16:17 TestUpload.txt*16:17:35* -rw-r--r-- 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:
[https://us-artifactory.prudential.com/artifactory/api/build]
*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)
 

jed.jacobs@prudential.com (JIRA)

unread,
Jan 22, 2020, 7:48:03 AM1/22/20
to jenkinsc...@googlegroups.com
Jed Jacobs updated an issue
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 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-r--r-- 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-r--r-- 1 jenkins jenkins    27 Feb 20 16:17 TestUpload.txt*16:17:35* -rw-r--r-- 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:
*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)
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages