You've already forked sap-jenkins-library
mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-09-16 09:26:22 +02:00
return error instead
This commit is contained in:
@@ -172,8 +172,7 @@ func runBOMCreationForPy(utils pythonBuildUtils, pipInstallFlags []string, virut
|
||||
|
||||
func publishWithTwine(config *pythonBuildOptions, utils pythonBuildUtils, pipInstallFlags []string, virutalEnvironmentPathMap map[string]string) error {
|
||||
if config.TargetRepositoryUser == "" || config.TargetRepositoryPassword == "" || config.TargetRepositoryURL == "" {
|
||||
log.Entry().Info("Publishing enabled, but skipped due to missing credentials or repository URL.")
|
||||
return nil
|
||||
return fmt.Errorf("publishing enabled, but missing credentials or repository URL")
|
||||
}
|
||||
|
||||
pipInstallFlags = append(pipInstallFlags, "twine")
|
||||
|
Reference in New Issue
Block a user