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

Listing files in shared library resources folder

      I don't see any possibility to list files that are available in shared library resources folder.

      My use case is that my pipeline gets templates from resources, fills those with content and writes down in workspace.

      That is how I generate i.e. nuspec, doxygen specifications for project that pipeline is acting on.

      Instead of checking for each generated file if there is already one committed, I would rather want to act on list of those templates in a validation stage.

          [JENKINS-52836] Listing files in shared library resources folder

          Jakub Pawlinski created issue -
          Jakub Pawlinski made changes -
          Description Original: Trying to store png file in resources (project logo, common for all pipelines using shared library) and deploy it from there using:

           
          {code:java}
          writeFile file: "logo-96x96.png", text: libraryResource("logo-96x96.png"){code}
           

          but the file is no longer readable after this operation.

          Is there additional parameter I could use (libraryResource has no documented parameters) or is there other suitable way of achieving this functionality?

           

           
          New: I don't see any possibility to list files that are available in shared library resources folder.

          My use case is that my pipeline gets templates from resources, fills those with content and writes down in workspace.

          That is how I generate i.e. nuspec, doxygen specifications for project that pipeline is acting on.

          Instead of checking for each generated file if there is already one committed, I would rather want to act on list of those templates in a validation stage.
          Jesse Glick made changes -
          Assignee Original: Devin Nusbaum [ dnusbaum ]
          Resolution New: Won't Do [ 10001 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            Unassigned Unassigned
            quas Jakub Pawlinski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: