Skip to content

Commit

Permalink
Merge pull request #376 from checkmarx-ltd/develop
Browse files Browse the repository at this point in the history
pr-CXFLW-916-scan-with-settings
  • Loading branch information
satyamchaurasiapersistent authored Jan 29, 2024
2 parents c759667 + fdf34c0 commit 294c9fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
</parent>
<groupId>com.github.checkmarx-ltd</groupId>
<artifactId>cx-spring-boot-sdk</artifactId>
<version>0.5.71</version>

<version>0.5.70</version>
<name>cx-spring-boot-sdk</name>
<description>Checkmarx Java Spring Boot SDK</description>
<properties>
Expand Down
20 changes: 10 additions & 10 deletions src/main/java/com/checkmarx/sdk/service/CxService.java
Original file line number Diff line number Diff line change
Expand Up @@ -2188,14 +2188,8 @@ public Integer createScan(CxScanParams params, String comment) throws CheckmarxE
Integer projectId = determineProjectId(params, teamId);
boolean projectExistedBeforeScan = !projectId.equals(UNKNOWN_INT);
Integer baseProjectId = UNKNOWN_INT;
//preserving settings
Gitremotemain gitremotemainObj = getGitRepoDetails(projectId);
Customremotemain customremotemainObj = getCustomRepoDetails(projectId);
Perforceremotemain perforceremotemainObj = getPerforceRepoDetails(projectId);
Sharedremotemain sharedremotemainObj = getSharedRepoDetails(projectId);
Svnremotemain svnremotemainObj = getSvnRepoDetails(projectId);
Tfsremotemain tfsremotemainObj = getTfsRepoDetails(projectId);
ExcludeSettingsmain excludeSettingsmainObj = getExcludeSettingsDetails(projectId);



if (!projectExistedBeforeScan) {
/*
Expand Down Expand Up @@ -2378,8 +2372,14 @@ public Integer createScan(CxScanParams params, String comment) throws CheckmarxE
}




//preserving settings
Gitremotemain gitremotemainObj = getGitRepoDetails(projectId);
Customremotemain customremotemainObj = getCustomRepoDetails(projectId);
Perforceremotemain perforceremotemainObj = getPerforceRepoDetails(projectId);
Sharedremotemain sharedremotemainObj = getSharedRepoDetails(projectId);
Svnremotemain svnremotemainObj = getSvnRepoDetails(projectId);
Tfsremotemain tfsremotemainObj = getTfsRepoDetails(projectId);
ExcludeSettingsmain excludeSettingsmainObj = getExcludeSettingsDetails(projectId);
prepareSources(params, projectId);
//Setting Remembered Git Settings
if (gitremotemainObj != null) {
Expand Down

0 comments on commit 294c9fc

Please sign in to comment.