docs: public static FilePath createAndGetTempDir(final FilePath ws) throws IOException, InterruptedException {
          // The token that combines the project name and unique number to create unique workspace directory.
          String workspaceList = System.getProperty("hudson.slaves.WorkspaceList");
          return ws.act(new MasterToSlaveCallable<FilePath, IOException>() {
              @Override
              public FilePath call() {
                  final FilePath tempDir = ws.sibling(ws.getName() + Objects.toString(workspaceList, "@") + "tmp").child("artifactory");
                  File tempDirFile = new File(tempDir.getRemote());
                  tempDirFile.mkdirs();
                  tempDirFile.deleteOnExit();
                  return tempDir;
              }
          });
      }