Skip to content

Commit

Permalink
Make API method accessible.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Jan 1, 2024
1 parent 2d5e600 commit 401125b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/io/jenkins/plugins/util/QualityGateResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import java.util.List;
import java.util.stream.Collectors;

import org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.Whitelisted;

/**
* Result of a quality gate evaluation. Aggregates the individual results of the quality gates into an overall status.
*
Expand Down Expand Up @@ -40,10 +42,12 @@ public List<QualityGateResultItem> getResultItems() {
return items;
}

@Whitelisted
public QualityGateStatus getOverallStatus() {
return overallStatus;
}

@Whitelisted
public boolean isSuccessful() {
return overallStatus.isSuccessful();
}
Expand Down

0 comments on commit 401125b

Please sign in to comment.