Details
-
Improvement
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
-
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?
Support for Base64 encoding has been added to Pipeline: Shared Groovy Libraries 2.10 and Pipeline: Basic Steps 2.8.1 (or 2.10 if you are on Jenkins 2.121).