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

Build related properties are not uploaded in Conan builds via NGINX

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 6.5.2
    • Fix Version/s: None
    • Component/s: Conan, Properties
    • Labels:
      None
    • Regression:
      Yes

      Description

      Edit: Issue reproduces when passing via NGINX.

      Issue:
      build.number & build.name properties are missing when deploying Conan artifacts via the Jenkins Artifactory Plugin.
      This causes builds to not be linked with the produced artifacts.

      Steps to reproduce:
      1. Configure conan-local repository in Artifactory.
      2. Run this pipeline
      3. See the deployed artifacts are missing the needed properties.

      Workaround

      Edit #2:
      Add the following NGINX configuration ( Security wise not recommended):

       ignore_invalid_headers off;
      

      OR, the old workaround:
      The workaround is to tag the artifacts with the required properties manually, here is an example:

      curl -X PUT -H \"X-JFrog-Art-Api: ${API}\" \
      \"${artifactory}/api/storage/\
      ${repository}/path/to/files\
      ?properties=build.name=${BUILD_NAME}%7C\
      build.number=${BUILD_NUMBER}&recursive=1\"
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              arielk Ariel Kabov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: