/** * Gets the description of the {@link Credentials}. * * @return the description of the {@link Credentials}. */ @Exported public String getDescription() { return credentials instanceof StandardCredentials ? ((StandardCredentials) credentials).getDescription() : null; }
/** * Gets the description of the {@link Credentials}. * * @return the description of the {@link Credentials}. */ @Exported public String getDescription() { return credentials instanceof StandardCredentials ? ((StandardCredentials) credentials).getDescription() : null; }
/** * Returns the {@link StandardCredentials#getDescription()} of the {@link #credentials}. * * @return the {@link StandardCredentials#getDescription()} of the {@link #credentials}. * @throws IOException if there was an issue with formatting this using the markup formatter. */ public String getDescription() throws IOException { return credentials instanceof StandardCredentials ? Jenkins.getActiveInstance().getMarkupFormatter() .translate(((StandardCredentials) credentials).getDescription()) : null; }
/** * Returns the {@link StandardCredentials#getDescription()} of the {@link #credentials}. * * @return the {@link StandardCredentials#getDescription()} of the {@link #credentials}. * @throws IOException if there was an issue with formatting this using the markup formatter. */ public String getDescription() throws IOException { return credentials instanceof StandardCredentials ? Jenkins.getActiveInstance().getMarkupFormatter() .translate(((StandardCredentials) credentials).getDescription()) : null; }
/** * {@inheritDoc} */ @NonNull @Override public String getName(@NonNull StandardCredentials c) { String description = Util.fixEmptyAndTrim(c.getDescription()); return c.getId() + (description != null ? " (" + description + ")" : ""); } }
/** * {@inheritDoc} */ @NonNull @Override public String getName(@NonNull StandardCredentials c) { String description = Util.fixEmptyAndTrim(c.getDescription()); return c.getId() + (description != null ? " (" + description + ")" : ""); } }