Storing binary file in shared library resources folder

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

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

      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?

       

       

            Assignee:
            Devin Nusbaum
            Reporter:
            Jakub Pawlinski
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: