Uploaded image for project: 'AppFormer'
  1. AppFormer
  2. AF-1208

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • 2.6.0.Final
    • REST API
    • None
      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
    • Workaround Exists
    • Hide

      Import project in Business central UI

      Show
      Import project in Business central UI
    • 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"
      }'

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

                Created:
                Updated:
                Resolved: