package org.jenkinsci.plugins.p4; import com.cloudbees.plugins.credentials.CredentialsScope; import com.cloudbees.plugins.credentials.SystemCredentialsProvider; import org.jenkinsci.plugins.p4.credentials.P4PasswordImpl; import java.io.IOException; abstract public class DefaultEnvironment { protected final static String VERSION = "r15.1"; protected final static String CREDENTIAL = "id"; protected final static int HTTP_PORT = 1888; protected final static String HTTP_URL = "http://localhost:" + HTTP_PORT; protected final int LOG_LIMIT = 1000; protected P4PasswordImpl createCredentials(String user, String password, SampleServerRule p4d) throws IOException { String p4port = p4d.getRshPort(); CredentialsScope scope = CredentialsScope.SYSTEM; P4PasswordImpl auth = new P4PasswordImpl(scope, CREDENTIAL, "desc", p4port, null, user, "0", "0", null, password); SystemCredentialsProvider.getInstance().getCredentials().clear(); SystemCredentialsProvider.getInstance().getCredentials().add(auth); SystemCredentialsProvider.getInstance().save(); return auth; } protected static void startHttpServer(int port) throws Exception { DummyServer server = new DummyServer(port); new Thread(server).start(); } protected String defaultClient() { String client = "test.ws"; String os = System.getProperty("os.name").toLowerCase(); if (os.contains("win")) { client = "test.win"; } return client; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#31 | 29848 | Sandeep Kumar |
Merge pull request #195 from jenkinsci/StreamAtChange Support StreamAtChange for ManualWorkspace. |
||
#30 | 28735 | Paul Allen |
Merge pull request #142 from skumar7322/branchIndexing JENKINS-64946 : Branch indexing occurring for every multibranch job |
||
#29 | 26673 | Paul Allen |
Code cleanup - remove calls to Deprecated methods - Deprecated classes like AbstractStepImpl, AbstractStepDescriptorImpl and AbstractSynchronousStepExecution for P4TaggingStep |
||
#28 | 26616 | Paul Allen |
Upgrade P4Java to 2020.1.1989745 Includes fixes for P4IGNORE, reconcile flags and performance improvments for ExtendedFileSpec operations. Fix tests: must set stream owner and user alternative p4ignore. JENKINS-59922 JENKINS-39094 JENKINS-51192 |
||
#27 | 26143 | Paul Allen |
Update p4java 2019.1.1873579 Entended test delay for slow build machines. JENKINS-59213 JENKINS-59611 |
||
#26 | 26112 | Paul Allen |
Merge pull request #110 from p4charu/jenkinsci-master Fix for JENKINS-58639. If last build is not completely built look for last build… |
||
#25 | 25668 | Paul Allen |
Merge pull request #94 from lystor/bug-56414 JENKINS-56414: Support of Reconcile with Modtime in P4Publish |
||
#24 | 25659 | Paul Allen | Fix Windows tests for submitStreamFile | ||
#23 | 25655 | Paul Allen |
Extract the Job Environment when fetching the Jenkinsfile. Allow Parameterized builds for the Stream field when using 'Pipline Script from SCM'. JENKINS-56775 |
||
#22 | 25056 | Paul Allen |
Check for duplicate syncIDs and test polling after failed build. JENKINS-55075 |
||
#21 | 24986 | Paul Allen |
Merge pull request #87 from p4charu/jenkinsci-master Test to confirm JENKINS-54628 is fixed. |
||
#20 | 24939 | Paul Allen |
Escape unsupported XML low ascii characters with a '?'. JENKINS-52661 JENKINS-54841 |
||
#19 | 24529 | Paul Allen |
Swarm Commit Event support, refactoring and test. JENKINS-52605 (Fix doc in 'Includes' help bubble for MultiBranch) JENKINS-52066 (Improve Swarm Commit and Branch Event support) |
||
#18 | 24492 | Paul Allen |
Initial work for MultiBranch Event trigger. JENKINS-52066 (Triggered Events and not Polling per change) |
||
#17 | 24487 | Paul Allen | Perforce Connection Refactor. | ||
#16 | 24409 | Paul Allen | Added ChangeView and Client Backup support. | ||
#15 | 24403 | Paul Allen |
Support spaces in depot path for MultiBranch and DepotSource JENKINS-52604 |
||
#14 | 24233 | Paul Allen |
Merge pull request #74 from msmeeth56/master Updated tests to work against Windows, and lower spec computers. JENKINS-52145 |
||
#13 | 23943 | Paul Allen |
Poll per change for Pipeline. JENKINS-47427 |
||
#12 | 23858 | Paul Allen |
Skip probing disabled Jobs. Includes minor updates to Polling tests. JENKINS-50634 |
||
#11 | 23819 | Paul Allen | Cleanup test cases to use Credential ID. | ||
#10 | 22163 | Paul Allen |
Manual Workspace support for READONLY and PARTITIONED. Change Type to Enum. JENKINS-39753 |
||
#9 | 22128 | Paul Allen |
Helix Graph support for Jenkins. JENKINS-40354 |
||
#8 | 21936 | Paul Allen |
Refactor tests for 17.1 release. Removed pseudo web server on FreeStyleTest |
||
#7 | 21794 | Paul Allen |
Merge pull request #39 from Dohbedoh/JENKINS-34825 Jenkins 34825 |
||
#6 | 21562 | Paul Allen |
Expand variables for Spec Workspace definitions. Add test to verify variable expansion for name and view. |
||
#5 | 21171 | Paul Allen |
Jenkinsfile basic test. Moved Workflow tests out of Connection test class. |
||
#4 | 21154 | Paul Allen | P4HOST support for connection. | ||
#3 | 21146 | Paul Allen | Test Case support for Windows Clients. | ||
#2 | 20985 | Paul Allen |
Minor fixes to test cases. Clean credential list between tests and use unique names for test Jobs. |
||
#1 | 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). |