code: public static ArtifactoryClientConfiguration addBuilderInfoArguments(Map<String, String> env, Run build, TaskListener listener,
                                                                           PublisherContext publisherContext, ResolverContext resolverContext, FilePath ws, hudson.Launcher launcher)
              throws Exception {
          ArtifactoryClientConfiguration configuration = getArtifactoryClientConfiguration(env, build,
                  null, listener, publisherContext, resolverContext);
          if (isMavenResolutionConfigured(resolverContext)) {
              env.put(BuildInfoConfigProperties.PROP_ARTIFACTORY_RESOLUTION_ENABLED, Boolean.TRUE.toString());
          }
  
          // Create tempdir for properties file
          FilePath tempDir = createAndGetTempDir(ws);
  
          persistConfiguration(configuration, env, tempDir, launcher);
          return configuration;
      }
docs: Add build info properties that will be read by an external extractor. All properties are then saved into a {@code
  buildinfo.properties} into a temporary location. The location is then put into an environment variable {@link
  BuildInfoConfigProperties#PROP_PROPS_FILE} for the extractor to read.
  
  @param env              A map of the environment variables that are to be persisted into the buildinfo.properties
  file. NOTE: nothing should be added to the env in this method
  @param build            The build from which to get build/project related information from (e.g build name and
  build number).
  @param listener
  @param publisherContext A context for publisher settings
  @param resolverContext  A context for resolver settings