code: public static void saveBuildInfo(BuildInfo buildInfo, FilePath ws, Run build, Log logger) throws Exception {
          String jobBuildNumber = BuildUniqueIdentifierHelper.getBuildNumber(build);
          String buildInfoId = createBuildInfoId(build, buildInfo.getName(), buildInfo.getNumber());
  
          BuildDataFile buildDataFile = new BuildDataFile(BuildInfoStep.STEP_NAME, buildInfoId);
          buildDataFile.putPOJO(buildInfo);
          writeBuildDataFile(ws, jobBuildNumber, buildDataFile, logger);
      }
docs: Save build info in @tmp/artifactory-pipeline-cache/build-number folder.
  
  @param buildInfo - The build info object to save.
  @param ws        - Step's workspace.
  @param build     - Step's build.