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
Apply suggestion from @bitmaskit
This commit is contained in:
@@ -186,7 +186,7 @@ func runMavenBuild(config *mavenBuildOptions, _ *telemetry.CustomData, utils mav
|
||||
if config.Publish {
|
||||
log.Entry().Infof("publish detected, running mvn deploy")
|
||||
|
||||
if (len(config.AltDeploymentRepositoryID) > 0) && (len(config.AltDeploymentRepositoryPassword) > 0) && (len(config.AltDeploymentRepositoryUser) > 0) {
|
||||
if config.AltDeploymentRepositoryID != "" && config.AltDeploymentRepositoryPassword != "" && config.AltDeploymentRepositoryUser != "" {
|
||||
projectSettingsFilePath, err := createOrUpdateProjectSettingsXML(config.ProjectSettingsFile, config.AltDeploymentRepositoryID, config.AltDeploymentRepositoryUser, config.AltDeploymentRepositoryPassword, utils)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "Could not create or update project settings xml")
|
||||
|
Reference in New Issue
Block a user