Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 07-27-2021 10:55 PM - edited 07-28-2021 04:04 AM
Hello Experts,
I have configured Git as FlowPersisteceProvider for nifi registry.
Tested with test repo and worked fine, but now pointed to my company repo and getting error in push/commit.
The error is due to the policy is set in my org git repo, it accepts push/commit from the accout with email as *@myorg.com only.
But Even though I configured my credentials (user & PAT) which belongs to my org for Git access from registry, NiFi registry pushes the code to Git with email as "nifiregistry@<hostname>".
As its org level git repo ops team cant change this policy, so is there any way I can override this default "nifiregistry@<hostname>" to "[email protected]" so that git push will not be rejected ?
This is how nifi reg is pushing and comitting, Authored and Committed Identity should be changed from default
Tried this : https://docs.cloudera.com/HDPDocuments/HDF3/HDF-3.2.0/administering-nifi-registry/content/git-user-c...
But did not solve
Error in registry log :
Caused by: org.eclipse.jgit.errors.TransportException: https://o9git.visualstudio.com/CoreDev/_git/nifi-registry-dev: error occurred during unpacking on the remote end: error VS403702: The push was rejected because one or more commits contain author email 'nifiregistry@nifi-test-poc.*****.com' which does not match the policy-specified patterns.
at org.eclipse.jgit.transport.BasePackPushConnection.readStatusReport(BasePackPushConnection.java:382)
at org.eclipse.jgit.transport.BasePackPushConnection.doPush(BasePackPushConnection.java:222)
at org.eclipse.jgit.transport.TransportHttp$SmartHttpPushConnection.doPush(TransportHttp.java:1112)
at org.eclipse.jgit.transport.BasePackPushConnection.push(BasePackPushConnection.java:170)
at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:172)
at org.eclipse.jgit.transport.Transport.push(Transport.java:1344)
at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:169)
... 8 common frames omitted
Thanks
Mahendra
Created 07-28-2021 04:42 AM
Update :
Below commands worked :
git config user.name "myemailuser"
git config user.email "[email protected]"
Need to run this inside the cloned repo folder and then start nifi registry.
Created 07-28-2021 04:42 AM
Update :
Below commands worked :
git config user.name "myemailuser"
git config user.email "[email protected]"
Need to run this inside the cloned repo folder and then start nifi registry.