Search code examples
plasticscm

How to set up external merge tool?


Is it possible to configure plastic client to work with a mergetool without GUI (non interactive way)? I have an installation on Jenkins server (Ubuntu 16) to do continuous integration with plastic scm.

The issue is the pipeline should be able to resolve some merge conflicts: e.g. "one file modified by two contributors".


Solution

  • The mergetool bundled with Plastic has the following parameters (mergetool --help):

    -a|--automatic:

    Tries to resolve the merge automatically.

    --silent:

    If the merge can't be resolved automatically (requires the user interaction), the merge tool is shown. This option must be used combined with the --automatic option. When a merge can't be resolved automatically, this option causes the tool to return immediately with a non-zero exit code (no merge tool is shown). If the tool was able to solve the merge automatically, the program returns exit code 0.

    NOTE: You can also configure with Plastic any other custom external merge tool.