Drools Kie-Workbench 7.3.0 Access Clone Remote GIT with credentials

1,061 views
Skip to first unread message

rodrig...@gmail.com

unread,
Oct 7, 2017, 4:39:14 PM10/7/17
to Drools Setup
The latest version of Workbench is not showing the entries for username and password for a remote repository that is protected.
The is causing the authentication to fail after clicking the next button (attached please see the screenshot). The earlier versions of work bench such 6.5.0, 6.4.0 etc used to show the entries for username and password for the remote repository. Just wondering how to clone a remote git or bitbucket repo that is password protected?
RepoClone.PNG

Abhijit Humbe

unread,
Oct 8, 2017, 12:00:09 AM10/8/17
to drools...@googlegroups.com
yes this looks like an bug. I will open jira for this issue. For now you can clone repository into filesystem from terminal and then clone into kie-workbench using 'file' protocol.

Abhijit Humbe

On Sun, Oct 8, 2017 at 2:09 AM, <rodrig...@gmail.com> wrote:
The latest version of Workbench is not showing the entries for username and password for a remote repository that is protected.
The is causing the authentication to fail after clicking the next button (attached please see the screenshot). The earlier versions of work bench such 6.5.0, 6.4.0 etc used to show the entries for username and password for the remote repository. Just wondering how to clone a remote git or bitbucket repo that is password protected?

--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/8baeb66a-9a50-4d91-ab5e-290efd359894%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

rodrig...@gmail.com

unread,
Oct 8, 2017, 11:35:00 AM10/8/17
to Drools Setup
Thanks! Abhijit

I was able to clone using file protocol as shown in the screenshot.

I would imagine that I would be able to push the changes to the remote repository using the post commit hooks as you explained in https://groups.google.com/forum/#!topic/drools-usage/ZMRk-4jf9jA.

Rodrigo


On Sunday, October 8, 2017 at 12:00:09 AM UTC-4, Abhijit Humbe wrote:
yes this looks like an bug. I will open jira for this issue. For now you can clone repository into filesystem from terminal and then clone into kie-workbench using 'file' protocol.

Abhijit Humbe

On Sun, Oct 8, 2017 at 2:09 AM, <rodrig...@gmail.com> wrote:
The latest version of Workbench is not showing the entries for username and password for a remote repository that is protected.
The is causing the authentication to fail after clicking the next button (attached please see the screenshot). The earlier versions of work bench such 6.5.0, 6.4.0 etc used to show the entries for username and password for the remote repository. Just wondering how to clone a remote git or bitbucket repo that is password protected?

--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
filegitclone.png

rodrig...@gmail.com

unread,
Oct 12, 2017, 10:40:17 AM10/12/17
to Drools Setup
Abhijit

Though I could import the project using the file cloning option (after the cloning first into a local file system from a remote repository), I could not get the modifications pushed into the remote git repository. In previous releases (6.5, 6.4, 6.3 etc), I could go to the git repository (e.g, ../.niogit/myproj.git)) and push the changes using 'git push' command. Having the project cloned using the file protocol, it would mainly look for the local file repository from which the project is cloned as opposed to pushing to remote. I have tried various various options to modify the config file in the file to point to remote git server and I could not get it working. 
What is the best workaround to get these changes to pushed to remote git/bitbucket repo?

 Thanks for opening a JIRA issue and I really wish that the feature of cloning remote repo with credentials working in the latest version.

rodrig...@gmail.com

unread,
Oct 15, 2017, 8:01:22 AM10/15/17
to Drools Setup
I am wondering if the JIRA has been created. 
I am trying  to find the JIRA that relates to this issue at https://issues.jboss.org/projects/DROOLS/issues/DROOLS-1763?filter=addedrecently.
Is this the right one to see the recent issues? 

Abhijit Humbe

unread,
Oct 15, 2017, 10:30:00 PM10/15/17
to drools...@googlegroups.com
Try to add remote git repository using below command:
 git remote add origin ssh://UserName@host/repositoryName

Here is the jira for this: https://issues.jboss.org/browse/JBPM-6468



Abhijit Humbe

To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup+unsubscribe@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

Alberto Flores

unread,
Oct 28, 2017, 1:45:19 PM10/28/17
to Drools Setup
Very interested in the progress of this issue. Are there any workaround to how to work with remote git repos and kie projects? I'm looking for ways in which we can do a "Continuous Delivery" pipeline and "backup" strategies for our Kie installation and this was part of our discussion. What are others doing to back up your Kie workbench from prod?

Abhijit Humbe

rodrig...@gmail.com

unread,
Jan 28, 2018, 6:25:08 PM1/28/18
to Drools Setup
I agree with Alberto that this functionality is important for 'Continuous Delivery' pipeline.

The workaround suggested here is not a really provide the functionality it used to support until 6.x version. It is basically broken functionality and it is important to get this working for its use in Enterprise environments where the remote repositories are protected by password. 

Though cloning to local file system using 'git clone' first and importing to Workbench would work, I do not think it is possible to get the changes back to remote repository (i.e., even with the manual steps) which is not good for automation.

When I tried adding the remote repository to the imported project from local file system, I see a message that 'fatal: remote origin already exists'

git remote add origin ssh://UserName@host/repositoryName

When I try to run 'git push', it fails with a message 'fatal: Could not read from remote repository.

If you think there is a real workaround (even if it involves manual steps), please provide all the steps to get the modified changes back to remote repository (i.e, not to local file system)
Reply all
Reply to author
Forward
Message has been deleted
0 new messages