Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/main/java/com/checkmarx/jenkins/CxScanBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -1250,8 +1250,12 @@ private CxScanConfig resolveConfiguration(Run<?, ?> run, DescriptorImpl descript
}
}

//Jenkins UI does not send teamName but team Id
teamPath = getTeamNameFromId(cxCredentials,descriptor, groupId);
// if teamPath not provided, get it as Jenkins UI does not send teamName but team Id
if (StringUtils.isEmpty(teamPath) && !StringUtils.isEmpty(groupId)) {
teamPath = getTeamNameFromId(cxCredentials,descriptor, groupId);
} else {
log.warn("Unable to get set Team Path, groupId or teamPath is required !");
}

//project
ret.setProjectName(env.expand(projectName.trim()));
Expand Down