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?