Skip to content

Conflicts between local & remote since migration to sf project deploy quick #2293

@jcarmignani

Description

@jcarmignani

Summary

sf project deploy quick command is often reporting a conflict between local and remote
sf project deploy quick --job-id $QUICK_DEPLOY_ID --target-org $CI_ENVIRONMENT_NAME --wait 60

It was not happening when using sfdx equivalent command
sfdx force:source:deploy --ignore-conflicts --wait 60 -q $QUICK_DEPLOY_ID -u $CI_ENVIRONMENT_NAME

I have tried to add the add the ignore conflicts flag as suggested but still the same
Error (1): There are changes in the org that conflict with the local changes you're trying to deploy. Try this: To overwrite the remote changes, rerun this command with the --ignore-conflicts flag. sf To overwrite the local changes, run the "sf project retrieve start" command with the --ignore-conflicts flag.

This workaround is not mentioned in the official documentation

Steps To Reproduce

Previous validate the deployment and then deploy using a Job ID

Expected result

Can override the conflicts

Actual result

Cannot override

System Information

Using a Gitlab runner running on Ubuntu

mkdir sfdx
CLIURL=https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx-linux-x64.tar.xz
wget -qO- $CLIURL | tar xJ -C sfdx --strip-components 1
export PATH=./sfdx/bin:$PATH

sfdx --version
sfdx-cli/7.208.10 linux-x64 node-v18.15.0

sfdx plugins --core
You acknowledge and agree that the CLI tool may collect usage information, user environment, and crash reports for the purposes of providing services or functions that are relevant to use of the CLI tool and product improvements.

@oclif/plugin-autocomplete 2.3.1 (core)
@oclif/plugin-commands 2.2.16 (core)
@oclif/plugin-help 5.2.10 (core)
@oclif/plugin-not-found 2.3.26 (core)
@oclif/plugin-plugins 3.1.5 (core)
@oclif/plugin-search 0.0.17 (core)
@oclif/plugin-update 3.1.21 (core)
@oclif/plugin-version 1.3.5 (core)
@oclif/plugin-warn-if-update-available 2.0.40 (core)
@oclif/plugin-which 2.2.22 (core)
apex 2.3.3 (core)
auth 2.8.4 (core)
community 2.3.3 (core)
custom-metadata 2.1.28 (core)
data 2.4.2 (core)
deploy-retrieve 1.13.3 (core)
info 2.6.24 (core)
limits 2.3.22 (core)
org 2.9.17 (core)
packaging 1.20.1 (core)
schema 2.3.15 (core)
settings 1.4.15 (core)
sfdx-cli 7.208.10 (core)
signups 1.4.22 (core)
source 2.10.19 (core)
telemetry 2.2.1 (core)
templates 55.5.0 (core)
trust 2.4.24 (core)
user 2.3.19 (core)

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    more information requiredIssue requires more information or a response from the customervalidatedVersion information for this issue has been validated

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions