1
0
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:
Googlom
2025-07-17 11:56:02 +03:00
parent efadbff05d
commit 8a4f4996b2

View File

@@ -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")