getWorkspaceFor not is not returning custom workspace when it is set

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • Component/s: xtrigger-plugin
    • None
    • Environment:
      linux ubuntu

      in a job, define the custom working directory using the job configuration UI

      in a trigger, the function
      Hudson.getInstance().getWorkspaceFor((TopLevelItem) job);
      is returning the default path not the custom one.
      ((AbstractBuild)((Job)job).getLastBuild()).getWorkspace();
      is retuning the correct one (but once the previous build has used the custom path)

        1. TriggerDemo.tar.gz
          3 kB
          Xav DELAS
        2. config.xml
          0.7 kB
          Xav DELAS

            Assignee:
            Gregory Boissinot
            Reporter:
            Xav DELAS
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: