Drools 6工作台能否推送到远程Git仓库?

4

我想配置Workbench以使用其他开发人员使用的git守护程序,这些人正在使用Eclipse插件。

我可以将存储库克隆到Workbench中,但它无法将更改推回该存储库。它似乎使用该克隆来设置自己的本地存储库。

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

3个回答

7
据我了解,KIE Workbench目前还没有将内容推送到远程仓库的功能。但是,您仍然可以实现自己的目标,即拥有一个上游存储库,而不是让所有使用KIE Workbench中git存储库的开发人员使用。您可以在现有的jbpm-playground存储库中进行测试。假设您已经在Github上创建了一个分支 -
    git@github.com:yourGithubUsername/jbpm-playground.git.  

假设您和开发人员希望主要从名为“devBranch”的分支的Github存储库中进行工作,但非开发人员希望主要在KIE Workbench上工作。

您可以通过以下方式管理Workbench的git存储库和上游存储库之间的关系:

  1. Initial setup

    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. Getting changes by your non-developers from the git repo in KIE Workbench into your Github repo:

    git pull git-in-kiewb master
    git push origin devBranch
    
  3. Getting changes by your developers from your Github repo into the git repo in KIE Workbench:

    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

0

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接