[JIRA] (JENKINS-59888) p4.run resolve results differs from console

5 views
Skip to first unread message

alex.volodko@gmail.com (JIRA)

unread,
Oct 22, 2019, 10:15:03 AM10/22/19
to jenkinsc...@googlegroups.com
Alex Volodko created an issue
 
Jenkins / Bug JENKINS-59888
p4.run resolve results differs from console
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: p4resolvepipeline.txt
Components: p4-plugin
Created: 2019-10-22 14:14
Environment: Jenkins: 2.190.1
Operating System: Windows 10 x64
p4-plugin: 1.10.5
p4 Server version: Rev. P4V/NTX64/2019.1/1815056
Labels: p4-plugin
Priority: Minor Minor
Reporter: Alex Volodko

I am trying to create a jenkins pipeline job, which will synchronized a P4 taskstream with the original branch. The setup of the pipeline is most likely not so important, but you can check it in the attached file.

During the execution I call

p4.run('integrate', '-t', '-Rbds', '-c', changeListToBeUsed, '-b', P4_BRANCH_MAPPING_NAME)

This steps integrate the changes correctly using the given branch mapping and specified change list.

Afterwards I try to resolve the conflicts automatically with

p4.run('resolve', '-am', '-Aactmdb', '-c', changeListToBeUsed)

Unfortunatly this call leave some files unresolved, but when I perform this operation via p4 client or command line, all files can be resolved.

The tests are done on the same change list (I have skipped the p4.run('resolve'...) step and executed it manually on the changelist created by jenkins).

I understand, that not every file can be resolved automatically, but the point is, that on the very same changelist p4 command line can resolve it, but p4 plugin not.

I do have a workaround to execute sh 'p4 resolve...' step instead, but in this case I have to deal with credentials manually and I would like to avoid it.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

kwirth@perforce.com (JIRA)

unread,
Oct 22, 2019, 11:15:02 AM10/22/19
to jenkinsc...@googlegroups.com
Karl Wirth commented on Bug JENKINS-59888
 
Re: p4.run resolve results differs from console

Hi Alex Volodko - Can you provide more information about the files that are unresolved. Please provide some example of the before and after file. If you would prefer to keep this information confidential please email them to sup...@perforce.com mentioning this job.

alex.volodko@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:58:03 AM10/22/19
to jenkinsc...@googlegroups.com

I cannot provide the files yet, since the integration was done manually in the mean time. I will monitor this situation and provide real examples as soon as it appear again.
The output of resolve command was

tampered with before resolve - edit or revert

This might be related to the older, but still open, bug JENKINS-53588

kwirth@perforce.com (JIRA)

unread,
Oct 25, 2019, 5:06:02 AM10/25/19
to jenkinsc...@googlegroups.com

Hi Alex,

Quite possible. If it happens again can you pay particular attention to the file type in Perforce and if it has a BOM. Also as soon as there's anything we can do to help, please let us know.

Reply all
Reply to author
Forward
0 new messages