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

Storing binary file in shared library resources folder

    XMLWordPrintable

Details

    • workflow-cps-global-lib 2.10, workflow-basic-steps 2.8.1, workflow-basic-steps 2.10

    Description

      Trying to store png file in resources (project logo, common for all pipelines using shared library) and deploy it from there using:

       

      writeFile file: "logo-96x96.png", text: libraryResource("logo-96x96.png")

       

      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?

       

       

      Attachments

        Activity

          People

            dnusbaum Devin Nusbaum
            quas Jakub Pawlinski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: