releasejob_experiment/job.go
func BuildJob(jobMeta BoshJobMeta, dest string) error {
	b, err := json.Marshal(jobMeta)

	if err != nil {
		return err
	}
	fmt.Println("building job: ", string(b))
	monitFile, specFile, err := createJobFiles(dest, jobMeta.Name)

	if err != nil {
		return err
	}
	defer monitFile.Close()
	defer specFile.Close()
	err = writeMonitFile(monitFile, jobMeta.Name, jobMeta.PIDFile)

	if err != nil {
		return err
	}
	err = writeSpecFile(specFile, jobMeta.Name, jobMeta.JobProperties, jobMeta.Packages)
	return err
}
func BuildJob(jobMeta BoshJobMeta, dest string) error {
	b, err := json.Marshal(jobMeta)

	if err != nil {
		return err
	}
	fmt.Println("building job: ", string(b))
	monitFile, specFile, err := createJobFiles(dest, jobMeta.Name)

	if err != nil {
		return err
	}
	defer monitFile.Close()
	defer specFile.Close()
	err = writeMonitFile(monitFile, jobMeta.Name, jobMeta.PIDFile)

	if err != nil {
		return err
	}
	err = writeSpecFile(specFile, jobMeta.Name, jobMeta.JobProperties, jobMeta.Packages)
	return err
}
//BuildJob - function to create a compiled version of the current job