diff --git a/src/main/java/org/jenkinsci/plugins/zanata/zanatareposync/ZanataSyncStep.java b/src/main/java/org/jenkinsci/plugins/zanata/zanatareposync/ZanataSyncStep.java index e7baf60..3789ca7 100644 --- a/src/main/java/org/jenkinsci/plugins/zanata/zanatareposync/ZanataSyncStep.java +++ b/src/main/java/org/jenkinsci/plugins/zanata/zanatareposync/ZanataSyncStep.java @@ -217,6 +217,9 @@ public void perform(Run build, FilePath workspace, Launcher launcher, Task gitSyncService = new GitSyncService(this, git); pullFromZanata(workspace, zanataSyncService, gitSyncService, listener); } + if (!pushToZanata && !pullFromZanata) { + logger(listener).println("Both push and pull are disabled. Nothing to do."); + } } catch (IOException | InterruptedException e) { logger(listener).println("Zanata Sync failed:" + e.getMessage()); throw new RuntimeException(e);