Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42255

uploadSpec directory structure behaviour change

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • artifactory-plugin
    • None
    • Jenkins v2.42 and v2.47

      Artifactory plugin
      - old version: v2.7.2
      - new version: v2.9.1

      Working with MultiBranch Pipelines under Jenkins 2.42 and 2.47, Artifactory Plugin version 2.7.2 and the uploadSpec below, the resulting path on Artifactory is repo-name/subdir1/subdir2/subdir3/build-output/my-file.binary.

      def uploadSpec = """{
        "files": [
          {
           "regexp": "false",
           "flat": "false",
           "pattern": "build-output/*",
           "target": "repo-name/subdir1/subdir2/subdir3/",
          }
        ]
      }"""
      

      After upgrading the Artifactory plugin to the latest version (2.9.1), the resulting path on Artifactory changed and is now repo-name/subdir1/subdir2/subdir3/my-file.binary. It looks like the build-output directory is no longer taken into consideration, which breaks the upload pattern for us.

          [JENKINS-42255] uploadSpec directory structure behaviour change

          Razvan Botez created issue -
          Razvan Botez made changes -
          Environment Original: Jenkins v2.42

          Artifactory plugin
          - old version: v2.7.2
          - new version: v2.9.1
          New: Jenkins v2.47

          Artifactory plugin
          - old version: v2.7.2
          - new version: v2.9.1
          Razvan Botez made changes -
          Description Original: Working with MultiBranch Pipelines under Jenkins 2.42, Artifactory Plugin version 2.7.2 and the uploadSpec below, the resulting path on Artifactory is repo-name/subdir1/subdir2/subdir3/*build-output*/my-file.binary.

          {code:java}
          def uploadSpec = """{
            "files": [
              {
               "regexp": "false",
               "flat": "false",
               "pattern": "build-output/*",
               "target": "repo-name/subdir1/subdir2/subdir3/",
              }
            ]
          }"""
          {code}

          After upgrading the Artifactory plugin to the latest version (2.9.1), the resulting path on Artifactory changed and is now repo-name/subdir1/subdir2/subdir3/my-file.binary. It looks like the build-output directory is no longer taken into consideration, which breaks the upload pattern for us.
          New: Working with MultiBranch Pipelines under Jenkins 2.47, Artifactory Plugin version 2.7.2 and the uploadSpec below, the resulting path on Artifactory is repo-name/subdir1/subdir2/subdir3/*build-output*/my-file.binary.

          {code:java}
          def uploadSpec = """{
            "files": [
              {
               "regexp": "false",
               "flat": "false",
               "pattern": "build-output/*",
               "target": "repo-name/subdir1/subdir2/subdir3/",
              }
            ]
          }"""
          {code}

          After upgrading the Artifactory plugin to the latest version (2.9.1), the resulting path on Artifactory changed and is now repo-name/subdir1/subdir2/subdir3/my-file.binary. It looks like the build-output directory is no longer taken into consideration, which breaks the upload pattern for us.
          Razvan Botez made changes -
          Environment Original: Jenkins v2.47

          Artifactory plugin
          - old version: v2.7.2
          - new version: v2.9.1
          New: Jenkins v2.42 and v2.47

          Artifactory plugin
          - old version: v2.7.2
          - new version: v2.9.1
          Razvan Botez made changes -
          Description Original: Working with MultiBranch Pipelines under Jenkins 2.47, Artifactory Plugin version 2.7.2 and the uploadSpec below, the resulting path on Artifactory is repo-name/subdir1/subdir2/subdir3/*build-output*/my-file.binary.

          {code:java}
          def uploadSpec = """{
            "files": [
              {
               "regexp": "false",
               "flat": "false",
               "pattern": "build-output/*",
               "target": "repo-name/subdir1/subdir2/subdir3/",
              }
            ]
          }"""
          {code}

          After upgrading the Artifactory plugin to the latest version (2.9.1), the resulting path on Artifactory changed and is now repo-name/subdir1/subdir2/subdir3/my-file.binary. It looks like the build-output directory is no longer taken into consideration, which breaks the upload pattern for us.
          New: Working with MultiBranch Pipelines under Jenkins 2.42 and 2.47, Artifactory Plugin version 2.7.2 and the uploadSpec below, the resulting path on Artifactory is repo-name/subdir1/subdir2/subdir3/*build-output*/my-file.binary.

          {code:java}
          def uploadSpec = """{
            "files": [
              {
               "regexp": "false",
               "flat": "false",
               "pattern": "build-output/*",
               "target": "repo-name/subdir1/subdir2/subdir3/",
              }
            ]
          }"""
          {code}

          After upgrading the Artifactory plugin to the latest version (2.9.1), the resulting path on Artifactory changed and is now repo-name/subdir1/subdir2/subdir3/my-file.binary. It looks like the build-output directory is no longer taken into consideration, which breaks the upload pattern for us.
          Itai Sanders made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]

            eyalbe Eyal Ben Moshe
            razvan_botez Razvan Botez
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: