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

Support sorting in file spec for pipeline (sortBy, sortOrder, limit, offset)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: 4 - Normal
    • Resolution: Done
    • Affects Version/s: 3.4.0
    • Fix Version/s: 3.5.0
    • Component/s: None
    • Labels:
      None

      Description

      When using the sortBy/Limit/sortOrder elements in the spec file for pipeline, as follows:

       

      *"sortBy"  : ["created"],
      "sortOrder" : "asc",*

       

      **Jenkins outputs the following error:

       

      ERROR: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "sortBy" (class org.jfrog.build.extractor.clientConfiguration.util.spec.FileSpec), not marked as ignorable (10 known properties: "pattern", "target", "recursive", "flat", "aql", "excludePatterns", "build", "props", "regexp", "explode"]) at [Source: UNKNOWN; line: 6, column: 18] (through reference chain: org.jfrog.build.extractor.clientConfiguration.util.spec.Spec["files"]->java.lang.Object[][0]->org.jfrog.build.extractor.clientConfiguration.util.spec.FileSpec["sortBy"])
      

      This is because our plugin does not support this, however, JFrog CLI supports those parameters.

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lirons Liron Shalom
              Reporter:
              davidp David Pinhas
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: