【问题标题】:Can Drools 6 Workbench push to a remote git repository?Drools 6 Workbench 可以推送到远程 git 存储库吗?
【发布时间】:2014-11-05 21:48:35
【问题描述】:

我想将 Workbench 设置为使用由使用 Eclipse 插件的其他开发人员共享的 git 守护程序。

我可以将存储库克隆到 Workbench,但它不会将更改推送回该存储库。它似乎使用该克隆来建立自己的本地存储库。

这是 Workbench 的限制吗?如果我们想在混合环境中使用 Workbench 和 Eclipse 插件,是否必须使用 Workbench 作为 git 守护进程?

【问题讨论】:

    标签: git drools jbpm workbench


    【解决方案1】:

    据我所知,KIE Workbench 中还没有推送到远程仓库的功能。但是,您仍然可以实现拥有上游存储库的目标,而不是让所有开发人员在 KIE Workbench 中使用 git 存储库。您可以使用现有的 jbpm-playground 存储库对其进行测试。假设您已经在 Github 上创建了一个分支 -

        git@github.com:yourGithubUsername/jbpm-playground.git.  
    

    并且您和您的开发人员希望主要在名为“devBranch”的分支上的分叉 Github 存储库中工作,但非开发人员希望主要在 KIE 工作台上工作。

    您可以像这样管理 Workbench 的 git 存储库和上游存储库之间的关系:

    1. 初始设置

      git clone git@github.com:yourGithubUsername/jbpm-playground.git
      cd jbpm-playground
      git branch devBranch
      git checkout devBranch
      git push origin devBranch
      git remote add git-in-kiewb ssh://krisv@your-jbpm-server:8001/jbpm-playground
      
    2. 将您的非开发人员从 KIE Workbench 中的 git 存储库中获取更改到您的 Github 存储库中:

      git pull git-in-kiewb master
      git push origin devBranch
      
    3. 将您的开发人员从您的 Github 存储库中获取更改到 KIE Workbench 中的 git 存储库:

      git pull origin devBranch
      git push git-in-kiewb master
      

    【讨论】:

      【解决方案2】:

      用于使用主分支

      git clone git@github.com:tenkyu/drools-flow-order.git
      cd drools-flow-order
      git remote add git-in-kiewb ssh://admin@0.0.0.0:8002/saglik
      
      ->github
      git pull git-in-kiewb master
      git push origin master
      
      ->local
      git pull origin master
      git push git-in-kiewb master
      

      【讨论】:

        【解决方案3】:

        您可以按照此处的说明使用 git 挂钩来执行此操作:

        https://access.redhat.com/documentation/en-us/red_hat_jboss_bpm_suite/6.4/html/administration_and_configuration_guide/chap_repository_hooks

        基本上在 jboss 上的 git repo 上创建,并在 post-commit 上添加一个钩子,可以执行 git push origin。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2010-12-05
          • 2018-06-24
          • 2010-10-25
          相关资源
          最近更新 更多