0

I am looking for version control repository in BitBucket like GitHub. I have found Nifi Git repository. But at my organization we have private account in BitBucket. My question is can I create version control repository with Apache Nifi-registry in bitbucket? There is a class (org.apache.nifi.registry.provider.flow.git.GitFlowPersistenceProvider) which is associated with Git in the providers.xml file in nifi-registry. For bitbucket which class should i use? any help, guidelines will be greatly appreciated. Thanks!

Dennis Jaheruddin
  • 21,208
  • 8
  • 66
  • 122
Marshal Tito
  • 37
  • 1
  • 8

1 Answers1

3

It shouldn't matter where the remote git repo is located, so it should work with BitBucket just like it does with GitHub. You would clone the repo from BitBucket to the server where NiFi Registry is running, and then configure providers.xml to use the local cloned repo, and enter credentials to enable pushing to remote.

It should work the same as how you would interact with the git repo from the command line. You add or modify files in the local repo, commit them, then push to remote. In this case, all these steps will be done by registry for you.

Bryan Bende
  • 18,320
  • 1
  • 28
  • 39
  • @ Bryan Bende , Would you please share the configuration of providers.xml file? I am having issue getting the access token which can automatically push the changes to bitbucket. Now i have ato manually execute the push command command to commit the changes with this"git push -u origin master" . How can I make it auto push? – Marshal Tito Feb 15 '19 at 17:02
  • 1
    I have never used BitBucket but I would assume you need to generate a token just like you do with github, I google'd BitBucket access token and found this - https://bitbucket.org/site/master/issues/10182/access-tokens-for-command-line-use – Bryan Bende Feb 15 '19 at 17:04