File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed
src/main/java/com/checkmarx/sdk/utils Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 1212 <artifactId >cx-spring-boot-sdk</artifactId >
1313
1414
15- <version >0.5.28 </version >
15+ <version >0.5.29 </version >
1616
1717
1818 <name >cx-spring-boot-sdk</name >
Original file line number Diff line number Diff line change @@ -176,14 +176,18 @@ else if (gitURL.contains("@bitbucket.org")) {
176176 log .info ("credentialsProvider without password" );
177177 }
178178 log .info ("Cloning code locally to {}" , pathFile );
179- Git .cloneRepository ()
180- .setURI (gitURL )
181- .setBranch (branch )
182- .setBranchesToClone (Collections .singleton (branch ))
183- .setDirectory (pathFile )
184- .setCredentialsProvider (credentialsProvider )
185- .call ()
186- .close ();
179+ try {
180+ Git .cloneRepository ()
181+ .setURI (gitURL )
182+ .setBranch (branch )
183+ .setBranchesToClone (Collections .singleton (branch ))
184+ .setDirectory (pathFile )
185+ .setCredentialsProvider (credentialsProvider )
186+ .call ()
187+ .close ();
188+ } catch (GitAPIException e ) {
189+ log .error ("API Exception : " ,e );
190+ }
187191 }
188192
189193 private void runPostCloneScript (CxScanParams params , String path ) {
You can’t perform that action at this time.
0 commit comments