From b87a0987c2b91ef63f5c6dd0f7a6839e341b3584 Mon Sep 17 00:00:00 2001 From: Bui Tin Date: Fri, 17 Aug 2018 00:14:08 +0700 Subject: [PATCH] Remove unused variable (attemptsToRepeat). --- .../quality/gates/jenkins/plugin/JobConfigData.java | 13 +------------ .../gates/sonar/api/QualityGatesProvider.java | 1 - 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/main/java/org/quality/gates/jenkins/plugin/JobConfigData.java b/src/main/java/org/quality/gates/jenkins/plugin/JobConfigData.java index ef8fd70..5f023b2 100644 --- a/src/main/java/org/quality/gates/jenkins/plugin/JobConfigData.java +++ b/src/main/java/org/quality/gates/jenkins/plugin/JobConfigData.java @@ -8,8 +8,6 @@ public class JobConfigData { private String sonarInstanceName; - private int attemptsToRepeat; - private BuildStatusEnum buildStatus; public String getProjectKey() { @@ -28,14 +26,6 @@ public void setSonarInstanceName(String sonarInstanceName) { this.sonarInstanceName = sonarInstanceName; } - public int getAttemptsToRepeat() { - return attemptsToRepeat; - } - - public void setAttemptsToRepeat(int attemptsToRepeat) { - this.attemptsToRepeat = attemptsToRepeat; - } - public BuildStatusEnum getBuildStatus() { return buildStatus; } @@ -74,8 +64,7 @@ public int hashCode() { public String toString() { return "JobConfigData{" + "projectKey='" + projectKey + '\'' + - ", sonarInstanceName='" + sonarInstanceName + '\'' + - ", attemptsToRepeat=" + attemptsToRepeat + + ", sonarInstanceName='" + sonarInstanceName + '}'; } } diff --git a/src/main/java/org/quality/gates/sonar/api/QualityGatesProvider.java b/src/main/java/org/quality/gates/sonar/api/QualityGatesProvider.java index 4a9e468..f787fb6 100644 --- a/src/main/java/org/quality/gates/sonar/api/QualityGatesProvider.java +++ b/src/main/java/org/quality/gates/sonar/api/QualityGatesProvider.java @@ -43,7 +43,6 @@ public QualityGatesStatus getAPIResultsForQualityGates(JobConfigData jobConfigDa boolean taskAnalysisRunning = true; - int attemptsToRepeat = jobConfigData.getAttemptsToRepeat(); int timeToWait = globalConfigDataForSonarInstance.getTimeToWait(); int maxWaitTime = globalConfigDataForSonarInstance.getMaxWaitTime();