如何在Jenkins作业中使用git difftool?

时间:2018-07-17 09:06:34

标签: git jenkins jenkins-plugins jenkins-pipeline difftool

我正在使用git来管理配置修订。

我想在jenkins作业期间运行difftool,以允许用户确定作业期间哪条线正确。有没有插件可以做到这一点?

示例:(文件已在工作区中更改,用户应该可以根据需要进行修改)

chen@DEV-Chen:/tmp/configuration_repo$ git status 
On branch env.env68
Your branch is up-to-date with 'origin/env.env68'.
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working 
directory)

    modified:   env.env68/backend.properties

no changes added to commit (use "git add" and/or "git commit -a")
chen@DEV-Chen:/tmp/configuration_repo$ git difftool -y .

meld running using git difftool

0 个答案:

没有答案