1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-09-16 09:26:22 +02:00

Cxone dev 3.36 (#65) (#5412)

Co-authored-by: thtri <trinhthanhhai@gmail.com>
Co-authored-by: Thanh-Hai Trinh <thanh.hai.trinh@sap.com>
Co-authored-by: michaelkubiaczyk <48311127+michaelkubiaczyk@users.noreply.github.com>
Co-authored-by: sumeet patil <sumeet.patil@sap.com>
Co-authored-by: Adrien <99400874+hubadr@users.noreply.github.com>
Co-authored-by: Michael Kubiaczyk <michael.kubiaczyk@sap.com>
This commit is contained in:
Michael Kubiaczyk
2025-07-10 17:59:32 +02:00
committed by GitHub
parent 5bccaa6395
commit b3c6dfe3e5

View File

@@ -89,9 +89,11 @@ func runStep(config checkmarxOneExecuteScanOptions, influx *checkmarxOneExecuteS
}
if cx1sh.Project == nil {
cx1sh.App, err = cx1sh.GetApplication() // read application name from piper config (optional) and get ID from CxONE API
if err != nil {
log.Entry().WithError(err).Warnf("Failed to get application - will attempt to create the project on the Tenant level")
if len(config.ApplicationName) > 0 {
cx1sh.App, err = cx1sh.GetApplication() // read application name from piper config (optional) and get ID from CxONE API
if err != nil {
return fmt.Errorf("failed to get application: %v", err)
}
}
cx1sh.Project, err = cx1sh.CreateProject() // requires groups, repoUrl, mainBranch, origin, tags, criticality
if err != nil {