5 years agomjoubert commented on review 26234 for p4-jenkins:main What does this change enable ? | ||
1 comment | ||
8 years agomjoubert commented on change 22349 for p4-jenkins:main Could you please revert this please. Could you please revert this please. | ||
8 years agomjoubert edited a comment on review 21165 (P4EnvironmentContributor.java, line 27) for p4-jenkins:main I cannot comment on the other files but if i made the following change: List<TagAction> actions = run.getActions(TagAction.class); I cannot comment on the other files but if i made the following change: List<TagAction> actions = run.getActions(TagAction.class);
Then the env are grabbed correctly « | ||
8 years agomjoubert edited a comment on review 21165 (P4EnvironmentContributor.java, line 27) for p4-jenkins:main List<TagAction> actions = run.getActions(TagAction.class); ...List<TagAction> actions = run.getActions(TagAction.class);
does work « | ||
8 years agomjoubert commented on review 21165 (P4EnvironmentContributor.java, line 27) for p4-jenkins:main List<TagAction> actions = run.getActions(TagAction.class); ...List<TagAction> actions = run.getActions(TagAction.class); « | ||
8 years agomjoubert commented on review 21165 for p4-jenkins:main ok, I can see why my problem is, I had job parameters that matched the special json names that the plugin used, and those was used and not the pipelin ...ok, I can see why my problem is, I had job parameters that matched the special json names that the plugin used, and those was used and not the pipeline items, when I use the pipeline items then both pipeline items sync to the correct CL's « | ||
8 years agomjoubert commented on review 21165 for p4-jenkins:main correction to above , the first sync and second sync it totally ignoring the pin value and is just syncing to the last. correction to above , the first sync and second sync it totally ignoring the pin value and is just syncing to the last. | ||
8 years agomjoubert commented on review 21165 for p4-jenkins:main This doesn't work. My test is as follows, i have a wrapper This doesn't work. My test is as follows, i have a wrapper This works perfectly for a single sync. def stream_sync(sync_stream,credential_id,perforce_label) node(slaveRestriction) { P4_CHANGELIST=stream_sync(perforceStream,p4_credential,'12000') my example above is to sync to the same stream twice, just with a different CL The second one has a problem before we even get to the env. | ||
8 years agomjoubert commented on review 21165 (P4EnvironmentContributor.java, line 22) for p4-jenkins:main the getLastAction does seem to do more than get the last Action for a particular run If i have a pipeline ...the getLastAction does seem to do more than get the last Action for a particular run If i have a pipeline where I sync 2 different streams then i would expect 2 different P4_CHANGELIST values, not do any comparisons with other items. I will sync and build the code tomorrow, but just having a quick look it doesn't look right (unless i am missing something) « | ||
8 years agomjoubert commented on change 21133 for p4-jenkins:main I have now got my head around on how the extension point works. I have now got my head around on how the extension point works. | ||
8 years agomjoubert commented on change 21133 for p4-jenkins:main found it... | ||
8 years agomjoubert commented on change 21133 for p4-jenkins:main I have been trying to make this work.... if I modify the code to: I have been trying to make this work.... if I modify the code to:
Then I can see the "buildEnvironmentFor" printed BEFORE the P4 step run. Looking at the docs, this API is called at the beginning of a well written workflow step to get the env variables. But this doesn't set the env for main flow only for other steps that does call buildEnvironmentFor. I want to do how do I get the env back ? (without writing my own step?) « | ||
8 years agomjoubert commented on change 21133 for p4-jenkins:main ah, just saw your JIRA note stating it is ready for release. | ||
8 years agomjoubert commented on change 21133 for p4-jenkins:main Excellent, is this ready for me to sync and test ? | ||
8 years agomjoubert requested review 21117 for p4-jenkins:main pallen Optionally use the local p4 to do reconcile | ||
8 years agomjoubert requested review 21059 for p4-jenkins:main | ||
8 years agomjoubert requested review 20956 for p4-jenkins:main | ||
9 years agomjoubert requested review 19932 for p4-jenkins:main | ||
9 years agomjoubert requested review 19823 for p4-jenkins:main @pallen Add checks for sync CL and head CL | ||
9 years agomjoubert commented on review 19743 for p4-jenkins:main have updated CheckoutTask with the small bugfix regarding CL sync numbers. | ||
9 years agomjoubert updated files in review 19743 for p4-jenkins:main @pallen Add checks to make sure that sync CL is not bigger than head If a p4.label or label is used with a number that is bigger than the head then... this number is used everywhere. This is causing P4_CHANGELIST to be incorrect but i can see this number can also be saved to a client object and that might be incorrect. Add support for shelve to be a comma seperated list. (move from single int to string) This means people can unshelve multiple changelists « | ||
9 years agomjoubert updated files in review 19743 for p4-jenkins:main @pallen Add checks to make sure that sync CL is not bigger than head If a p4.label or label is used with a number that is bigger than the head then... this number is used everywhere. This is causing P4_CHANGELIST to be incorrect but i can see this number can also be saved to a client object and that might be incorrect. Add support for shelve to be a comma seperated list. (move from single int to string) This means people can unshelve multiple changelists « | ||
9 years agomjoubert commented on review 19743 (CheckoutTask.java, line 88) for p4-jenkins:main not sure if we need to if statements or just a single one after the if that will always do the check | ||
9 years agomjoubert requested review 19743 for p4-jenkins:main @pallen Add checks to make sure that sync CL is not bigger than head If a p4.label or label is used with a number that is bigger than the head then t...his number is used everywhere. This is causing P4_CHANGELIST to be incorrect but i can see this number can also be saved to a client object and that might be incorrect. « | ||
9 years agomjoubert commented on review 19300 (ClientHelper.java, line 261) for p4-jenkins:main At the moment i set my variables system wide, so i expect all windows and linux slaves to have their p4 tools on the same path. At the moment i set my variables system wide, so i expect all windows and linux slaves to have their p4 tools on the same path. | ||
9 years agomjoubert commented on review 19300 (ClientHelper.java, line 334) for p4-jenkins:main i could not get it to work without it..... If we can set a ticket an ...i could not get it to work without it..... If we can set a ticket and then do the call then that would be the best way to go but i couldn't figure out how to get the auth settings into a P4TICKET for the cmd line to work. « | ||
9 years agomjoubert requested review 19300 for p4-jenkins:main @pallen Code to use local vesion of windows or linux P4 using individual env variables Very simple, i check for an exit code and then call the int...ernal p4java code since i don't know all the special command line arguments. Should probably only run if the user sets a GUI option. Have not cleaned up code. « | ||
9 years agomjoubert commented on review 18517 (PerforceScm.java) for p4-jenkins:main this i couldn't reproduce... When i looked at: I saw 130805...this i couldn't reproduce... When i looked at: I saw 1308053 (Bug #83624)
not sure if it is related. BTW i am currently using the username/pw credential but was going to see if i move over to the ticketing credential if would improve things. « | ||
9 years agomjoubert commented on review 18614 for p4-jenkins:main this is a showstopper for us ... so if you can get a new build (that is tested ;) ) that would be good. | ||
9 years agomjoubert commented on review 18614 for p4-jenkins:main Been working with Karl Wirth, have found the the use case where the p4java sync hangs. My other shelve is about the P4_TICKET=NULL, saw a bug in the p ...Been working with Karl Wirth, have found the the use case where the p4java sync hangs. My other shelve is about the P4_TICKET=NULL, saw a bug in the p4java change notes about the same thing. | ||
9 years agomjoubert commented on review 18614 for p4-jenkins:main skiing be any chance ? ;) | ||
9 years agomjoubert commented on review 18614 (ConnectionHelper.java, line 294) for p4-jenkins:main so if the id is a shelved cl then this command fails and the job bombs out. if id is an shelved cl then it throws: so if the id is a shelved cl then this command fails and the job bombs out. if id is an shelved cl then it throws: i also tried the command using CLI and get the same error using just @ and setMaxMostRecent(1) works for any type of change « | ||
9 years agomjoubert commented on review 18614 (ConnectionHelper.java, line 294) for p4-jenkins:main @= does not worked with shelved cls | ||
9 years agomjoubert commented on review 18614 for p4-jenkins:main ClientHelper.java getClientHead // get last change in server ClientHelper.java getClientHead // get last change in server This counter also have shelved CLs. Inside ConnectionHelper there was We are now hitting this many times a day. « | ||
9 years agomjoubert requested review 18614 for p4-jenkins:main | ||
9 years agomjoubert requested review 18517 for p4-jenkins:main @pallen Uncaught exception is thrown. Looking at the code it could happen if there are multiple threads. Might need a try catch as well. Can't c...ompile and test code , due to invalid pom so code might need a tweak Mar 03, 2016 11:59:49 AM org.jenkins_ci.plugins.run_condition.BuildStepRunner logEvaluateException WARNING: Exception caught evaluating condition: [java.lang.IllegalArgumentException: Null value not allowed as an environment variable: P4_TICKET], action = [Fail the build] java.lang.IllegalArgumentException: Null value not allowed as an environment variable: P4_TICKET at hudson.EnvVars.put(EnvVars.java:356) at hudson.EnvVars.put(EnvVars.java:74) at org.jenkinsci.plugins.p4.PerforceScm.buildEnvVars(PerforceScm.java:402) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:910) at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:229) at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:222) at « | ||
9 years agomjoubert commented on change 15665 for let me restate how i work. I have a tr ...let me restate how i work. I have a trigger job that uses the p4 plugin to sync to a custom workspace and then automatically trigger all the relevant jobs that does need rebuilding based on filter. That way i can have a handfull of jobs polling p4 vs 1000s of jobs polling p4 I have not checked any logs of the trigger jobs that do the polling to see if there is a problem. « | ||
9 years agomjoubert commented on change 15665 for Hi barnish, I use the p4plugin to sync around 500-800 custom workspaces a day, all with the executor number set. | ||
9 years agomjoubert commented on review 16267 (ClientHelper.java, line 235) for p4-jenkins:main List<IFileSpec> synMsg could potentially be very large, correct ? List<IFileSpec> synMsg could potentially be very large, correct ? That way you are guaranteed to have a zero memory impact and check for hangs by detecting that if no new callback have been called for n seconds then something must have gone wrong « | ||
9 years agomjoubert commented on review 16267 (ClientHelper.java, line 235) for p4-jenkins:main The plugin seems to randomly fails after this point. The plugin seems to randomly fails after this point. | ||
9 years agomjoubert commented on review 16267 (StreamCallback.java, line 18) for p4-jenkins:main Quick test class to get my head around things, the interface could potentially by added to ClientHelper but i just wanted to have a play | ||
9 years agomjoubert requested review 16267 for p4-jenkins:main | ||
9 years agomjoubert commented on change 16086 for p4-jenkins:main should the modtime property also be set when generating workspaces to work with the -m option ? | ||
10 years agomjoubert requested review 15735 for p4-jenkins:main | ||
10 years agomjoubert commented on change 15665 for p4-jenkins:main I use EXECUTOR_NUMBER in all my custom workspaces and if i don't use a custom workspace then i use EXECUTOR_NUMBER in the generated template name. I use EXECUTOR_NUMBER in all my custom workspaces and if i don't use a custom workspace then i use EXECUTOR_NUMBER in the generated template name. ${SITE} allows me to cover the case where the same job is going to be run on different masters. (we have our own variable called SITE that has a meaningful value for each master. ${NODE_NAME}-${EXECUTOR_NUMBER} allows me to cover all the cases of have a single job running in parallel on the same slave or across different slaves. | ||
10 years agomjoubert commented on change 15665 for p4-jenkins:main Hi, i use the ability to set a jobs custom workspace myself, due to various bugs in Jenkins when running parallel builds. Please check if your code w ...Hi, i use the ability to set a jobs custom workspace myself, due to various bugs in Jenkins when running parallel builds. Please check if your code will still work if the user have specified a custom workspace « | ||
10 years agomjoubert requested review 15472 for p4-jenkins:main | ||
10 years agomjoubert requested review 15468 for p4-jenkins:main | ||
10 years agomjoubert commented on review 12907 for p4-jenkins:main i would use 3 different jobs, jenkins doesn';t support these type of things like TeamCity or ElectricCommander does so you have to split the workload. ...i would use 3 different jobs, jenkins doesn';t support these type of things like TeamCity or ElectricCommander does so you have to split the workload. 2 jobs that sync the different code trees to a known location and a 3rd to do the compare ? « | ||
10 years agomjoubert commented on review 12907 for p4-jenkins:main Hi, Hi, As i understand it the current default model only handles a single P4 SCM step, do you have jobs that can actually sync,track changes,trigger etc from multiple SCM ? Morné « | ||
Change | User | Description | Created | ||
---|---|---|---|---|---|
22027 | mjoubert | current work | 8 years ago | Request Review | |
21168 | mjoubert | my change | 8 years ago | Request Review | |
21116 | mjoubert |
#review-21117 pallen Optionally use the local p4 to do reconcile |
8 years ago | View Review | |
21058 | mjoubert | #review-21059 @pallen I would like to set the ClientOptions when using a stream as the te...mplate I have got the GUI bits working, but no idea to do the workflow items. I would like to set the rmdir and modtime (to get the reconcile faster) but thought to not hard code it in , but provide the user an option « |
8 years ago | View Review | |
20955 | mjoubert | JENKINS-37584 #review-20956 @pallen @karl_wirth Proposal to solve pipeline env variable...s « |
8 years ago | View Review | |
19931 | mjoubert |
#review-19932 @pallen Add parallel sync options to Sync Only |
9 years ago | View Review | |
19822 | mjoubert | #review-19823 @pallen Add checks for sync CL and head CL | 9 years ago | View Review | |
19742 | mjoubert | #review-19743 @pallen Add checks to make sure that sync CL is not bigger than head If... a p4.label or label is used with a number that is bigger than the head then this number is used everywhere. This is causing P4_CHANGELIST to be incorrect but i can see this number can also be saved to a client object and that might be incorrect. Add support for shelve to be a comma seperated list. (move from single int to string) This means people can unshelve multiple changelists « |
9 years ago | View Review | |
19299 | mjoubert | #review-19300 @pallen Code to use local vesion of windows or linux P4 using individual... env variables Very simple, i check for an exit code and then call the internal p4java code since i don't know all the special command line arguments. Should probably only run if the user sets a GUI option. Have not cleaned up code. « |
9 years ago | View Review | |
18613 | mjoubert | #review-18614 @pallen Unable to get current change: com.perforce.p4java.exception.Reque...stException: Can't use a pending changelist number for this command. FATAL: null java.lang.NullPointerException Fix for critial bug « |
9 years ago | View Review | |
18516 | mjoubert | #review-18517 @pallen Uncaught exception is thrown. Looking at the code it could hap...pen if there are multiple threads. Might need a try catch as well. Can't compile and test code , due to invalid pom so code might need a tweak Mar 03, 2016 11:59:49 AM org.jenkins_ci.plugins.run_condition.BuildStepRunner logEvaluateException WARNING: Exception caught evaluating condition: [java.lang.IllegalArgumentException: Null value not allowed as an environment variable: P4_TICKET], action = [Fail the build] java.lang.IllegalArgumentException: Null value not allowed as an environment variable: P4_TICKET at hudson.EnvVars.put(EnvVars.java:356) at hudson.EnvVars.put(EnvVars.java:74) at org.jenkinsci.plugins.p4.PerforceScm.buildEnvVars(PerforceScm.java:402) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:910) at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:229) at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:222) at « |
9 years ago | View Review | |
16266 | mjoubert |
#review-16267 @pallen Questions regarding potentials memory problems |
9 years ago | View Review | |
15734 | mjoubert |
JENKINS-30387 : Fix problem with saving hours in 12 hour format. #review-15735 @pallen |
10 years ago | View Review | |
15471 | mjoubert | #review-15472 @pallen When using a Template the name does not expand (unlike the client n...ame) if it contains variables. This is also the case for when using a stream that has ${x} variables so it also needs to be fixed there. This fix is to expand the Template name. « |
10 years ago | View Review | |
12906 | mjoubert | #review-12907 @pallen P4PORT needs to be set so the job have this value if it needs to do... any command line calls « |
10 years ago | View Review | |
12875 | mjoubert | #review-12876 @pallen It is unclear if the options of a template is actually copied ove...r to the new generated name. I have a template on a proxy and i am poiting the jenkins to a edge server. The generated workspace does not copy over the template settings so am not user if it is edge related to a bug in the code. Would we be able to pull the options from the template and insert it in the java code ? « |
10 years ago | View Review | |
12306 | mjoubert |
#review-12307 @pallen reduce logging |
10 years ago | View Review | |
12303 | mjoubert |
#review-12304 @pallen Improved performance |
10 years ago | View Review | |
12209 | mjoubert | #review-12210 @pallen This changes add the files that got reverted and unshelved to the c...onsole log. This information is crucial for debugging purposes and allows steps later on to potentially change behaviour by using the console output e.g. do X when file Y is unshelved « |
10 years ago | View Review | |
12018 | mjoubert | #review-12019 @pallen Fix problem with sync to label Fix bug where jelly showed the vers...ion of a shelved file « |
10 years ago | View Review | |
11385 | mjoubert | #review-11386 @pallen Fix problem where if you have shelved files then you can't do a f...orced sync. You need to revert first. Also fixed a major bottleneck in the cleaning up of reconciled files. Cleaning code has going down from 5 minutes to 5s « |
10 years ago | View Review | |
11159 | mjoubert | Notes around fixing unshelve problems when using a Edge server #review-11160 @pallen | 10 years ago | View Review | |
11122 | mjoubert |
Icon and jelly change #review-11123 @pallen |
10 years ago | View Review | |
11102 | mjoubert | Review files needs to be at the top of the change pages so developers can easily see what... their changes are. #review-11103 @pallen « |
10 years ago | View Review | |
11057 | mjoubert | #review-11058 @pallen | 10 years ago | View Review |
Adjust when notifications are sent to you about reviews that you're associated with (as an author, reviewer, project member or moderator).