Skip to end of metadata
Go to start of metadata

The Artifactory Page documentation is available here.

57 Comments

  1. Hi all,

    after configuring the servers in the hudson system-configuration it added the artifactory-plugin as a build-step in a particulary job, but there is no other action I can check, especially a post-build-action as shown in the picture. If I try to apply with the plugin added as build-step, I get the following stack-trace:

    org.kohsuke.stapler.NoStaplerConstructorException: Unable to find org/jfrog/hudson/ArtifactoryBuilder.stapler. There's no @DataBoundConstructor on any constructor of class org.jfrog.hudson.ArtifactoryBuilder
    at org.kohsuke.stapler.RequestImpl.loadConstructorParamNames(RequestImpl.java:471)
    at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:329)
    at hudson.model.Descriptor.newInstance(Descriptor.java:351)
    at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:633)
    at hudson.util.DescribableList.rebuildHetero(DescribableList.java:164)
    at hudson.model.Project.submit(Project.java:194)
    at hudson.model.FreeStyleProject.submit(FreeStyleProject.java:97)
    at hudson.model.Job.doConfigSubmit(Job.java:967)
    at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:519)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:185)
    at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:101)
    at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:54)
    at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:74)
    at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:492)
    at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:180)
    at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:492)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:408)
    at org.kohsuke.stapler.Stapler.service(Stapler.java:117)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
    at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
    at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
    at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
    at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
    at org.jvnet.hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:47)
    at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
    at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
    at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
    at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
    at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
    at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
    at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
    at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
    at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
    at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
    at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
    at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
    at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
    at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
    at java.lang.Thread.run(Thread.java:619)

    Did I miss anything? (Hudson 1.337; Artifactory 2.1.2; Plugin 1.0.1)

    1. I tested the plugin with version 1.337 and it works fine. Did you restarted the server after installation? Any exception during installation of the plugin or hudson startup?
      And BTW, the plugin works with Artifactory version 2.1.3 which will be released soon (but it is not related to the problem you are experiencing).

  2. Unknown User (dacloutier@gmail.com)

    Hi,

    I've just installed the plugin, I've setup the artifactory URL from the "configure hudson" page but in the "configure Job" page there are no "repositories".

    How do I add them?

    Thanks,

    Dave.

    1. You'll only see the repositories list if you configured a good Artifactory URL and used the right credentials. Please make sure you configured it correctly. You can contact me directly if still doesn't work.

    2. Unknown User (developer@mailinator.com)

      Hi,
      I had a similar issue and couldn't see any repositories.
      URL was correctly, user and password was correctly and I also tried out to set everything to public and give anonymous full permissions,
      nothing helped.

      I have upgraded to the latest artifactory 2.2.0 then it worked fine.
      Before it was using 2.1.1 and I didn't read the requirements 2.1.3

      Cheers

  3. hi,

    We're now using hudson 1.341, the artifactory plugin 1.04 and artifactory 2.1.3.

    When deploying the build infos to artifactory we constantly have  (any idea where this can come from?):

    If i deploy using a mix of "hudson maven repo deploy plugin" and "hudson artifactory deploy only build info" , i get :

    INFO Retrieving previous build number from scm-repository-hudson
    INFO Uploading project information for xml-configuration 2.1.2-SNAPSHOT
    INFO Retrieving previous metadata from scm-repository-hudson
    INFO Uploading repository metadata for: 'snapshot GID:xml-configuration:2.1.2-SNAPSHOT'
    INFO Retrieving previous metadata from scm-repository-hudson
    INFO Uploading repository metadata for: 'artifact GID:xml-configuration'
    Deploying build info to: http://MYSERVER/artifactory/api/build
    ERROR: Failed to send build info: OK
    java.io.IOException: Failed to send build info: OK
    at org.jfrog.hudson.BuildInfoDeployer.sendBuildInfo(BuildInfoDeployer.java:176)
    at org.jfrog.hudson.BuildInfoDeployer.deploy(BuildInfoDeployer.java:53)
    at org.jfrog.hudson.ArtifactoryRedeployPublisher.perform(ArtifactoryRedeployPublisher.java:101)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:582)
    at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563)
    at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:594)
    at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:534)
    at hudson.model.Run.run(Run.java:1216)
    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:304)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:122)

    using artifacory to deploy and upload build info, we get :
    Deploying build info to: http://MYSERVER/artifactory/api/build
    ERROR: Failed to send build info: Internal Server Error
    java.io.IOException: Failed to send build info: Internal Server Error
    at org.jfrog.hudson.BuildInfoDeployer.sendBuildInfo(BuildInfoDeployer.java:176)
    at org.jfrog.hudson.BuildInfoDeployer.deploy(BuildInfoDeployer.java:53)
    at org.jfrog.hudson.ArtifactoryRedeployPublisher.perform(ArtifactoryRedeployPublisher.java:101)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:582)
    at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563)
    at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:594)
    at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:534)
    at hudson.model.Run.run(Run.java:1216)
    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:304)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:122)

    1. Update the plugin to version 1.0.5. That should fix it.

      1. Unknown User (alr@emplify.de)

        Hi,

        I am using version 1.0.5 and also get this at a first test:

        Deploying artifacts to http://192.168.120.65:40000/artifactory/XYZREPO
        Deploying artifacts of module: com.XYZ.mp:mp-authorization
        Deploying artifact: http://192.168.120.65:40000/artifactory/XYZREPO/com/XYZ/mp/mp-authorization/3.1.1-SNAPSHOT/mp-authorization-3.1.1-SNAPSHOT.pom;build.name=MP+authorization;build.number=15
        Deploying artifact: http://192.168.120.65:40000/artifactory/XYZREPO/com/XYZ/mp/mp-authorization/3.1.1-SNAPSHOT/mp-authorization-3.1.1-SNAPSHOT.pom;build.name=MP+authorization;build.number=15
        Deploying build info to: http://192.168.120.65:40000/artifactory/XYZREPO/api/build
        ERROR: Failed to send build info: OK
        java.io.IOException: Failed to send build info: OK
            at org.jfrog.hudson.BuildInfoDeployer.sendBuildInfo(BuildInfoDeployer.java:179)
            at org.jfrog.hudson.BuildInfoDeployer.deploy(BuildInfoDeployer.java:56)
            at org.jfrog.hudson.ArtifactoryRedeployPublisher.perform(ArtifactoryRedeployPublisher.java:101)
            at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
            at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:582)
            at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563)
            at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:594)
            at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
            at hudson.model.Run.run(Run.java:1221)
            at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:304)
            at hudson.model.ResourceController.execute(ResourceController.java:88)
            at hudson.model.Executor.run(Executor.java:122)
        Finished: FAILURE

        Any hints on configuration mistakes on my part?

        Thanks a lot for helping!

        1. Unknown User (developer@mailinator.com)

          Hi,
          I had some similar issue but already using 1.0.5 saying

          Deploying build info to: http://vslpnms1.arvato-systems.de:8080/artifactory/libs-snapshots-local/api/build
          ERROR: Failed to send build info: Forbidden
          java.io.IOException: Failed to send build info: Forbidden

          Everything was allowed to anonymous

          I have upgraded to the latest artifactory 2.2.0 then it worked fine.
          Before it was using 2.1.1 and I didn't read the requirements 2.1.3

          Cheers

  4. Unknown User (developer@mailinator.com)

    Hi folks,
    I just tried out the latest artifactory plugin v1.05 joining the latest hudson v1.345 and the latest artifactory v2.2.0
    and saw that the artifactory plugin leaves out some artifacts that have been build!!

    For instance javadoc.jar, sources.jar and several other artifacts like asseblies xxx.zip or xxx.exe types.
    Only foo.jar, foo-test.jar and pom.xml is deployed.

    Example: Hudson shows the full lists of build artifacts correctly:

    Build Artifacts
    bic_services_1.0.32.0-SNAPSHOT-javadoc.jar
    bic_services_1.0.32.0-SNAPSHOT-sources.jar
    bic_services_1.0.32.0-SNAPSHOT-tests.jar
    bic_services_1.0.32.0-SNAPSHOT.jar
    pom.xml

    Now if the assebly plugin starts it looks like this:

    Deploying artifacts of module: some:bic_services
    Deploying artifact: http://foo/artifactory/libs-snapshots-local/foo/bic_services/1.0.32.0-SNAPSHOT/bic_services-1.0.32.0-SNAPSHOT.jar;build.name=FOO+%28daily%29;build.number=285
    Deploying artifact: http://foo/artifactory/libs-snapshots-local/foo/bic_services/1.0.32.0-SNAPSHOT/bic_services-1.0.32.0-SNAPSHOT.pom;build.name=FOO+%28daily%29;build.number=285
    Deploying artifact: http://foo/artifactory/libs-snapshots-local/foo/bic_services/1.0.32.0-SNAPSHOT/bic_services-1.0.32.0-SNAPSHOT-.jar;build.name=FOO+%28daily%29;build.number=285
    Deploying artifact: http://foo/artifactory/libs-snapshots-local/foo/bic_services/1.0.32.0-SNAPSHOT/bic_services-1.0.32.0-SNAPSHOT-tests.jar;build.name=FOO+%28daily%29;build.number=285

    Ass you can see in the output:

    bic_services_1.0.32.0-SNAPSHOT-javadoc.jar
    bic_services_1.0.32.0-SNAPSHOT-sources.jar

    are missing.

    Instead there is some unamed one stopping after the last hyphen called:
    bic_services-1.0.32.0-SNAPSHOT-.jar;

    If I use the maven deploy command everything works correctly.
    If I use the artifactory plugin the artifacts from above are missing and are not updated in the artifactory.

    Any help is welcome
    developer

  5. Hi,

    Is there any chance you can add an option to ignore/bypass the Hudson proxy (in the Hudson Update Center).  It looks like all artifactory plugin requests all go via this proxy (if configured) and I cannot get a list of repositories unless I remove the proxy config.

    My artifactory is located on our local network and our stupid proxy blocks requests to it for some reason.   I will try asking our network guys but I have more confidence in you being able to provide a fix than them..

    I seem to remember a similar problem with another plugin making use of the Hudson proxy config.   Maybe Hudson should provide a noProxyHosts option to make this more viable for plugins to use.

    Thanks a lot.

    1. Unknown User (dfme)

      We have excactly the same issue. Alread when setting up Artifactory for a build the 'Target repository' list is empty. We also have configured Hudson to use a proxy for updating over the Internet. However Artifactory and Hudson are running on the same machine so there is no need for the artifactory plugin to go over the proxy.

      Could this be fixed?

      1. Sure, I'll add it to the next plugin release. You can track it at: http://issues.jenkins-ci.org/browse/JENKINS-5892

  6. Unknown User (filipblondeel)

    Hi all,

    Recently I upgraded Hudson to version 1.362 and the artifactory plugin to version 1.1.0, but now I get an error from the artifactory plugin when it's trying to deploy the build info to Artifactory:Deploying build info ...
    ERROR: Invalid use of SingleClientConnManager: connection still allocated.
    Make sure to release the connection before allocating another one.
    java.lang.IllegalStateException: Invalid use of SingleClientConnManager: connection still allocated.
    Make sure to release the connection before allocating another one.
    at org.apache.http.impl.conn.SingleClientConnManager.getConnection(SingleClientConnManager.java:199)
    at org.apache.http.impl.conn.SingleClientConnManager$1.getConnection(SingleClientConnManager.java:173)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:356)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:576)
    at org.jfrog.build.client.PreemptiveHttpClient.execute(PreemptiveHttpClient.java:75)
    at org.jfrog.build.client.ArtifactoryBuildInfoClient.sendBuildInfo(ArtifactoryBuildInfoClient.java:209)
    at org.jfrog.hudson.BuildInfoDeployer.deploy(BuildInfoDeployer.java:58)
    at org.jfrog.hudson.ArtifactoryRedeployPublisher.perform(ArtifactoryRedeployPublisher.java:110)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
    at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
    at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:598)
    at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
    at hudson.model.Run.run(Run.java:1276)
    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:306)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:124)

    Has anyone else encountered this problem ?

  7. Unknown User (filipblondeel)

    Hi all,
    Recently I upgraded Hudson to version 1.362 and the artifactory plugin to version 1.1.0, but now I get an error from the artifactory plugin when it's trying to deploy the build info to Artifactory:
    Deploying build info ...
    ERROR: Invalid use of SingleClientConnManager: connection still allocated.
    Make sure to release the connection before allocating another one.
    java.lang.IllegalStateException: Invalid use of SingleClientConnManager: connection still allocated.
    Make sure to release the connection before allocating another one.
        at org.apache.http.impl.conn.SingleClientConnManager.getConnection(SingleClientConnManager.java:199)
        at org.apache.http.impl.conn.SingleClientConnManager$1.getConnection(SingleClientConnManager.java:173)
        at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:356)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:576)
        at org.jfrog.build.client.PreemptiveHttpClient.execute(PreemptiveHttpClient.java:75)
        at org.jfrog.build.client.ArtifactoryBuildInfoClient.sendBuildInfo(ArtifactoryBuildInfoClient.java:209)
        at org.jfrog.hudson.BuildInfoDeployer.deploy(BuildInfoDeployer.java:58)
        at org.jfrog.hudson.ArtifactoryRedeployPublisher.perform(ArtifactoryRedeployPublisher.java:110)
        at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
        at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
        at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:598)
        at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
        at hudson.model.Run.run(Run.java:1276)
        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:306)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:124)
    Has anyone else encountered this problem ?

    1. Unknown User (yoav)

      This is a known issue that affects BuildInfo deployment - http://issues.jfrog.org/jira/browse/HAP-40.
      The easiest workaround is to upgrade Artifactory (to 2.2.4 at time of writing).

  8. Unknown User (pipe)

    I installed the plugin, but when I tried to build a job (Build an Ivy project) the following error is shown in the console output:

    "Building project with Ant Builder
    com.tralix.pipeslave $ cmd.exe /C '""C:\Eclipse Galileo\plugins\org.apache.ant_1.7.1.v20090120-1145\bin\ant.bat" -lib /root/.hudson/plugins/artifactory/WEB-INF/lib clean compile publish && exit %%ERRORLEVEL%%"'
    Error occurred during initialization of VM
    agent library failed to init: instrument
    Error opening zip file or JAR manifest missing : /root/.hudson/plugins/artifactory/WEB-INF/lib/aspectjweaver-1.6.9.jar
    WARNINGS Skipping publisher since build result is FAILURE"

    I checked the "/root/.hudson/plugins" and there is no artifactory folder

  9. Hi,

    I'm using the artifactory plugin with ivy. When I create my jar file with ivy it generates a file something like myjar_1.2.3.4.jar with a corresponding ivy file (ivy_1.2.3.4.xml), however when this is uploaded to artifactory using this plugin the jar and ivy files have had their names changed. the jar file is now called myjar_1-1.2.3.4.jar (it's got an extra '1-' before the version number) and the ivy file is now ivy-1.2.3.4.xml. Why does this happen shouldn't it be using the original ivy xml and jar file names?

  10. Unknown User (davide cavestro)

    Hi, I am using the artifactory plugin in a free-style project that uses a gradle script (for a grails project), but as soon as I enable the Gradle-Artifactory Integration the build fails complaining "module not found: #build-info-extractor-gradle;1.0-SNAPSHOT" and similar things.

    I'm using:
    Hudson Artifactory Plugin 1.3.2
    Hudson ver. 1.381
    Artifactory 2.2.5 (rev. 11524)

    I noticed that in the <HUDSON ARTIFACTORY PLUGIN>/WEB-INF/lib/ folder there is a file named build-info-extractor-gradle-1.0.2.jar and others for the missing libraries. Is it my fault or a version compatibility issue?

    More specifically I get the following error:

    ...
    18:26:56 :: problems summary ::
    18:26:56 :::: WARNINGS
    18:26:56 module not found: #build-info-extractor-gradle;1.0-SNAPSHOT
    18:26:56
    18:26:56 ==== clientModule: tried
    18:26:56
    18:26:56 ==== da8075fa3c454f7d75c49fa4d734884c: tried
    18:26:56
    18:26:56 – artifact #build-info-extractor-gradle;1.0-SNAPSHOT!build-info-extractor-gradle.jar:
    18:26:56
    18:26:56 /mnt/workspace/plugins/artifactory/WEB-INF/lib/build-info-extractor-gradle-1.0-SNAPSHOT.jar
    18:26:56
    18:26:56 module not found: commons-logging#commons-logging;1.1.1
    18:26:56
    18:26:56 ==== clientModule: tried
    18:26:56
    18:26:56 ==== da8075fa3c454f7d75c49fa4d734884c: tried
    18:26:56
    18:26:56 – artifact commons-logging#commons-logging;1.1.1!commons-logging.jar:
    18:26:56
    18:26:56 /mnt/workspace/plugins/artifactory/WEB-INF/lib/commons-logging-1.1.1.jar
    18:26:56
    18:26:56 module not found: com.google.code.findbugs#jsr305;1.3.9
    18:26:56
    18:26:56 ==== clientModule: tried
    18:26:56
    18:26:56 ==== da8075fa3c454f7d75c49fa4d734884c: tried
    18:26:56
    18:26:56 – artifact com.google.code.findbugs#jsr305;1.3.9!jsr305.jar:
    18:26:56
    18:26:56 /mnt/workspace/plugins/artifactory/WEB-INF/lib/jsr305-1.3.9.jar
    18:26:56
    18:26:56 module not found: org.apache.httpcomponents#httpclient;4.0.1
    18:26:56
    18:26:56 ==== clientModule: tried
    18:26:56
    18:26:56 ==== da8075fa3c454f7d75c49fa4d734884c: tried
    18:26:56
    18:26:56 – artifact org.apache.httpcomponents#httpclient;4.0.1!httpclient.jar:
    18:26:56
    18:26:56 /mnt/workspace/plugins/artifactory/WEB-INF/lib/httpclient-4.0.1.jar
    18:26:56
    18:26:56 ::::::::::::::::::::::::::::::::::::::::::::::
    18:26:56
    18:26:56 :: UNRESOLVED DEPENDENCIES ::
    18:26:56
    18:26:56 ::::::::::::::::::::::::::::::::::::::::::::::
    18:26:56
    18:26:56 :: #build-info-extractor-gradle;1.0-SNAPSHOT: not found
    18:26:56
    18:26:56 :: commons-logging#commons-logging;1.1.1: not found
    18:26:56
    18:26:56 :: com.google.code.findbugs#jsr305;1.3.9: not found
    18:26:56
    18:26:56 :: org.apache.httpcomponents#httpclient;4.0.1: not found
    18:26:56
    18:26:56 ::::::::::::::::::::::::::::::::::::::::::::::
    18:26:56
    18:26:56
    18:26:56
    18:26:56 FAILURE: Build failed with an exception.
    18:26:56
    18:26:56 * What went wrong:
    18:26:56 Could not resolve all dependencies for configuration 'classpath':
    18:26:56 - unresolved dependency: #build-info-extractor-gradle;1.0-SNAPSHOT: not found
    18:26:56 - unresolved dependency: commons-logging#commons-logging;1.1.1: not found
    18:26:56 - unresolved dependency: com.google.code.findbugs#jsr305;1.3.9: not found
    18:26:56 - unresolved dependency: org.apache.httpcomponents#httpclient;4.0.1: not found
    18:26:56
    18:26:56 * Try:
    18:26:56 Run with -S option to get the full (very verbose) stacktrace.
    18:26:56
    18:26:56 * Exception is:
    18:26:56 org.gradle.api.artifacts.LocationAwareResolveException: Could not resolve all dependencies for configuration 'classpath':
    18:26:56 - unresolved dependency: #build-info-extractor-gradle;1.0-SNAPSHOT: not found
    18:26:56 - unresolved dependency: commons-logging#commons-logging;1.1.1: not found
    18:26:56 - unresolved dependency: com.google.code.findbugs#jsr305;1.3.9: not found
    18:26:56 - unresolved dependency: org.apache.httpcomponents#httpclient;4.0.1: not found
    18:26:56
    18:26:56 at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyDependencyResolver$ResolvedConfigurationImpl.rethrowFailure(DefaultIvyDependencyResolver.java:101)
    18:26:56 at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyResolver$1.rethrowFailure(SelfResolvingDependencyResolver.java:74)
    18:26:56 at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService$ErrorHandlingResolvedConfiguration.rethrowFailure(ErrorHandlingIvyService.java:82)
    18:26:56 at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:495)
    18:26:56 at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.getFiles(DefaultConfiguration.java:169)
    18:26:56 at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getFiles(Unknown Source)
    18:26:56 at org.gradle.api.internal.initialization.DefaultScriptHandler.updateClassPath(DefaultScriptHandler.java:36)
    18:26:56 at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:118)
    18:26:56 at org.gradle.configuration.DefaultInitScriptProcessor.process(DefaultInitScriptProcessor.java:37)
    18:26:56 at org.gradle.initialization.InitScriptHandler.executeScripts(InitScriptHandler.java:40)
    18:26:56 at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:125)
    18:26:56 at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:107)
    18:26:56 at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:75)
    18:26:56 at org.gradle.launcher.Main.execute(Main.java:93)
    18:26:56 at org.gradle.launcher.Main.main(Main.java:42)
    18:26:56 at org.gradle.launcher.GradleMain.main(GradleMain.java:49)
    18:26:56
    18:26:56 BUILD FAILED
    18:26:56
    18:26:56 Total time: 2.75 secs
    18:26:56 Finished: FAILURE

    My gradle script is the following (I replaced curly braces with angular ones cause I don't know this wiki syntax):

    buildscript <
    //    apply <
    //        apply from: 'http://myartifactoryserver:8081/artifactory/repo/org/jfrog/buildinfo/build-info-extractor-gradle/1.0.1/artifactoryplugin-1.0.1.gradle'
    //    >
        repositories <
            mavenCentral()
            mavenRepo urls: 'http://snapshots.repository.codehaus.org'
            mavenRepo urls: "http://repository.jboss.org/maven2/"
        >
        dependencies <
            classpath "org.grails:grails-gradle-plugin:1.0",
                      "org.grails:grails-bootstrap:1.3.4"
        >
    >
    apply plugin: "grails"
    repositories <
        mavenCentral()
        mavenRepo urls: ["http://repository.jboss.org/maven2/"]
    //    mavenRepo urls: "http://myartifactoryserver:8081/repo"
    >
    dependencies <
        compile "org.grails:grails-crud:1.3.4",
                "org.grails:grails-gorm:1.3.4",
                "org.springframework.security:spring-security-web:3.0.3.RELEASE",
                "org.hibernate:hibernate-tools:3.2.4.GA"
        runtime "org.slf4j:slf4j-log4j12:1.5.8"
    >

    Kind regards
    Davide

    UPDATE: after updating artifactory and hudson plugin the problem still persisted (even if mitigated), so I reported an issue against the jfrog JIRA.

    1. Since the java.net migration, the deploy repository of artifacts is on http://maven.jenkins-ci.org:8081/content/repositories/releases/.
      You can find the new plugin version gere: http://maven.jenkins-ci.org:8081/content/repositories/releases/org/jvnet/hudson/plugins/artifactory/

      I don't know who is responsible to sync with the public maven repo.

  11. Hi there,

    I just installed Artifactory plugin v1.4.4 on Jenkins 1.409.1, and it fails while publishing an artifact, during a gradle build, on artifactory 2.3.4.

    Stacktrace is the following :

    before stands a big byte array (corresponding to my jar maybe ?)
    12:37:18.961 [DEBUG] [org.apache.http.wire] << "HTTP/1.1 405 Method Not Allowed[EOL]"
    12:37:18.961 [DEBUG] [org.apache.http.wire] << "Date: Wed, 27 Jul 2011 10:37:18 GMT[EOL]"
    12:37:18.961 [DEBUG] [org.apache.http.wire] << "Server: Apache/2.2.8 (Ubuntu) DAV/2 SVN/1.5.1 mod_jk/1.2.25 mod_python/3.3.1 Python/2.5.2 PHP/5.2.4-2ubuntu5.14 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g mod_wsgi/2.0 mod_perl/2.0.3 Perl/v5.8.8[EOL]"
    12:37:18.961 [DEBUG] [org.apache.http.wire] << "Allow: GET,HEAD,POST,OPTIONS,TRACE[EOL]"
    12:37:18.961 [DEBUG] [org.apache.http.wire] << "Content-Length: 602[EOL]"
    12:37:18.961 [DEBUG] [org.apache.http.wire] << "Keep-Alive: timeout=15, max=100[EOL]"
    12:37:18.961 [DEBUG] [org.apache.http.wire] << "Connection: Keep-Alive[EOL]"
    12:37:18.961 [DEBUG] [org.apache.http.wire] << "Content-Type: text/html; charset=iso-8859-1[EOL]"
    12:37:18.962 [DEBUG] [org.apache.http.wire] << "[EOL]"
    12:37:18.962 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection] Receiving response: HTTP/1.1 405 Method Not Allowed
    12:37:18.962 [DEBUG] [org.apache.http.headers] << HTTP/1.1 405 Method Not Allowed
    12:37:18.962 [DEBUG] [org.apache.http.headers] << Date: Wed, 27 Jul 2011 10:37:18 GMT
    12:37:18.962 [DEBUG] [org.apache.http.headers] << Server: Apache/2.2.8 (Ubuntu) DAV/2 SVN/1.5.1 mod_jk/1.2.25 mod_python/3.3.1 Python/2.5.2 PHP/5.2.4-2ubuntu5.14 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g mod_wsgi/2.0 mod_perl/2.0.3 Perl/v5.8.8
    12:37:18.962 [DEBUG] [org.apache.http.headers] << Allow: GET,HEAD,POST,OPTIONS,TRACE
    12:37:18.962 [DEBUG] [org.apache.http.headers] << Content-Length: 602
    12:37:18.962 [DEBUG] [org.apache.http.headers] << Keep-Alive: timeout=15, max=100
    12:37:18.962 [DEBUG] [org.apache.http.headers] << Connection: Keep-Alive
    12:37:18.962 [DEBUG] [org.apache.http.headers] << Content-Type: text/html; charset=iso-8859-1
    12:37:18.981 [DEBUG] [org.apache.http.impl.client.DefaultRequestDirector] Connection can be kept alive for 15000 ms
    12:37:19.001 [DEBUG] [org.apache.http.wire] << "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">[\n]"
    12:37:19.005 [DEBUG] [org.apache.http.wire] << "<html><head>[\n]"
    12:37:19.006 [DEBUG] [org.apache.http.wire] << "<title>405 Method Not Allowed</title>[\n]"
    12:37:19.008 [DEBUG] [org.apache.http.wire] << "</head><body>[\n]"
    12:37:19.009 [DEBUG] [org.apache.http.wire] << "<h1>Method Not Allowed</h1>[\n]"
    12:37:19.012 [DEBUG] [org.apache.http.wire] << "<p>The requested method PUT is not allowed for the URL /libs-snapshot-local/foo/bar/baaz/jars/baaz-0.1-SNAPSHOT.jar;build.name=baaz;build.timestamp=1311763038072;build.number=69.</p>[\n]"
    12:37:19.013 [DEBUG] [org.apache.http.wire] << "<hr>[\n]"
    12:37:19.014 [DEBUG] [org.apache.http.wire] << "<address>Apache/2.2.8 (Ubuntu) DAV/2 SVN/1.5.1 mod_jk/1.2.25 mod_python/3.3.1 Python/2.5.2 PHP/5.2.4-2ubuntu5.14 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g mod_wsgi/2.0 mod_perl/2.0.3 Perl/v5.8.8 Server at repo.mycorporate.com Port 80</address>[\n]"
    12:37:19.015 [DEBUG] [org.apache.http.wire] << "</body></html>[\n]"
    12:37:19.016 [DEBUG] [org.apache.http.impl.conn.SingleClientConnManager] Releasing connection org.apache.http.impl.conn.SingleClientConnManager$ConnAdapter@99a6440
    12:37:19.018 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection] Connection shut down
    12:37:19.021 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':buildInfo'
    12:37:19.032 [ERROR] [org.gradle.BuildExceptionReporter]
    12:37:19.048 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
    12:37:19.051 [ERROR] [org.gradle.BuildExceptionReporter]
    12:37:19.052 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
    12:37:19.053 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':buildInfo'.
    12:37:19.064 [ERROR] [org.gradle.BuildExceptionReporter] Cause: Failed to deploy file: HTTP response code: 405. HTTP response message: Method Not Allowed
    12:37:19.067 [ERROR] [org.gradle.BuildExceptionReporter]
    12:37:19.067 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
    12:37:19.069 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':buildInfo'.
    12:37:19.070 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:71)
    12:37:19.071 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:48)
    12:37:19.072 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:34)
    12:37:19.073 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:55)
    12:37:19.074 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57)
    12:37:19.077 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:41)
    12:37:19.078 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)
    12:37:19.079 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:52)
    12:37:19.080 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:42)
    12:37:19.083 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:237)
    12:37:19.084 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:167)
    12:37:19.084 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:160)
    12:37:19.084 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:78)
    12:37:19.084 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.execution.TaskNameResolvingBuildExecuter.execute(TaskNameResolvingBuildExecuter.java:113)
    12:37:19.084 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54)
    12:37:19.084 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:158)
    12:37:19.084 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112)
    12:37:19.084 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:80)
    12:37:19.085 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:41)
    12:37:19.088 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:27)
    12:37:19.089 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:32)
    12:37:19.090 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:21)
    12:37:19.093 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:219)
    12:37:19.094 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:203)
    12:37:19.095 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.launcher.Main.execute(Main.java:55)
    12:37:19.096 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.launcher.Main.main(Main.java:40)
    12:37:19.097 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:46)
    12:37:19.099 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:28)
    12:37:19.101 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.launcher.GradleMain.main(GradleMain.java:24)
    12:37:19.102 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.io.IOException: Failed to deploy file: HTTP response code: 405. HTTP response message: Method Not Allowed
    12:37:19.104 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:468)
    12:37:19.104 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:388)
    12:37:19.105 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:287)
    12:37:19.108 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.jfrog.build.extractor.gradle.BuildInfoRecorderTask.deployArtifacts(BuildInfoRecorderTask.java:263)
    12:37:19.108 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.jfrog.build.extractor.gradle.BuildInfoRecorderTask.closeAndDeploy(BuildInfoRecorderTask.java:194)
    12:37:19.108 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.jfrog.build.extractor.gradle.BuildInfoRecorderTask.collectProjectBuildInfo(BuildInfoRecorderTask.java:132)
    12:37:19.109 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:158)
    12:37:19.109 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:93)
    12:37:19.109 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.jfrog.build.extractor.gradle.BuildInfoRecorderTask_Decorated.invokeMethod(Unknown Source)
    12:37:19.109 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.util.ReflectionUtil.invoke(ReflectionUtil.groovy:23)
    12:37:19.109 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:129)
    12:37:19.109 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:127)
    12:37:19.109 [ERROR] [org.gradle.BuildExceptionReporter] 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:63)
    12:37:19.109 [ERROR] [org.gradle.BuildExceptionReporter] 	... 28 more
    12:37:19.115 [ERROR] [org.gradle.BuildExceptionReporter]
    12:37:19.116 [LIFECYCLE] [org.gradle.BuildResultLogger]
    12:37:19.117 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
    

    Any hint ?

  12. I've configured jenkins to deploy in artfactory using maven the same way it is here. When I run the job, jenkins deploys the jar, but does not create an pom.xml file in artifactory in build folder. What is missing?

  13. When I active -T option on my maven build(to build in parallel) and check the Artifactory plugin option: "Deploy artifacts to Artifactory" the build hangs in the inicial steps, show me this error message on the jenkins Console:

    mavenExecutionResult exceptions not empty
    message : Internal error: java.lang.NullPointerException
    cause : null
    Stack trace :
    org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException
    at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95)
    at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167)
    at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:164)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.NullPointerException
    at org.jfrog.build.extractor.maven.BuildInfoRecorder.wereThereTestFailures(BuildInfoRecorder.java:459)
    at org.jfrog.build.extractor.maven.BuildInfoRecorder.isPublishArtifacts(BuildInfoRecorder.java:454)
    at org.jfrog.build.extractor.maven.BuildInfoRecorder.addArtifactsToCurrentModule(BuildInfoRecorder.java:419)
    at org.jfrog.build.extractor.maven.BuildInfoRecorder.addFilesToCurrentModule(BuildInfoRecorder.java:390)
    at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeAndAddModule(BuildInfoRecorder.java:376)
    at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeModule(BuildInfoRecorder.java:339)
    at org.jfrog.build.extractor.maven.BuildInfoRecorder.projectSucceeded(BuildInfoRecorder.java:156)
    at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:74)
    at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:91)
    ... 10 more
    message : Internal error: java.lang.NullPointerException
    cause : null
    Stack trace :
    org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException
    at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95)
    at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167)
    at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:164)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.NullPointerException
    at org.jfrog.build.extractor.maven.BuildInfoRecorder.wereThereTestFailures(BuildInfoRecorder.java:459)
    at org.jfrog.build.extractor.maven.BuildInfoRecorder.isPublishArtifacts(BuildInfoRecorder.java:454)
    at org.jfrog.build.extractor.maven.BuildInfoRecorder.addArtifactsToCurrentModule(BuildInfoRecorder.java:419)
    at org.jfrog.build.extractor.maven.BuildInfoRecorder.addFilesToCurrentModule(BuildInfoRecorder.java:390)
    at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeAndAddModule(BuildInfoRecorder.java:376)
    at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeModule(BuildInfoRecorder.java:339)
    at org.jfrog.build.extractor.maven.BuildInfoRecorder.projectSucceeded(BuildInfoRecorder.java:156)
    at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:74)
    at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:91)
    ... 10 more

    There's any kind of issue using this combination?

    1. Giuliano, I am getting the same stack with the -T option and deploy option checked. Just curious if you have you found any resolution?

      Thanks 

      1. No solution found yet ..... :(

    2. I opened an issue for this bug: https://issues.jfrog.org/jira/browse/MAP-33. It will be fixed in the next version of the plugin. Thanks for reporting.

  14. Hello everybody,

    the part of documentation about configuring deployment for maven project is a little confusing. Instead of "post-build step" you need to look at "Post-build Actions" section (with checkboxes).

    The confusing part is that "Post Steps" section contains button "Add post-build step" with drop-down that contains "Artifactory plugin" item. Selecting it will add empty (draggable) block with "Artifactory plugin" title. Saving page after that will result in seeing stacktrace:

    javax.servlet.ServletException: java.lang.RuntimeException: Failed to instantiate class org.jfrog.hudson.ArtifactoryBuilder from {"kind":"org.jfrog.hudson.ArtifactoryBuilder","stapler-class":"org.jfrog.hudson.ArtifactoryBuilder"}
    	org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:603)
    	org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
    	org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:234)
    	org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
    	org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
    	org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
    	org.kohsuke.stapler.Stapler.invoke(Stapler.java:477)
    	org.kohsuke.stapler.Stapler.service(Stapler.java:159)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    	hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
    	hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
    	hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
    	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
    	hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
    	hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
    	hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
    ...
    
  15. It's my first try at using this plugin, but nothing's happening in the build I've configured to use it. 

    The build is successful, just as before. I've configured it to write to our own Artifactory installation, specifying our server's URL, the target repos, and an include pattern for artifacts. But nothing in my build output has changed. There are no messages on the Artifactory console indicating it was contacted. No errors or anything in the Jenkins output. 

    Any idea what I might have forgotten?

  16. I have Jenkins 1.451, Artifactory 2.5.1, plugin 2.0.6. I can see my Artifactory thru the plugin. I'm trying to follow "Configuring Generic (Freestyle) Builds" section. But I don't have this Generic Integration option at all. Am I missing anything?

  17. I've gotten the plugin to create the release artifacts and put them into Artifactory, but then it always reverts the poms and doesn't even try to create a tag.

    I would have understood if it was trying and failing, but it doesn't seem to even try to commit the tag and the next development version.

    Any ideas?

  18. What is the best way to make sure Jenkins uses artifactory to store all its artifacts.

    Ex. conditions is when there is need to promote a build. It would have been correct to have the option to collect the build from artifactory and continue with that build. 

    Currently the build needs is archived as artifact and only the latest build can be made available from jenkins. This kinda blots and doesn't make good use of artifactory which should ideally be taking of build archives

  19. D Z

    When the Jenkins plugin communicates with Artifactory to create a build, what REST API does it use to create the build info json?

    The documentation doesn't mention any API that allows you to update this json, so how does it happen? http://wiki.jfrog.org/confluence/display/RTF/Artifactory%27s+REST+API#Artifactory'sRESTAPI-BUILDS

    1. D Z

      http://wiki.jfrog.org/confluence/display/RTF30/Build+Integration

      >> It sends a BuildInfo data object to Artifactory via REST at the end of deployment. BuildInfois a structured JSON object containing all the data about the build environment, artifacts and dependencies, in a standard and open manner.

      Yes, but HOW? Which REST API does it use? :(

  20. Do the Include/Exclude Patterns support substitution of Jenkins environment/job variables? I tried this in the include pattern:

    **/${version_to_deploy}/**

    But this doesn't seem to work. It excludes everything.

  21. I have three maven multi-module projects that depend on one another and I've been trying to get the SNAPSHOT triggering to work between them rather than manually setting the up and down stream jobs:

    Project A version 1.0-SNAPSHOT

    Project B version 0.9-SNAPSHOT (depends on Project A version 1.0-SNAPSHOT)

    Project C version 0.8-SNAPSHOT (depends on Project B version 0.9-SNAPSHOT)

    After some digging around on internets and stack overflows, I'd updated Artifactory to have unique snapshot versions along with the snapshotRepository's uniqueVersion element in POM's distributionManagement. 

    Then I was having some difficulty getting the "Build whenever a SNAPSHOT dependency is built" trigger to activate for all the projects.

    I could trigger a build manually or by an SCM change in Project B that would get picked up by Project C, but for some reason, with identical Jenkins job settings, not between Project A and Project B.

    Then I noticed that the dependency from Project B to Project A was not a module defined in the POM's dependencies node, but in pluings for the maven-dependency-plugin (the module being used is code generation tool wrapped up in a zip and then unpacked for running during the generate-sources phase).

    Once I updated the POM's dependencies node with the Project A module Jenkins was able to identify Project B as a downstream project.

    Hope this helps anyone who's running into this.

  22. I have version 2.2.1 configured for  Jenkins 1.539.

    In the Jenkins general configuration, I set the Artifactory url and the deployment user. When I click the "Test" button, the Artifactory version is correctly returned. So I guess the configuration is ok.

    Howerer, when i try to configure a maven3 proyect, the list of repositories is empty. I can access the repositories though the REST Artifactory api  from the browser and I have a positive response from the server.

    Jenkins logs don't show any error.

    Any idea what could be the problem?

  23. Two of the bugs that were fixed in 2.2.4 are private — I get "Permission Violation” when trying to view these, even logged in:

    https://www.jfrog.com/jira/browse/HAP-485
    https://www.jfrog.com/jira/browse/HAP-502

    Why are these Jira issues private?

  24. I opened an issue in Jira but have not had a response: https://www.jfrog.com/jira/browse/HAP-549

    The Gradle-Artifactory Integration option does not pick up deployment properties, this works perfectly with the Generic-Artifactory Integration option.  I'm using the latest 2.2.4 version of the plugin.

    eg svn.url=${SVN_URL}
    
  25. The two Jira issues: HAP-485 and HAP-502 that are part of 2.2.4 release have been mistakenly blocked. They are now accessible. We apologize for this.

  26. Hi,

    Is there a way to define/override the original relative path of a file ?

    e.g. A jar file is built under target/my/path in Jenkins' workspace. I want to publish it in Artifactory into a repository but changing the path to myFolder/path/to/artifacts.

    Regards,

    Ludovic.

    1. This is also of interest to me.  I am publishing Python packages to a PyPI repo in Artifactory using the generic integration.  If I publish a package from the command line, it gets placed in the repository under <packagename>/<version>.  The generic plugin integration puts packages under the repository root.  I can map the publisher path in my job configuration (e.g., $SUBDIR/dist/*.tar.gz=>$PKGNAME), but this only recognizes one level of the supplied destination path ($PKGNAME/$PKGVERSION causes the packages to land in $PKGNAME).  If I use ** in my artifact source specification, then the relative source path is used to determine placement of the packages in the repo.  Is there any way for me to target a specific multi-level destination directory without first creating a matching relative path at the source?

      I suppose that the long-term solution would be for the plugin to have a specific PyPI integration instead of relying on the generic one.  In the meantime, it may be easier to just use setup.py to publish packages.

  27. There are several pieces of crucial information lacking on this documentation page, to which I was directed to search by the artifactory plug-in help: 

    For more details see the plug-in's documentation.

    If this information could be supplied, I'd be grateful.

    Under the generic-artifactory integration, then under the "resolved artifacts help", it shows this:

    New line or comma separated references to other artifacts that this build should use as dependencies.


    New line or comma separated references to other artifacts that this build should use as dependencies.
    Each reference is specified in the format of: 
    repo_key:path_pattern[;prop=val1,val2[;prop2+=val3][@build_name#build_number][=>target_dir], where:
    repo_key - A key of the Artifactory repository that contains the dependencies (may contain the * and the ? wildcards).
    path_pattern - An Ant-like pattern of the dependencies path within the Artifactory (may contain the * and the ? wildcards). 
    For example: repo-key:dir//bob/.zip (** wilcards are supported only if you combine with matrix params) 
    Artifacts can be downloaded conditionally based on their property values in Artifactory. 
    For example, to download all zip files marked as production ready: repo-key:dir//bob/.zip;status+=prod.
    For more details see the plug-in's documentation.
    build_name - The name of the build that was published to Artifactory, of which dependencies should be resolved.
    build_number - A specific build run number. Can be LATEST to depend on the latest build run, or LAST_RELEASE to depend on the latest build with a "release" status.
    For example: repo-key:dir/*/bob/.zip@myBuild#LATEST
    target_dir - An optional target directory to where resolved dependencies will be downloaded. 
    By default dependencies will be downloaded to a path under the build workspace.
    For example: repo-key:*.zip=>winFiles, repo-key:unix/distro.tgz=>linuxFiles, where winFiles and linuxFiles are target directories.
    Target directories can either be absolute or relative to the working directory.
    Use =!> instead of => to delete any locally found files which are not downloaded from Artifactory.

    Pattern value can take environment variables. For example: repo-key/*.xml=>BUILD_ID-BUILD_NUMBER


    Nowhere does it say what the [;prop=val1,val2[;prop2+=val3]] is doing (and there is no information about this "Resolved Artifacts" section here in the docs other than a one-line summary).  

    So, I assume this pattern is selecting on artifactory properties, but it doesn't tell me what the difference is between = and +=, or what val1,val2 means (is it an intersection?  a union?).  Furthermore, it doesn't clearly state what the 'repo-key' is exactly supposed to be.  Is this the repository's name?  Some special value?  And does the path_pattern have to start from the root of the repo, or include the repo's directory in it?

    If these questions could not only be answered directly to me, but added to this page as promised in the plugin's help, that would be very much appreciated.

    Thanks in advance!

    Sincerely,

    Michael

  28. Spelling nit in Introduction section: Should be "side effect" (not "side affect").

  29. When I use Build number it works, but the LATEST string doesnt find any results. Anyone else have this issue? 

  30. Hello everyone,

    I'm trying to use the Jira Integration feature of this plugin with the generic freestyle build and the Generic-Artifactory Integration, but the "enable Jira Integration" checkbox is not available for that kind of integration, i can only see it for the other kinds (Ant/Ivy-Artifactory Integration, Maven3-Artifactory Integration). Is it because it cannot be used with the generic-artifactory integration?

    Besides that everything is working fine, i'm building a python package from github and it is sent to artifactory once the build is completed.

  31. Hi there,

    i'm facing som ekind of weird issue building a huge multi module maven job, since a few days it fails all the time although i haven changed anything in the config:

    [INFO] Deploying artifact: https://***/artifactory/***-snapshot-local/de/***/*-SNAPSHOT/***-SNAPSHOT.pom
    [INFO] Artifactory Build Info Recorder: Deploying build info ...
    [INFO] Deploying build descriptor to: https://****/artifactory/api/build
    [ERROR] Could not build the build-info object.
    java.io.IOException: Failed to send build descriptor : HTTP response code: 502. HTTP response message: Proxy Error
    	at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:704)
    	at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.sendDescriptor(ArtifactoryBuildInfoClient.java:229)
    	at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.sendBuildInfo(ArtifactoryBuildInfoClient.java:182)
    	at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.sendBuildInfo(ArtifactoryBuildInfoClient.java:194)
    	at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy(BuildDeploymentHelper.java:121)
    	at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded(BuildInfoRecorder.java:174)
    	at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64)
    	at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
    	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:137)
    	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    	at org.jvnet.hudson.maven3.launcher.Maven32Launcher.main(Maven32Launcher.java:132)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
    	at jenkins.maven3.agent.Maven32Main.launch(Maven32Main.java:186)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at hudson.maven.Maven3Builder.call(Maven3Builder.java:136)
    	at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
    	at hudson.remoting.UserRequest.perform(UserRequest.java:153)
    	at hudson.remoting.UserRequest.perform(UserRequest.java:50)
    	at hudson.remoting.Request$2.run(Request.java:332)
    	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    	at java.lang.Thread.run(Thread.java:745)
    [ERROR] org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded() listener has failed:
    java.lang.RuntimeException: Error occurred while publishing Build Info to Artifactory.
    	at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy(BuildDeploymentHelper.java:124)
    	at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded(BuildInfoRecorder.java:174)
    	at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64)
    	at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
    	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:137)
    	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    	at org.jvnet.hudson.maven3.launcher.Maven32Launcher.main(Maven32Launcher.java:132)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
    	at jenkins.maven3.agent.Maven32Main.launch(Maven32Main.java:186)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at hudson.maven.Maven3Builder.call(Maven3Builder.java:136)
    	at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
    	at hudson.remoting.UserRequest.perform(UserRequest.java:153)
    	at hudson.remoting.UserRequest.perform(UserRequest.java:50)
    	at hudson.remoting.Request$2.run(Request.java:332)
    	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    	at java.lang.Thread.run(Thread.java:745)
    Caused by: java.io.IOException: Could not publish build-info: Failed to send build descriptor : HTTP response code: 502. HTTP response message: Proxy Error
    	at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.sendBuildInfo(ArtifactoryBuildInfoClient.java:197)
    	at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy(BuildDeploymentHelper.java:121)
    	... 29 more
    [ERROR] Internal error: java.lang.RuntimeException: org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded() listener has failed: Error occurred while publishing Build Info to Artifactory. Could not publish build-info: Failed to send build descriptor : HTTP response code: 502. HTTP response message: Proxy Error -> [Help 1]
    org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded() listener has failed:
    	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:121)
    	at org.jvnet.hudson.maven3.launcher.Maven32Launcher.main(Maven32Launcher.java:132)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
    	at jenkins.maven3.agent.Maven32Main.launch(Maven32Main.java:186)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at hudson.maven.Maven3Builder.call(Maven3Builder.java:136)
    	at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
    	at hudson.remoting.UserRequest.perform(UserRequest.java:153)
    	at hudson.remoting.UserRequest.perform(UserRequest.java:50)
    	at hudson.remoting.Request$2.run(Request.java:332)
    	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    	at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.RuntimeException: org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded() listener has failed:
    	at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded(BuildInfoRecorder.java:183)
    	at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64)
    	at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
    	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:137)
    	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    	... 22 more
    Caused by: java.lang.RuntimeException: Error occurred while publishing Build Info to Artifactory.
    	at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy(BuildDeploymentHelper.java:124)
    	at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded(BuildInfoRecorder.java:174)
    	... 28 more
    Caused by: java.io.IOException: Could not publish build-info: Failed to send build descriptor : HTTP response code: 502. HTTP response message: Proxy Error
    	at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.sendBuildInfo(ArtifactoryBuildInfoClient.java:197)
    	at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy(BuildDeploymentHelper.java:121)
    	... 29 more
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException

    I think it may be this Issue https://www.jfrog.com/jira/browse/HAP-501.

    But this bug is still open and i'm not able to post something to JFrog Jira.

    I also tried editing the VM Options like mentioned in the comments with no success.

    Any other Ideas or some Info where i can get support? 

  32. Hi all, I'm trying to add a new artifactory server and got incompatible error when I saved the config. I'm currently use Jenkins 2.27 and Artifactory plugin 2.7.2. Below is the error message I got. Would anyone know that is it a bug or not?

    Error

    java.io.InvalidClassException: org.jfrog.hudson.pipeline.docker.proxy.BuildInfoProxyManager$1; local class incompatible: stream classdesc serialVersionUID = 3391376971919256168, local class serialVersionUID = 1809589100624711481java.io.InvalidClassException: org.jfrog.hudson.pipeline.docker.proxy.BuildInfoProxyManager$1; local class incompatible: stream classdesc serialVersionUID = 3391376971919256168, local class serialVersionUID = 1809589100624711481
    at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:699)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1706)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1601)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1874)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1433)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:429)
    at hudson.remoting.UserRequest.deserialize(UserRequest.java:217)
    at hudson.remoting.UserRequest.perform(UserRequest.java:131)
    at hudson.remoting.UserRequest.perform(UserRequest.java:50)
    at hudson.remoting.Request$2.run(Request.java:332)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    at java.util.concurrent.FutureTask.run(FutureTask.java:274)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1157)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:627)
    at java.lang.Thread.run(Thread.java:798)
    at ......remote call to jmeter-sl-dev(Native Method)
    at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1435)
    at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
    at hudson.remoting.Channel.call(Channel.java:795)
    at org.jfrog.hudson.pipeline.docker.proxy.BuildInfoProxyManager.stopAll(BuildInfoProxyManager.java:66)
    at org.jfrog.hudson.ArtifactoryBuilder$DescriptorImpl.configureProxy(ArtifactoryBuilder.java:219)
    at org.jfrog.hudson.ArtifactoryBuilder$DescriptorImpl.configure(ArtifactoryBuilder.java:200)
    at jenkins.model.Jenkins.configureDescriptor(Jenkins.java:3607)
    at jenkins.model.Jenkins.doConfigSubmit(Jenkins.java:3570)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:324)
    at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:167)
    at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:100)
    at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:124)
    at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
    at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
    at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
    at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
    at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:59)
    at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
    at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:126)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
    at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
    at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
    at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    at org.eclipse.jetty.server.Server.handle(Server.java:499)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
    at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
    at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

  33. Hi all,

    how does one get access to the JIRA of this plugin https://www.jfrog.com/jira/login.jsp ?

    The Login page tells me to ask my JIRA admins, but I don't think they can help me with JFrog's JIRA :-)

  34. Removed comment and opened JENKINS-39825 issue.

  35. EDIT

    -- Removed question--

    I just found out the plugin will skip to complied Upload/Download detail parts, if I fill wrong artifact repository name by jenkins didn't return any error on console output.

  36. I recently installed a fresh jenkins 2.32.3 instance on a rhel 7.2 server, and tried installing the Artifactory 2.10.1 plugin, but I get the following error upon restarting Jenkins:

    WARNING: Failed to instantiate Key[type=org.jfrog.hudson.ArtifactoryBuilder$DescriptorImpl, annotation=[none]]; skipping this component com.google.inject.ProvisionException: Unable to provision, see the following errors:
    
    1) Error injecting constructor, java.lang.NullPointerException
      at org.jfrog.hudson.ArtifactoryBuilder$DescriptorImpl.<init>(ArtifactoryBuilder.java:78)
    
    1 error
    	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:52)
    	at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145)
    	at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:424)
    	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
    	at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
    	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
    	at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
    	at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:386)
    	at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:377)
    	at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:472)
    	at hudson.ExtensionList.load(ExtensionList.java:365)
    	at hudson.ExtensionList.ensureLoaded(ExtensionList.java:303)
    	at hudson.ExtensionList.iterator(ExtensionList.java:157)
    	at jenkins.model.Jenkins.getDescriptorByType(Jenkins.java:1540)
    	at hudson.plugins.copyartifact.BuildSelectorParameter.initAliases(BuildSelectorParameter.java:156)
    	at hudson.plugins.copyartifact.CopyArtifactPlugin.postInitialize(CopyArtifactPlugin.java:35)
    	at hudson.PluginManager$2$1$2.run(PluginManager.java:542)
    	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
    	at jenkins.model.Jenkins$7.runTask(Jenkins.java:1085)
    	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
    	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    	at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.NullPointerException
    	at org.jfrog.hudson.ArtifactoryBuilder$DescriptorImpl.setConnectionRetry(ArtifactoryBuilder.java:90)
    	at org.jfrog.hudson.ArtifactoryBuilder$DescriptorImpl.<init>(ArtifactoryBuilder.java:81)
    	at org.jfrog.hudson.ArtifactoryBuilder$DescriptorImpl$$FastClassByGuice$$f4c7f293.newInstance(<generated>)
    	at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
    	at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:61)
    	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:105)
    	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
    	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)
    	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
    	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
    	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    	... 24 more
    
    

    Please help!

  37. Hi guys,

    I am trying to use the latest Artifactory plugin (2.16.1), cf https://mvnrepository.com/artifact/org.jenkins-ci.plugins/artifactory/2.16.1

    Does someone knows why the plugin has been published to maven, but not its dependencies, especially:

    who should compile and publish these dependencies? JFrog?

    Regards,

    1. Exactly, I just came across same issue...

      1. Just for your info, I have to add a reference to another artifact repo, i.e. oss.jfrog.org

        something like:

            <repository>
              <id>jfrog-dependencies</id>
              <name>jfrog-dependencies</name>
              <url>http://oss.jfrog.org/artifactory/jfrog-dependencies</url>
            </repository>

         But that's not what I was expecting at first.

        1. Thanks, I got mentioned artifacts now, but still there are a lot of dependency issues with that plugin release

Write a comment…