Allow root of relative paths to be specified

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

XMLWordPrintable

      Due to the way that my system is built, I've found I need to set up a custom Jenkins workspace but, in the build step, I'm launching a python script that moves to a specific location before starting to compile. Although I've got "resolve relative paths" checked it doesn't seem to be working properly; the files created in jobs/<myjob>/builds/<date>/workspace-files are all empty.

      I suspect this is caused by the odd way out code is built. The warnings tend to be of the form:

      ../../<a>/<b>/<c>/<d>/<e>.c:329: warning: empty body in an else-statement

      This is relative to the location where I run my build script, but that is somewhere down the path from the Jenkins workspace (e:\work\Jenkins).

      My suggestion is therefore to allow a root path to be used by the Compiler Warnings plugin when trying to resolve relative paths.

      If I were able to specify the root, let's say "E:\Work\Jenkins\<p1>\<p2>\<p3>", (where p1..p3 are replaced by my folder names) it should be easy for the warnings plugin to resolve "../../<a>/<b>/<c>/<d>/<e>.c" to "E:\Work\Jenkins\<p1>\<a>\<b>\<c>\<d>\<e>.c" correctly.

            Assignee:
            Ulli Hafner
            Reporter:
            John McCabe
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: