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

getWorkspaceFor not is not returning custom workspace when it is set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • xtrigger-plugin
    • None
    • 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)

            gbois Gregory Boissinot
            xdelas Xav DELAS
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: