Skip to content

Commit 5ec6d71

Browse files
Merge pull request #378 from checkmarx-ltd/develop
Removal of code : Pr cxflw 916 scan with settings
2 parents 294c9fc + c9c7255 commit 5ec6d71

File tree

2 files changed

+41
-29
lines changed

2 files changed

+41
-29
lines changed

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
</parent>
1111
<groupId>com.github.checkmarx-ltd</groupId>
1212
<artifactId>cx-spring-boot-sdk</artifactId>
13-
<version>0.5.71</version>
13+
14+
<version>0.5.73</version>
1415

1516
<name>cx-spring-boot-sdk</name>
1617
<description>Checkmarx Java Spring Boot SDK</description>

src/main/java/com/checkmarx/sdk/service/CxService.java

Lines changed: 39 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2373,37 +2373,48 @@ public Integer createScan(CxScanParams params, String comment) throws CheckmarxE
23732373

23742374

23752375
//preserving settings
2376-
Gitremotemain gitremotemainObj = getGitRepoDetails(projectId);
2377-
Customremotemain customremotemainObj = getCustomRepoDetails(projectId);
2378-
Perforceremotemain perforceremotemainObj = getPerforceRepoDetails(projectId);
2379-
Sharedremotemain sharedremotemainObj = getSharedRepoDetails(projectId);
2380-
Svnremotemain svnremotemainObj = getSvnRepoDetails(projectId);
2381-
Tfsremotemain tfsremotemainObj = getTfsRepoDetails(projectId);
2382-
ExcludeSettingsmain excludeSettingsmainObj = getExcludeSettingsDetails(projectId);
2376+
// Gitremotemain gitremotemainObj = getGitRepoDetails(projectId);
2377+
// Customremotemain customremotemainObj = getCustomRepoDetails(projectId);
2378+
// Perforceremotemain perforceremotemainObj = getPerforceRepoDetails(projectId);
2379+
// Sharedremotemain sharedremotemainObj = getSharedRepoDetails(projectId);
2380+
// Svnremotemain svnremotemainObj = getSvnRepoDetails(projectId);
2381+
// Tfsremotemain tfsremotemainObj = getTfsRepoDetails(projectId);
2382+
// ExcludeSettingsmain excludeSettingsmainObj = getExcludeSettingsDetails(projectId);
2383+
23832384
prepareSources(params, projectId);
23842385
//Setting Remembered Git Settings
2385-
if (gitremotemainObj != null) {
2386-
setGitRepoDetails(gitremotemainObj, projectId);
2387-
}
2388-
if (customremotemainObj != null) {
2389-
setCustomRepoDetails(customremotemainObj, projectId);
2390-
}
2391-
if (perforceremotemainObj != null) {
2392-
setPerforceRepoDetails(perforceremotemainObj, projectId);
2393-
}
2394-
if (sharedremotemainObj != null) {
2395-
setSharedRepoDetails(sharedremotemainObj, projectId);
2396-
}
2397-
if (svnremotemainObj != null) {
2398-
setSvnRepoDetails(svnremotemainObj, projectId);
2399-
}
2400-
if (tfsremotemainObj != null) {
2401-
setTfsRepoDetails(tfsremotemainObj, projectId);
2402-
}
2386+
// try {
2387+
// if(params.isFileSource() || (params.isGitSource()
2388+
// && cxProperties.getEnabledZipScan())){
2389+
// if (gitremotemainObj != null) {
2390+
// setGitRepoDetails(gitremotemainObj, projectId);
2391+
// }
2392+
// if (customremotemainObj != null) {
2393+
// setCustomRepoDetails(customremotemainObj, projectId);
2394+
// }
2395+
// if (perforceremotemainObj != null) {
2396+
// setPerforceRepoDetails(perforceremotemainObj, projectId);
2397+
// }
2398+
// if (sharedremotemainObj != null) {
2399+
// setSharedRepoDetails(sharedremotemainObj, projectId);
2400+
// }
2401+
// if (svnremotemainObj != null) {
2402+
// setSvnRepoDetails(svnremotemainObj, projectId);
2403+
// }
2404+
// if (tfsremotemainObj != null) {
2405+
// setTfsRepoDetails(tfsremotemainObj, projectId);
2406+
// }
2407+
//
2408+
// if (excludeSettingsmainObj != null) {
2409+
// setExcludeSettingsDetails(excludeSettingsmainObj, projectId);
2410+
// }
2411+
// }
2412+
// }catch (Exception e) {
2413+
// log.error("Error Occurred While Setting Settings.");
2414+
// log.error(ExceptionUtils.getStackTrace(e));
2415+
// }
2416+
24032417

2404-
if (excludeSettingsmainObj != null) {
2405-
setExcludeSettingsDetails(excludeSettingsmainObj, projectId);
2406-
}
24072418

24082419

24092420
if(params.isIncremental() && projectExistedBeforeScan) {

0 commit comments

Comments
 (0)