Skip to content

Commit

Permalink
Merge pull request #337 from checkmarx-ltd/develop
Browse files Browse the repository at this point in the history
Branched project configuration fix #336
  • Loading branch information
satyamchaurasiapersistent authored Jul 6, 2023
2 parents 7c066c7 + a2d12fa commit dbe2972
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.github.checkmarx-ltd</groupId>
<artifactId>cx-spring-boot-sdk</artifactId>
<version>0.5.53</version>
<version>0.5.54</version>
<name>cx-spring-boot-sdk</name>
<description>Checkmarx Java Spring Boot SDK</description>
<properties>
Expand Down
22 changes: 16 additions & 6 deletions src/main/java/com/checkmarx/sdk/service/CxService.java
Original file line number Diff line number Diff line change
Expand Up @@ -2161,19 +2161,29 @@ public Integer createScan(CxScanParams params, String comment) throws CheckmarxE
}else if(cxProperties.getPostActionPostbackId() != null && cxProperties.getPostActionPostbackId() != 0){
createScanSetting(projectId, presetId, engineConfigurationId, cxProperties.getPostActionPostbackId(),
params.getEmailNotifications());
createScanSetting(baseProjectId, presetId, engineConfigurationId, cxProperties.getPostActionPostbackId(),
params.getEmailNotifications());
if(cxProperties.getCxBranch())
{
createScanSetting(baseProjectId, presetId, engineConfigurationId, cxProperties.getPostActionPostbackId(),
params.getEmailNotifications());
}

}else{
if(customTaskDetais!=null){
createScanSetting(projectId, presetId, engineConfigurationId, customTaskDetais.getId(),
params.getEmailNotifications());
createScanSetting(baseProjectId, presetId, engineConfigurationId, customTaskDetais.getId(),
params.getEmailNotifications());
if(cxProperties.getCxBranch())
{
createScanSetting(baseProjectId, presetId, engineConfigurationId, cxProperties.getPostActionPostbackId(),
params.getEmailNotifications());
}
}else{
createScanSetting(projectId, presetId, engineConfigurationId, cxProperties.getPostActionPostbackId(),
params.getEmailNotifications());
createScanSetting(baseProjectId, presetId, engineConfigurationId, cxProperties.getPostActionPostbackId(),
params.getEmailNotifications());
if(cxProperties.getCxBranch())
{
createScanSetting(baseProjectId, presetId, engineConfigurationId, cxProperties.getPostActionPostbackId(),
params.getEmailNotifications());
}
}
}

Expand Down

0 comments on commit dbe2972

Please sign in to comment.