Uploaded image for project: 'Ivy Artifactory Plug-in'
  1. Ivy Artifactory Plug-in
  2. IAP-26

Artifact pattern not respected when publishing Ivy artifacts to Artifactory

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Labels:
      None

      Description

      Hudson v1.393, Ivy plugin v1.14, Artifactory plugin v1.4.1, Artifactory v2.3.1

      I have in Hudson an Ivy project, described by the followed ivy.xml :

      <ivy-module version="2.0">
      <info organisation="fr.diplomatie.gouv" module="TestIvy"/>
      <configurations>
      <conf name="build" description="Default"/>
      <conf name="compile" extends="build" description="Compile"/>
      <conf name="test" extends="compile" visibility="private" description="Test"/>
      </configurations>
      <publications>
      <artifact name="dynamique" type="xml" conf="build" ext="xml"/>
      <artifact name="dynamique" type="properties" conf="build" ext="properties"/>
      <artifact name="TestIvy" type="war" conf="build" ext="war"/>
      </publications>
      <dependencies defaultconf="->,!sources,!javadoc">
      <dependency org="acube" name="fwacubej2ee" rev="3.2.1" transitive="true" conf="build->default"/>
      <dependency org="tomcat" name="servlet-api" rev="5.5.23" transitive="false" conf="compile->default"/>
      <dependency org="tomcat" name="jsp-api" rev="5.5.23" transitive="false" conf="compile->default"/>
      </dependencies>
      </ivy-module>

      In the build.xml file of the project, a "publish" task publish the artifacts to the local file cache repository, which is intercepted by the plugin to publish in my Artifactory repository.
      Here's the configuration of the publication in the project options in Hudson :

      Ivy Pattern : [organisation]/[module]/[revision]/ivy.xml
      Artifact Pattern : "[organisation]/[module]/[revision]/[type]/[artifact].[ext]"

      The publication in the local repository works just fine, but when publishing to Artifactory, somehow the artifact pattern is not respected and the module name is used instead of the artifect name. See the build log following :

      [ivy:publish] :: publishing :: fr.diplomatie.gouv#TestIvy Collecting Module information for module: TestIvy Module location: /var/local/hudson/jobs/TestIvy/workspace/livrable/CONFIG-PROD/dynamique.xml

      [ivy:publish] published dynamique to /usr/share/tomcat5.5/.ivy2/local/fr.diplomatie.gouv/TestIvy/1.0/xmls/dynamique.xml Collecting Module information for module: TestIvy Module location: /var/local/hudson/jobs/TestIvy/workspace/livrable/CONFIG-PROD/dynamique.properties

      [ivy:publish] published dynamique to /usr/share/tomcat5.5/.ivy2/local/fr.diplomatie.gouv/TestIvy/1.0/propertiess/dynamique.properties Collecting Module information for module: TestIvy Module location: /var/local/hudson/jobs/TestIvy/workspace/livrable/CONFIG-PROD/TestIvy.war

      [ivy:publish] published TestIvy to /usr/share/tomcat5.5/.ivy2/local/fr.diplomatie.gouv/TestIvy/1.0/wars/TestIvy.war Collecting Module information for module: TestIvy Module location: /var/local/hudson/jobs/TestIvy/workspace/livrable/CONFIG-PROD/ivy.xml

      [ivy:publish] published ivy to /usr/share/tomcat5.5/.ivy2/local/fr.diplomatie.gouv/TestIvy/1.0/ivys/ivy.xml Build finished triggered Deploying artifact: http://ci.diplomatie.gouv.fr:8080/artifactory/apps-release-local/fr.diplomatie.gouv/TestIvy/1.0/xml/TestIvy.xml

      Deploying artifact: http://ci.diplomatie.gouv.fr:8080/artifactory/apps-release-local/fr.diplomatie.gouv/TestIvy/1.0/ivy.xml

      Deploying artifact: http://ci.diplomatie.gouv.fr:8080/artifactory/apps-release-local/fr.diplomatie.gouv/TestIvy/1.0/properties/TestIvy.properties

      Deploying artifact: http://ci.diplomatie.gouv.fr:8080/artifactory/apps-release-local/fr.diplomatie.gouv/TestIvy/1.0/war/TestIvy.war

      Deploying build info to: http://ci.diplomatie.gouv.fr:8080/artifactory/api/build

      Instead of having dynamique.xml and dynamique.properties, like described in the ivy.xml file, I have in Artifactory TestIvy.xml and TextIvy.properties.

      Any clue on what's happening?

        Attachments

          Activity

            People

            • Assignee:
              cohen.tomer Tomer Cohen
              Reporter:
              wilschjp Jean-Philippe Wilsch
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: