Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-1082

Migrated project by pom migration tool can't be cloned into BC via REST clone

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 7.0.0.GA
    • 7.0.0.GA
    • Migration Tool
    • None
    • CR2
    • CR3
    • Workaround Exists
    • Hide

      Import project in Business central UI

      Show
      Import project in Business central UI
      1. Clone git repository for migration
      2. Run migration tool and migrate the whole git
      3. Import migrated project from your local to the Business Central

      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"
      }'

              trikkola Toni Rikkola
              jakubschwan Jakub Schwan
              Jakub Schwan Jakub Schwan
              Jakub Schwan Jakub Schwan
              Massimiliano Dessi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: