// Create a temp file of build-info.
Create a temp file of build-info.
// Create a temp file of build - info .
func CreateTempBuildFile(buildName, buildNumber, projectKey, buildsDirPath string, logger Log) (*os.File, error) {
	dirPath, err := GetBuildDir(buildName, buildNumber, projectKey, buildsDirPath)
	if err != nil {
		return nil, err
	}
	logger.Debug("Creating temp build file at: " + dirPath)
	tempFile, err := ioutil.TempFile(dirPath, "temp")
	if err != nil {
		return nil, err
	}
	return tempFile, nil
}
func CreateTempBuildFile ( buildName , buildNumber , projectKey , buildsDirPath string , logger Log ) ( * os . File , error ) { dirPath , err := GetBuildDir ( buildName , buildNumber , projectKey , buildsDirPath ) if err != nil { return nil , err } logger . Debug ( " " + dirPath ) tempFile , err := ioutil . TempFile ( dirPath , " " ) if err != nil { return nil , err } return tempFile , nil }
Create a temp file of build-info.
Create a temp file of build - info .