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
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:
committed by
GitHub
parent
5bccaa6395
commit
b3c6dfe3e5
@@ -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 {
|
||||
|
Reference in New Issue
Block a user