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

          quas Jakub Pawlinski created issue -
          dnusbaum Devin Nusbaum made changes -
          Field Original Value New Value
          Assignee Devin Nusbaum [ dnusbaum ]
          dnusbaum Devin Nusbaum made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          dnusbaum Devin Nusbaum made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          dnusbaum Devin Nusbaum made changes -
          Remote Link This issue links to "jenkinsci/workflow-basic-steps-plugin#66 (Web Link)" [ 21187 ]
          dnusbaum Devin Nusbaum made changes -
          Remote Link This issue links to "jenkinsci/workflow-cps-global-lib-plugin#48 (Web Link)" [ 21188 ]
          dnusbaum Devin Nusbaum made changes -
          Released As workflow-cps-global-lib 2.10, workflow-basic-steps 2.8.1, workflow-basic-steps 2.10
          Resolution Fixed [ 1 ]
          Status In Review [ 10005 ] Resolved [ 5 ]

          People

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

            Dates

              Created:
              Updated:
              Resolved: