@Override
public String getDisplayName() {
return "Convert login and password to token";
}
@SuppressWarnings("unused")
<BUG>public ListBoxModel doFillCredentialsIdItems(@QueryParameter String apiUrl) {
</BUG>
if (!Jenkins.getInstance().hasPermission(Jenkins.ADMINISTER)) {
<BUG>return new ListBoxModel();
}</BUG>
return new StandardUsernameListBoxModel()

@Override
public GitHubTokenCredentialsCreator getDescriptor() {
return this;
}
@Override
public String getDisplayName() {
return "Convert login and password to token";
}
@SuppressWarnings("unused")
public ListBoxModel doFillCredentialsIdItems(@QueryParameter String apiUrl, @QueryParameter String credentialsId) {
if (!Jenkins.getInstance().hasPermission(Jenkins.ADMINISTER)) {
return new StandardUsernameListBoxModel().includeCurrentValue(credentialsId);
}
