@@ -2188,14 +2188,8 @@ public Integer createScan(CxScanParams params, String comment) throws CheckmarxE
21882188 Integer projectId = determineProjectId (params , teamId );
21892189 boolean projectExistedBeforeScan = !projectId .equals (UNKNOWN_INT );
21902190 Integer baseProjectId = UNKNOWN_INT ;
2191- //preserving settings
2192- Gitremotemain gitremotemainObj = getGitRepoDetails (projectId );
2193- Customremotemain customremotemainObj = getCustomRepoDetails (projectId );
2194- Perforceremotemain perforceremotemainObj = getPerforceRepoDetails (projectId );
2195- Sharedremotemain sharedremotemainObj = getSharedRepoDetails (projectId );
2196- Svnremotemain svnremotemainObj = getSvnRepoDetails (projectId );
2197- Tfsremotemain tfsremotemainObj = getTfsRepoDetails (projectId );
2198- ExcludeSettingsmain excludeSettingsmainObj = getExcludeSettingsDetails (projectId );
2191+
2192+
21992193
22002194 if (!projectExistedBeforeScan ) {
22012195 /*
@@ -2378,8 +2372,14 @@ public Integer createScan(CxScanParams params, String comment) throws CheckmarxE
23782372 }
23792373
23802374
2381-
2382-
2375+ //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 );
23832383 prepareSources (params , projectId );
23842384 //Setting Remembered Git Settings
23852385 if (gitremotemainObj != null ) {
0 commit comments