Loading
Salesforce now sends email only from verified domains. Read More
Manage and Release Changes Easily and Collaboratively with DevOps...
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Review and Resolve Conflicts in Your Source Control

          Review and Resolve Conflicts in Your Source Control

          In cases where DevOps Center can’t combine work items or you choose not to combine, DevOps Center blocks the promotion. In this case, you manually edit the files directly in your source control to resolve the conflict in the affected branch.

          Required Editions

          Available in: Lightning Experience in Professional (API access required), Enterprise, Performance, Unlimited, and Developer Editions
          Available in: Government Cloud Plus as interoperable. Turning on DevOps Center in Government Cloud Plus orgs can send data outside the authorization boundary. Contact your Salesforce account executive for more details.
          Not available in: EU Operating Zone. EU Operating zone is a special paid offering that provides an enhanced level of data residency commitment. DevOps Center is supported in orgs in the EU that aren’t part of EU OZ, per standard product terms and conditions.
          User Permissions Needed
          To resolve merge conflict in source control: DevOps Center Deployment Manager

          These steps apply to GitHub. To resolve merge conflicts manually in Bitbucket, see Resolve merge conflicts.

          1. From the work item dropdown (on the stage or work item you’re promoting from), select View Change Request to go into GitHub to view the pull request and see the merge conflicts.

            Repeat these steps for all work items where the promotion failed.

            Pipeline Stages work item menu with View Change Request selected.
          2. In GitHub, click Resolve Conflicts.
            GitHub pull request that indicates that the branch has conflicts that must be resolved.

            In our example scenario, GitHub has identified one conflict (1) in one file, the Job Position Layout (2). If GitHub detects multiple conflicts in a file, you can use the Prev and Next links (3) to address each conflict one-by-one.

            Resolve conflict dialog in GitHub.

            The format of the conflict as shown in GitHub is:

            <<<<<<<<<< <branch 1 name>
            <code in branch 1>
            ==========
            <code in branch 2>
            >>>>>>>>>> <branch 2 name>
            In this example, the work item you attempted to promote (4) in branch WI-000006 is introducing a new field, while the CRM Integration branch doesn’t contain that new field. Also, the CRM Integration branch contains a field that the work item branch doesn’t contain (5), which was likely introduced by a different work item. In this case, you want to keep both these new fields, so you modify the file to eliminate the conflict.

            The Metadata API Developer Guide provides the schema for each metadata type to assist you with editing the files directly. In this case, we can look at “Layout” in the guide to view the schema for <layoutItems>.

            The resulting changes now look like this:

            <layoutItems>
            <behavior>Edit</behavior>
                   <field>Manager_Email__c</field>
            </layoutItems>
            <layoutItems>
            <behavior>Edit</behavior>
                   <field>Department__c</field>
            </layoutItems>
            
          3. At the top of the file, click Mark as Resolved.
          4. Continue until you resolve all conflicts in the listed files.
          5. Click Commit Merge, which saves your changes in the work item branch, W-000006.

            Notice that the conflicts are now resolved.

            GitHub pull request showing that the branch no longer contains any conflicts.
          6. Return to DevOps Center to promote the work item, which merges the branch with the branch in the next stage, in this case, Integration.
          7. In DevOps Center, promote the work items again.

            Alternatively, you can merge the change request in GitHub, then complete the promotion in DevOps Center or by using Salesforce CLI.

          After you resolve conflicts, your development environments are out of sync with downstream pipeline environments, so we recommend that you synchronize your dev environment.

           
          Loading
          Salesforce Help | Article