docs: public static BuildInfo appendBuildInfo(CpsScript cpsScript, Map<String, Object> stepVariables) {
          BuildInfo buildInfo = (BuildInfo) stepVariables.get(BUILD_INFO);
          if (buildInfo == null) {
              buildInfo = (BuildInfo) cpsScript.invokeMethod("newBuildInfo", Maps.newLinkedHashMap());
              stepVariables.put(BUILD_INFO, buildInfo);
          }
          buildInfo.setCpsScript(cpsScript);
          return buildInfo;
      }