Methods to import and read files from the workspace (even if remote).

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

XMLWordPrintable

      It's very handy to have build steps as separate files when creating a job. You get the full power of your editor.

      However, if you're storing everything in an SCM, then you need to access the workspace to get the files.

      It'd be really handy to have a way to read and import files from the workspace. e.g.

      shell(workspace.readFile('path/to/my-build-step.sh'));

            Assignee:
            Justin Ryan
            Reporter:
            Christian Höltje
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: