code: @Deprecated
      public final FilePath getWorkspace() {
          AbstractBuild b = getBuildForDeprecatedMethods();
          return b != null ? b.getWorkspace() : null;
  
      }
docs: Gets the directory where the module is checked out.
  
  @return
  null if the workspace is on an agent that's not connected.
  @deprecated as of 1.319
  To support concurrent builds of the same project, this method is moved to {@link AbstractBuild}.
  For backward compatibility, this method returns the right {@link AbstractBuild#getWorkspace()} if called
  from {@link Executor}, and otherwise the workspace of the last build.
  
  <p>
  If you are calling this method during a build from an executor, switch it to {@link AbstractBuild#getWorkspace()}.
  If you are calling this method to serve a file from the workspace, doing a form validation, etc., then
  use {@link #getSomeWorkspace()}