'Jenkins Pipeline - using P4Publish with submit operation never ends

I'm a little bit stuck and Jenkins P4 plugin documentation is minimal at best.

I have a Jenkins Pipeline that do a P4publish + Submit operation as it last stage. But the problem is that the submit operation never ends, even after many hours waiting. The changelist is accessible in p4v and can be submitted without errors, but the jenkins task will never ends.

Any ideas?

here is the pipeline code (generated from jenkins pipeline syntax helper):

echo "Publishing Stable Engine..."

p4publish credential: 'illogika', publish: submit( delete: false, description: 'Submitted by Jenkins. Build: ${BUILD_TAG}', modtime: false, onlyOnSuccess: false, paths: '', purge: '', reopen: false), workspace: manualSpec( charset: 'none', cleanup: false, name: 'jenkins-${NODE_NAME}-${JOB_NAME}-publish', pinHost: false, spec: clientSpec( allwrite: true, backup: true, changeView: '', clobber: true, compress: false, line: 'LOCAL', locked: false, modtime: false, rmdir: false, serverID: '', streamName: '', type: 'WRITABLE', view: '''//ep1tome/AQPPipeline/UE4-AQP/... //jenkins-${NODE_NAME}-${JOB_NAME}-publish/AQPPipeline/UE4-AQP/... -//ep1tome/AQPPipeline/UE4-AQP/.../.pdb //jenkins-${NODE_NAME}-${JOB_NAME}-publish/AQPPipeline/UE4-AQP/.../.pdb -//ep1tome/AQPPipeline/UE4-AQP/Engine/Programs/AutomationTool/Saved/... //jenkins-${NODE_NAME}-${JOB_NAME}-publish/AQPPipeline/UE4-AQP/Engine/Programs/AutomationTool/Saved/... //ep1tome/AQPPipeline/UE4-AQP/Engine/Binaries/.../.pdb //jenkins-${NODE_NAME}-${JOB_NAME}-publish/AQPPipeline/UE4-AQP/Engine/Binaries/.../.pdb //ep1tome/AQPPipeline/UE4-AQP/Engine/Intermediate/Build/BuildRules/.pdb //jenkins-${NODE_NAME}-${JOB_NAME}-publish/AQPPipeline/UE4-AQP/Engine/Intermediate/Build/BuildRules/.pdb //ep1tome/AQPPipeline/UE4-AQP/Engine/Source/Programs/.../.pdb //jenkins-${NODE_NAME}-${JOB_NAME}-publish/AQPPipeline/UE4-AQP/Engine/Source/Programs/.../.pdb //ep1tome/AQPPipeline/UE4-AQP/Engine/Platforms/.../.pdb //jenkins-${NODE_NAME}-${JOB_NAME}-publish/AQPPipeline/UE4-AQP/Engine/Platforms/.../.pdb'''))

jenkins logs capture

Thanks



Solution 1:[1]

So I managed to get around this problem by creating many smaller submits and keeping around 5k-7k files per submit. (not sure if its the amount of files or the size)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 memleak