mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-04 04:07:16 +02:00
Fix cmd failure if neither git/commitId nor customDescription are
provided
This commit is contained in:
parent
44d7176dac
commit
c362681e45
@ -17,6 +17,8 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
const DEFAULT_DESCRIPTION = "tmsUpload"
|
||||
|
||||
type uaa struct {
|
||||
Url string `json:"url"`
|
||||
ClientId string `json:"clientid"`
|
||||
@ -116,7 +118,11 @@ func runTmsUpload(config tmsUploadOptions, communicationInstance tms.Communicati
|
||||
return fmt.Errorf("mta file %s not found", mtaPath)
|
||||
}
|
||||
|
||||
description := config.CustomDescription
|
||||
description := DEFAULT_DESCRIPTION
|
||||
if config.CustomDescription != "" {
|
||||
description = config.CustomDescription
|
||||
}
|
||||
|
||||
namedUser := config.NamedUser
|
||||
nodeName := config.NodeName
|
||||
mtaVersion := config.MtaVersion
|
||||
|
Loading…
Reference in New Issue
Block a user