Provide libraryResourceAsFile step

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

XMLWordPrintable

      Currently it is only possible to get library resources as a string using

      libraryResource 'foo.txt'

      However, this does not work for binary files and is also awkward to use when you need the resource as a file; you have to use a workaround like

      def fooContent = libraryResource 'foo.txt'
      writeFile file: 'foo.txt', text: fooContent
      

      It would be handy to have a step which provides the resource as file, like this (file could be optional and per default equal to resource):

      libraryResourceAsFile resource: 'foo.txt', file: 'foo-from-resource.txt'
      

            Assignee:
            Unassigned
            Reporter:
            Hans Schulz
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: