package org.jenkinsci.plugins.p4.credentials; import hudson.Util; import com.cloudbees.plugins.credentials.CredentialsScope; import com.cloudbees.plugins.credentials.impl.BaseStandardCredentials; import edu.umd.cs.findbugs.annotations.CheckForNull; public abstract class P4BaseCredentials extends BaseStandardCredentials { private static final long serialVersionUID = 1L; @CheckForNull private final String p4port; @CheckForNull private final TrustImpl ssl; @CheckForNull private final String username; @CheckForNull private final String retry; @CheckForNull private final String timeout; /** * Constructor. * * @param scope * the scope. * @param id * the id. * @param description * the description. */ public P4BaseCredentials(CredentialsScope scope, String id, String description, @CheckForNull String p4port, @CheckForNull TrustImpl ssl, @CheckForNull String username, @CheckForNull String retry, @CheckForNull String timeout) { super(scope, id, description); this.p4port = Util.fixNull(p4port); this.ssl = ssl; this.username = Util.fixNull(username); this.retry = retry; this.timeout = timeout; } @CheckForNull public String getP4port() { return p4port; } public boolean isSsl() { return (ssl == null) ? false : true; } @CheckForNull public String getTrust() { return (ssl == null) ? null : ssl.getTrust(); } @CheckForNull public String getUsername() { return username; } public int getRetry() { if (retry != null && !retry.isEmpty()) { return Integer.parseInt(retry); } else { return 0; } } public int getTimeout() { if (timeout != null && !timeout.isEmpty()) { return Integer.parseInt(timeout); } else { return 0; } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#14 | 28497 | Paul Allen |
Moved the User session configuration to Credentials. The global configuration settings are not accessible during slave execution. Moving the configuration under Credentials allows users easily try out the cache for specific users/p4d servers. |
||
#13 | 26640 | Paul Allen |
Tick interval message to prevent timeout. An advanced setting in the Credential sets a 'tick' interval to print out a 'waiting' message to the log during long running commands. The value needs to be less than 30,000ms to avoid Jenkins automatic disconnect. JENKINS-58161 |
||
#12 | 26617 | Paul Allen |
Prevent `ssl:` string from appearing in the P4PORT Jelly field. Jelly uses getP4port() method for binding the fields; adding the ssl prefix was causing issues. JENKINS-63246 |
||
#11 | 26581 | Paul Allen |
Return "ssl:" on P4PORT for SSL connections Use 'contains' check on trigger checks for backwards compatability. JENKINS-62253 |
||
#10 | 26359 | matthew_smeeth |
Removed "isSsl()" method from P4Credentials due to it causing an issue with JCasC plugin. JENKINS-58249 |
||
#9 | 26312 | Paul Allen |
Added a getSsl method into the Perforce credential classes to enable support for the Configuration as code plugin. JENKINS-58249 |
||
#8 | 22128 | Paul Allen |
Helix Graph support for Jenkins. JENKINS-40354 |
||
#7 | 21207 | Paul Allen |
Multi client support in Pipeline. If two or more `p4sync` operations are called in one Pipeline script, they MUST have different client names. During a build, multiple entries are added to the build history; on subsequent builds they are used in the three following situations: - Polling: largest change number across all the checkouts is used. - Change Summary: last change with the same client name is used. - Environment: last change recorded (regardless of client). Added two test cases to cover basic multi sync build/poll situations. JENKINS-38401 JENKINS-37462 JENKINS-39652 |
||
#6 | 21154 | Paul Allen | P4HOST support for connection. | ||
#5 | 20980 | Paul Allen |
Functional test upgrade. Switched to RSH pipe for Perforce connection and upgraded to 15.1 P4D binaries. Made use of ClassRule for Jenkins (faster startup) and a Rule for Perforce with separate roots (to allow for parallel test runs). |
||
#4 | 20598 | Paul Allen |
P4Credentials Interfaces for Mixins. Updated test cases to match changes from CredentialsNameProvider. @stephenc |
||
#3 | 20179 | Paul Allen | Javadoc fixes for java 8 builds. | ||
#2 | 16502 | Paul Allen |
Advanced Credentials option for RPC_SOCKET_SO_TIMEOUT_NICK JENKINS-31196 |
||
#1 | 15656 | Paul Allen |
Updated credentials to extend BaseStandardCredentials. Allows users to set the ID at creation. JENKINS-29702 |
||
//guest/perforce_software/p4jenkins/main/src/main/java/org/jenkinsci/plugins/p4/credentials/P4StandardCredentials.java | |||||
#4 | 15293 | Paul Allen |
Add retry attempts to Perforce Tasks. If a task fails due to an exception then the task will retry based on the value specified in the connection Credential. |
||
#3 | 11142 | Paul Allen |
Remove redundant code for Credential name fix Only the `@NameWith` annotation is required to report the Credential name. JENKINS-25682 |
||
#2 | 11132 | Paul Allen |
Fix Credential name for Template plugin Added `@NameWith` annotation to allow the implementation to override the reported Credential name. JENKINS-25682 |
||
#1 | 9690 | Paul Allen |
[Branching using p4-jenkins] Release 1.0.1 |
||
//guest/paul_allen/dev/p4-jenkins/p4-client/src/main/java/org/jenkinsci/plugins/p4/credentials/P4StandardCredentials.java | |||||
#1 | 9672 | Paul Allen | Refactor name from 'p4_client' to 'p4'. | ||
//guest/paul_allen/dev/p4-jenkins/p4-client/src/main/java/org/jenkinsci/plugins/p4_client/credentials/P4StandardCredentials.java | |||||
#7 | 8737 | Paul Allen |
Added basic Help for SCM Configuration page. Tidy up descriptions and fix (null:null) in Credential summary. |
||
#6 | 8660 | Paul Allen | Added P4TRUST for SSL connections in the Credentials plugin and ConnectionFactory. | ||
#5 | 8640 | Paul Allen |
Added Workspace and Singleton descriptor. Removed old connection code. |
||
#4 | 8639 | Paul Allen |
Added hint URL to Credentials page when no Credentials are defined. Minor refactor and UX changes. |
||
#3 | 8629 | Paul Allen |
Added p4java with connection/authorisation helper classes. Included SSL support and detection of Unicode servers. |
||
#2 | 8612 | Paul Allen | Job can now select and save/load Credential choice (some cleanup TODO) | ||
#1 | 8611 | Paul Allen | Basic implementation of Credentials Store |