diff --git a/pom.xml b/pom.xml index 82416647f2..303aada8cf 100644 --- a/pom.xml +++ b/pom.xml @@ -102,7 +102,6 @@ org.jenkins-ci.plugins git-client - 3.12.0 org.jenkins-ci.plugins @@ -153,26 +152,6 @@ org.jenkins-ci.plugins junit test - - - - - - - - - - - - - - - - - - - - junit diff --git a/src/main/java/jenkins/plugins/git/maintenance/Cron.java b/src/main/java/jenkins/plugins/git/maintenance/Cron.java index d45e9e4dda..889dc6d340 100644 --- a/src/main/java/jenkins/plugins/git/maintenance/Cron.java +++ b/src/main/java/jenkins/plugins/git/maintenance/Cron.java @@ -13,7 +13,7 @@ public class Cron extends PeriodicWork { @Override public long getInitialDelay(){ - return MIN - (Calendar.getInstance().get(Calendar.SECOND) * 1000); + return MIN - (Calendar.getInstance().get(Calendar.SECOND) * 1000L); } @Override