package org.jenkinsci.plugins.p4.credentials; import java.io.Serializable; import org.apache.commons.lang.StringUtils; import org.kohsuke.stapler.DataBoundConstructor; import edu.umd.cs.findbugs.annotations.NonNull; import hudson.Extension; import hudson.model.AbstractDescribableImpl; import hudson.model.Descriptor; public class TicketModeImpl extends AbstractDescribableImpl<TicketModeImpl> implements Serializable { private static final long serialVersionUID = 1L; @NonNull private final String value; @NonNull private final String ticketValue; @NonNull private final String ticketPath; @DataBoundConstructor public TicketModeImpl(String value, String ticketValue, String ticketPath) { this.value = value; this.ticketValue = (ticketValue != null) ? ticketValue : ""; this.ticketPath = (ticketPath != null) ? ticketPath : ""; } public String getValue() { return value; } public String getTicketValue() { return ticketValue; } public String getTicketPath() { return ticketPath; } public boolean isTicketValueSet() { return !StringUtils.isEmpty(getTicketValue()); } public boolean isTicketPathSet() { return !StringUtils.isEmpty(getTicketPath()); } @Extension public static class DescriptorImpl extends Descriptor<TicketModeImpl> { @Override public String getDisplayName() { return "TicketMode"; } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#9 | 23935 | Paul Allen |
Store Perforce Ticket as a Secret, but support old clear text ticket credentials. JENKINS-49474 |
||
#8 | 22684 | Paul Allen | Added @Symbol to Extension classes for Pipeline Syntax. | ||
#7 | 22128 | Paul Allen |
Helix Graph support for Jenkins. JENKINS-40354 |
||
#6 | 21149 | Paul Allen | Null protection for Ticket Value/Path. | ||
#5 | 19581 | Paul Allen | Minor fixes to satisfy FindBugs Analysis. | ||
#4 | 15569 | Paul Allen |
Merge pull request #18 from stuartrowe/master [FIXED JENKINS-30163] P4TICKETS file credential doesn't work |
||
#3 | 11443 | Paul Allen |
Workaround for Jelly bug. Perforce Credentials for Ticket value/path Jelly was not reporting the selected 'radioBlock'. |
||
#2 | 9977 | Paul Allen |
Serialisation fix for Credentials Missing `Serializable` implementation https://issues.jenkins-ci.org/browse/JENKINS-24188 |
||
#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/TicketModeImpl.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/TicketModeImpl.java | |||||
#1 | 8639 | Paul Allen |
Added hint URL to Credentials page when no Credentials are defined. Minor refactor and UX changes. |
||
//guest/paul_allen/dev/p4-jenkins/p4-client/src/main/java/org/jenkinsci/plugins/p4_client/credentials/TicketMode.java | |||||
#1 | 8629 | Paul Allen |
Added p4java with connection/authorisation helper classes. Included SSL support and detection of Unicode servers. |