Fixed AbortException reference
Change-Id: I048db66cd8ed765f7c42fd753dc0914cb3e40456
diff --git a/git-mirror-2way-pipeline.groovy b/git-mirror-2way-pipeline.groovy
index 63308ee..c1c808c 100644
--- a/git-mirror-2way-pipeline.groovy
+++ b/git-mirror-2way-pipeline.groovy
@@ -13,7 +13,7 @@
checkout changelog: true, poll: true,
scm: [$class: 'GitSCM', branches: pollBranches, doGenerateSubmoduleConfigurations: false,
extensions: [[$class: 'CleanCheckout']], submoduleCfg: [], userRemoteConfigs: [[credentialsId: CREDENTIALS_ID, url: TARGET_URL]]]
- } catch(AbortException e){
+ } catch(hudson.AbortException e){
if(e.message.trim().equals("Couldn't find any revision to build. Verify the repository and branch configuration for this job.")){
common.warningMsg("Warning: Cannot checkout target repo source repo is empty")
} else {
@@ -26,7 +26,7 @@
checkout changelog: true, poll: true,
scm: [$class: 'GitSCM', branches: pollBranches, doGenerateSubmoduleConfigurations: false,
extensions: [[$class: 'CleanCheckout']], submoduleCfg: [], userRemoteConfigs: [[credentialsId: CREDENTIALS_ID, url: SOURCE_URL]]]
- } catch(AbortException e){
+ } catch(hudson.AbortException e){
if(e.message.trim().equals("Couldn't find any revision to build. Verify the repository and branch configuration for this job.")){
common.warningMsg("Warning: Cannot checkout source repo source repo is empty")
} else {