Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-16379

Properties Are Not Replicated During Event Based Replication When Publishing With Jenkins

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: 3 - High
    • Resolution: Done
    • Affects Version/s: 5.4.6, 5.10.1
    • Fix Version/s: 6.11.0
    • Component/s: Replication
    • Labels:
    • Severity:
      High

      Description

      When running a Jenkins job that publishes artifacts along with it's properties to Artifactory, the properties are getting published successfully. However, during the Event Based replication those properties would not propagate to destination instance. This issue only happens when artifacts are being published with Jenkins. If you deploy an artifact using UI, and for example and you have a user plugin that annotates properties during the deploy, those properties would propagate to destination instance with Event Based replication.

       

      Steps to reproduce:

       

      1. Create a Maven local repositories on both instances(Source and Destination)
      2. Configure Push Replication with "Sync Properties" box checked on your source instance.
      3. Run Jenkins job with the following pipeline script to publish builds and artifacts to Artifactory:

       

      node {
      stage('build') {

                  def buildInfo = Artifactory.newBuildInfo()

                  def server = Artifactory.server('local-artifactory')

                  def rtMaven = Artifactory.newMavenBuild()

                  rtMaven.deployer server: server, releaseRepo: 'libs-release-local', snapshotRepo: 'libs-snapshot-local'

                  rtMaven.deployer.artifactDeploymentPatterns.addInclude("*/*")

                  rtMaven.tool = 'maven'

                  rtMaven.opts = "-Xmx1024m -Dbuild.number=${env.BUILD_NUMBER}"
                  rtMaven.run pom: 'pom.xml', goals: 'clean install -e -U', buildInfo: buildInfo

                  server.publishBuildInfo buildInfo

              }
      }

       

      You will notice that artifacts are being replicated but not the corresponding properties.

       

      Workarounds:

      1. Use Cron based replication instead
      2. OR Manually trigger replication

       

       

       

        Attachments

          Activity

            People

            Assignee:
            barh Bar Haim
            Reporter:
            timt Tim Telman
            Votes:
            7 Vote for this issue
            Watchers:
            10 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Sync Status

                Connection: RTFACT Sync
                RTMID-16379 -
                SYNCHRONIZED
                • Last Sync Date: