Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-1160

Missing first slash from repository path in build log

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Not a Bug
    • Affects Version/s: 3.2.1
    • Fix Version/s: 3.2.2
    • Component/s: None
    • Labels:
      None
    • Environment:

      Artifactory - 6.8.3

      Artifactory Jenkins plugin - 3.2.1

      Description

      There is an issue, where there is a Missing first slash from repository path in build log, when running the following pipeline:

      node{
      String module = "rlb-stack-Source"
      def artServer = Artifactory.server 'artifactory'
      def buildInfo = Artifactory.newBuildInfo()
      
      stage('deploy') {
      
      artServer.upload([
      spec: """
      {
      "files": [
      {
      "pattern": "${module}-*.tgz",
      "target": "rlb-generic-dev-local/wago/rlb-stack/${module}/"
      }
      ]
      }
      """,
      buildInfo: buildInfo
      ])
      artServer.publishBuildInfo(buildInfo)
      println(artServer.url)
      println(buildInfo.artifacts)
      
      
      }
      }
      

      On the generated log file, the path from the last 'println' in the pipeline will be corrupted, Although the package will be deployed to Artifactory as it should. 

      for example:
      rlb-generic-dev-localwago/rlb-stack/rlb-stack-Source/rlb-stack-Source-43.tgz'
      instead of
      rlb-generic-dev-local/wago/rlb-stack/rlb-stack-Source/rlb-stack-Source-43.tgz

        Attachments

          Activity

            People

            • Assignee:
              eyalb Eyal Ben Moshe
              Reporter:
              adim Adi Malca
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: