credentials.jelly #6

  • //
  • guest/
  • perforce_software/
  • p4jenkins/
  • main/
  • src/
  • main/
  • resources/
  • org/
  • jenkinsci/
  • plugins/
  • p4/
  • credentials/
  • P4TicketImpl/
  • credentials.jelly
  • View
  • Commits
  • Open Download .zip Download (2 KB)
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:f="/lib/form" xmlns:st="jelly:stapler" xmlns:l="/lib/layout">

	<st:include page="id-and-description" class="${descriptor.clazz}"/>
	
	<f:entry title="${%P4Port}" field="p4port">
		<f:textbox/>
	</f:entry>
	
	<f:optionalBlock name="ssl" title="${%SSL connection}" checked="${instance.isSslEnabled()}">
		<f:entry title="${%Trust}" field="trust">
			<f:textbox/>
		</f:entry>
	</f:optionalBlock>
		
	<f:entry title="${%Username}" field="username">
		<f:textbox/>
	</f:entry>
		
	<f:radioBlock name="ticket" value="ticketValueSet" title="${%Login with ticket value}" checked="${instance.isTicketValueSet()}">
		<f:entry title="${%Ticket}" field="ticketValue">
			<f:password/>
		</f:entry>
	</f:radioBlock>
	<f:radioBlock name="ticket" value="ticketPathSet" title="${%Use P4TICKETS file}" checked="${instance.isTicketPathSet()}">
		<f:entry title="P4TICKETS" field="ticketPath">
			<f:textbox/>
		</f:entry>
	</f:radioBlock>		
	
	<f:advanced>
		<f:entry title="${%Retry}" field="retry">
			<f:textbox default="0"/>
		</f:entry>

        <f:entry title="${%Tick interval (ms)}" field="tick">
            <f:textbox default="0"/>
        </f:entry>
	
		<f:entry title="${%RPC_SOCKET_SO_TIMEOUT_NICK}" field="timeout">
			<f:textbox default="0"/>
		</f:entry>

		<f:entry title="${%P4HOST}" field="p4host">
			<f:textbox/>
		</f:entry>

		<f:optionalBlock inline="true" name="sessionEnabled" title="${%Enable user session}" checked="${instance.isSessionEnabled()}">
			<f:entry title="${%Minimum session life}" field="sessionLife">
				<f:textbox default="0"/>
			</f:entry>
		</f:optionalBlock>
	</f:advanced>

	<l:isAdmin>
		<f:validateButton title="${%Test Connection}" progress="${%Testing...}"
			method="testConnection" with="p4port,ssl,trust,username,p4host,ticket,ticketValue,ticketPath" />
	</l:isAdmin>
		
</j:jelly>
# Change User Description Committed
#6 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.
#5 27768 Paul Allen SECURITY-2327
#4 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
#3 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
#2 25057 Paul Allen Merge pull request #90 from jlloyola/master

Changed P4Ticket web field type to password
#1 21794 Paul Allen Merge pull request #39 from Dohbedoh/JENKINS-34825

Jenkins 34825
//guest/perforce_software/p4jenkins/main/src/main/resources/org/jenkinsci/plugins/p4/credentials/P4TicketImpl/config.jelly
#5 21154 Paul Allen P4HOST support for connection.
#4 16502 Paul Allen Advanced Credentials option for RPC_SOCKET_SO_TIMEOUT_NICK

JENKINS-31196
#3 15656 Paul Allen Updated credentials to extend BaseStandardCredentials.

Allows users to set the ID at creation. JENKINS-29702
#2 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.
#1 9690 Paul Allen [Branching using p4-jenkins]
Release 1.0.1
//guest/paul_allen/dev/p4-jenkins/p4-client/src/main/resources/org/jenkinsci/plugins/p4/credentials/P4TicketImpl/config.jelly
#1 9672 Paul Allen Refactor name from 'p4_client' to 'p4'.
//guest/paul_allen/dev/p4-jenkins/p4-client/src/main/resources/org/jenkinsci/plugins/p4_client/credentials/P4TicketImpl/config.jelly
#4 8742 Paul Allen Added SSL support to "Test Connection" button for Perforce Credentials.
#3 8741 Paul Allen Added "Test Connection" to Perforce Password and Ticket Credentials.
 Does not support SSL connections...yet
#2 8660 Paul Allen Added P4TRUST for SSL connections in the Credentials plugin and ConnectionFactory.
#1 8629 Paul Allen Added p4java with connection/authorisation helper classes.
 Included SSL support and detection of Unicode servers.