In my jenkins job after build and test I do npm package version update and do publish using p4publish. All this process takes 5-7 minutes. But p4publish reverts the changes published during this 5-7 minutes and publishes the version upgrades.
{{p4publish(
credential: 'jenkins',
publish: submit(
delete: false,
modtime: false,
onlyOnSuccess: false,
reopen: false,
description: 'update package version',
),
workspace: streamSpec(
pinHost: false,
charset: 'utf8',
format: 'jenkins-${NODE_NAME}${JOB_NAME}-agent${EXECUTOR_NUMBER}',
streamName: '//project/mystream'
)
)}}
Is there a way I can avoid reverting the changes and possibly sync the changes and resolve any conflicts before publishing?
[JENKINS-65048] Option to resolve text files as part of p4publish step
Priority | Original: Critical [ 2 ] | New: Blocker [ 1 ] |
Issue Type | Original: Bug [ 1 ] | New: New Feature [ 2 ] |
Summary | Original: p4publish reverts changes submitted while job is running | New: Option to resolve text files as part of p4publish step |
Labels | New: P4_A P4_VERIFY |
Hi ramganesht - Are you saying that P4Publish overwrites anything submitted in the past 7 minutes by other jobs or that is is reveryting some of the work that was done in this job?