I created a Bitbucket plugin that is forking a repository and automatically creating a develop branch.
This is working fine so far.
I’m now trying to update the pom.xml file at the root of my repo.
In the rest API of my plugin i’m trying to use the gitExtendedCommandFactory.editFile function but i can’t figure how to get the pom that is actually in the repo to perfom the update.(I need to modify the artifactId and the groupId)
Builder pom = new Builder(develop, "pom.xml"); gitExtendedCommandFactory.editFile(targetRepository, pom.build());
Is it feasible and does anyone has any example ?
PS:I’d like to do it all in the plugin and not use any shell so it can be triggered by end users while they browse repositories in Bitbucket server.