-
Bug
-
Resolution: Done
-
Critical
-
None
-
2.6.0.Final
-
None
-
- Clone git repository for migration
- Run migration tool and migrate the whole git
- Import migrated project from your local to the Business Central
-
Workaround Exists
-
-
NEW
-
NEW
I tried to clone the migrated git repo to the Business central through the REST api. This option is not mentioned in migration documentation, but we can clone repo by endpoint <URL>/business-central/rest/spaces/newSpace/git/clone
Import of the project by this endpoint failed. I tried Import same project in UI to the other Space and project was imported and can be build.
Testing repo was used same as Jan used in PR-1671 (Implementaiton of the Pom migration tool) and can be get by this command:
git clone https://code.engineering.redhat.com/gerrit/bpms-assets-6.4.x.git
Here is curl from my REST client:
curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'Authorization: Basic YWRtaW5Vc2VyOmFkbWluVXNlcg==' -i http://localhost:8080/business-central/rest/spaces/newSpace/git/clone --data '{
"name" : "Evaluation",
"description" : null,
"gitURL" : "file:///home/jschwan/Eap/migrat-tool-test/kie-wb-common-cli-migration-tool-7.8.0-SNAPSHOT/bin/pomMigraitionFile/Evaluation.git"
}'
- clones
-
RHPAM-1082 Migrated project by pom migration tool can't be cloned into BC via REST clone
- Closed