Skip to content

Commit

Permalink
Remove ReleaseTrack and redundant config methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
orrc committed May 23, 2020
1 parent b40660a commit e06aa74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 59 deletions.
Expand Up @@ -20,7 +20,6 @@
import static hudson.Util.fixEmptyAndTrim;
import static hudson.Util.tryParseNumber;
import static hudson.model.Item.EXTENDED_READ;
import static org.jenkinsci.plugins.googleplayandroidpublisher.ReleaseTrack.getConfigValues;
import static org.jenkinsci.plugins.googleplayandroidpublisher.Util.REGEX_VARIABLE;

public abstract class GooglePlayBuildStepDescriptor<T extends BuildStep & Describable<T>>
Expand Down Expand Up @@ -84,13 +83,6 @@ private static ListBoxModel getCredentialsListBox(Item item) {
return listBox;
}

public FormValidation doCheckApkFilesPattern(@QueryParameter String value) {
if (fixEmptyAndTrim(value) == null) {
return FormValidation.error("An APK file path or pattern is required");
}
return FormValidation.ok();
}

public FormValidation doCheckTrackName(@QueryParameter String value) {
if (fixEmptyAndTrim(value) == null) {
return FormValidation.error("A release track is required");
Expand All @@ -113,11 +105,8 @@ public FormValidation doCheckRolloutPercentage(@QueryParameter String value) {
}

public ComboBoxModel doFillTrackNameItems() {
return new ComboBoxModel(getConfigValues());
}

public ComboBoxModel doFillRolloutPercentageItems() {
return null;
// Auto-complete the default track names, though users can also enter custom track names
return new ComboBoxModel("internal", "alpha", "beta", "production");
}

public boolean isApplicable(Class<? extends AbstractProject> c) {
Expand Down

This file was deleted.

0 comments on commit e06aa74

Please sign in to comment.