lib/cicd/builder/manifest/mixlib/repo/artifactory.rb in manifest-builder-0.7.2 vs lib/cicd/builder/manifest/mixlib/repo/artifactory.rb in manifest-builder-0.7.3

- old
+ new

@@ -17,13 +17,15 @@ # --------------------------------------------------------------------------------------------------------------- def uploadToRepo(artifacts) @manifest = {} super - handleManifests() - # If we are asked to produce a PROJECTS_FILE then we do that from the manifest and components. - handleProjectsFile() - cleanupTempFiles() + if @vars[:return_code] == 0 + handleManifests() + # If we are asked to produce a PROJECTS_FILE then we do that from the manifest and components. + handleProjectsFile() + cleanupTempFiles() + end @vars[:return_code] end # --------------------------------------------------------------------------------------------------------------- def handleProjectsFile