diff --git a/move2kube/m2k.sw.yml b/move2kube/m2k.sw.yml index b3a00619..aa1053ec 100644 --- a/move2kube/m2k.sw.yml +++ b/move2kube/m2k.sw.yml @@ -43,7 +43,7 @@ states: arguments: workspace-id: ".workspaceId" project-id: ".projectId" - remote-source: "\"git+ssh://\" + .repositoryURL + \"@\" + .sourceBranch" + remote-source: "\"git+\" + (.repositoryURL|sub(\"http(s)://?\";\"ssh://\")) + \"@\" + .sourceBranch" transition: GetPlanning - name: GetPlanning type: operation @@ -104,7 +104,7 @@ states: - name: SaveTransformationOutput type: inject data: - gitRepo: '"ssh://" + .repositoryURL' + gitRepo: (.repositoryURL|sub(\"http(s)?://\";\"ssh://\")) branch: .targetBranch token: .token workspaceId: .workspaceId diff --git a/move2kube/schemas/input.json b/move2kube/schemas/input.json index 3604e046..bceb7af3 100644 --- a/move2kube/schemas/input.json +++ b/move2kube/schemas/input.json @@ -9,7 +9,7 @@ "description": "the git repository URL to be used", "type": "string", "examples": [ - "bitbucket.org/gfarache31/m2k-test" + "https://bitbucket.org/gfarache31/m2k-test" ] }, "sourceBranch": {