My Job is triggered on any files changes
Perforce Repository setup is identical for Retrieving and Publish Assets
The issue is along the following scenario:
1) file.txt content changed from 123 to 345
2) file.txt is submitted to the repository
3) Jenkins job is triggered due to this change
4) while jenkins jobs still running and before the "Perforce:Publish assets step" file.txt content changed again from 345 to 678 and submitted to the repository
5) Perforce:Publish assets step override the most updated version of the file to the previous one.
meaning file.txt is submitted back to the repository with content "345".