Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-29135

readFileFromWorkspace does not resolve file path relative to calling script

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • job-dsl-plugin
    • None

      It appears that readFileFromWorkspace() treats an input relative path as relative to the workspace root. It would be useful if it could also search for the file relative to the calling script. Specifically, the relative path lookup makes it more difficult to test DSL scripts locally using the User Power Moves command-line method, as the script root there is not necessarily the same as the workspace root in the live build.

            jamietanna Jamie Tanna
            sumdumgai A C
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: