package org.jenkinsci.plugins.p4_client.credentials; import hudson.Extension; import hudson.Util; import org.kohsuke.stapler.DataBoundConstructor; import com.cloudbees.plugins.credentials.CredentialsDescriptor; import com.cloudbees.plugins.credentials.CredentialsScope; import edu.umd.cs.findbugs.annotations.CheckForNull; import edu.umd.cs.findbugs.annotations.NonNull; public class P4TicketImpl extends P4StandardCredentials { /** * Ensure consistent serialisation. */ private static final long serialVersionUID = 1L; @NonNull private final String p4port; private final boolean ssl; @NonNull private final String username; @NonNull private final TicketModeImpl ticket; @DataBoundConstructor public P4TicketImpl(@CheckForNull CredentialsScope scope, @CheckForNull String id, @CheckForNull String description, @CheckForNull String p4port, boolean ssl, @CheckForNull String username, TicketModeImpl ticket) { super(scope, id, description, p4port, ssl, username); this.p4port = Util.fixNull(p4port); this.ssl = ssl; this.username = Util.fixNull(username); this.ticket = ticket; } @NonNull public String getP4port() { return p4port; } public boolean isSsl() { return ssl; } @NonNull public String getUsername() { return username; } @NonNull public String getTicketValue() { return ticket.getTicketValue(); } public boolean isTicketValueSet() { return ticket.isTicketValueSet(); } @NonNull public String getTicketPath() { return ticket.getTicketPath(); } public boolean isTicketPathSet() { return ticket.isTicketPathSet(); } @Extension public static class DescriptorImpl extends CredentialsDescriptor { @Override public String getDisplayName() { return "Perforce Ticket Credentials"; } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#11 | 9672 | Paul Allen | Refactor name from 'p4_client' to 'p4'. | ||
#10 | 9428 | Paul Allen |
Clarification of Polling Filters in UX and UserGuide - Tidyup unused imports |
||
#9 | 9032 | Paul Allen |
Perforce Credentials help and form validation checks for misuse of 'ssl:' on P4PORT. (TPI-107) |
||
#8 | 8888 | Paul Allen |
Extended test coverage for Workspace and Credentials. - Removed ununsed methods. |
||
#7 | 8771 | Paul Allen |
Perforce Server 12.1 min check for: Build configuration and password/ticket credentials. Includes: - Added logging for Perforce connections (fine) and set connection pool to 2. - Add 'none' to empty charset list (connection bug?) - Supress P4Java errors for syncing ubinary, xtext, unicode |
||
#6 | 8742 | Paul Allen | Added SSL support to "Test Connection" button for Perforce Credentials. | ||
#5 | 8741 | Paul Allen |
Added "Test Connection" to Perforce Password and Ticket Credentials. Does not support SSL connections...yet |
||
#4 | 8737 | Paul Allen |
Added basic Help for SCM Configuration page. Tidy up descriptions and fix (null:null) in Credential summary. |
||
#3 | 8660 | Paul Allen | Added P4TRUST for SSL connections in the Credentials plugin and ConnectionFactory. | ||
#2 | 8639 | Paul Allen |
Added hint URL to Credentials page when no Credentials are defined. Minor refactor and UX changes. |
||
#1 | 8629 | Paul Allen |
Added p4java with connection/authorisation helper classes. Included SSL support and detection of Unicode servers. |