Skip to content

Commit

Permalink
Provide dedicated symbol for personal access token (#46)
Browse files Browse the repository at this point in the history
Right now, one has to use `personalAccessTokenImpl` to define a Jenkins
credential for Gitea token.

This adds the Symbol `giteaAccessToken` so that it is possible to
identify their relation with the Gitea plugin in Configuration as Code
snippets.

Signed-off-by: justusbunsi <[email protected]>
  • Loading branch information
justusbunsi authored Dec 4, 2021
1 parent c9335dd commit 64d32af
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import hudson.util.Secret;
import jenkins.model.Jenkins;
import org.apache.commons.lang.StringUtils;
import org.jenkinsci.Symbol;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;
import org.kohsuke.stapler.DataBoundConstructor;
Expand Down Expand Up @@ -77,6 +78,7 @@ public Secret getToken() {
/**
* Our descriptor.
*/
@Symbol("giteaAccessToken")
@Extension
public static class DescriptorImpl extends CredentialsDescriptor {
/**
Expand Down

0 comments on commit 64d32af

Please sign in to comment.