Skip to Content

Is it possible to access the git repository in another subaccount?

Hi everyone!

I think the question is pretty straight forward, so I'll try to explain as briefly as possible. We have a global SCP account with 4 subaccounts of different production stages (development, test, integration an production).

We use SAP Web IDE Full-Stack in 'dev' subaccount, where all the git repos of the HTML5 Applications are stored. Everything is fine there. Now, when we want to deploy, we need to do the rollout step-by-step meaning from dev --> test, from test --> intg and so on.

Let's say I developed a new feature in dev and deploy this as new version 1.1.1. In the git repo, a new Tag "1.1.1" is created:

Also, in the HTML5 Cockpit, the different versions can be seen and individually activated:

So this is all good. But now, I want to deploy this version to the next subaccount (so the next stage). There are a few ways that came to mind:

1) Deploy from Web IDE of dev to any other subaccount. This works just fine, but the problem is that if you want to deploy the same version 1.1.1, but e.g. one week later, the code most likely has changed so its not the same version anymore

2) Export the version deployed to the dev subaccount (.zip) and import that version to another subaccount with the same version number. This works, but you have to do quite a few steps manually (for many different apps to 3 subaccounts). Also this method is prone to error due to the manual procedure.

3) The method I am thinking and asking this question about: Can you somehow change the git remote path from subaccount e.g. 'test' to the same git repo that is in the subaccount e.g. 'dev'? Because I don't really need to develop in a separate git repo in the 'test' subaccount.

But for the deployment process, it would be so much more convenient to just have to klick the magic wand and activate the new version in 'test' subaccount using the git Tags that are created in the git of the 'dev' subaccount.

I hope I could describe the problem as clearly as possible. The TLDR is: "Can I change the git repo of an HTML5 application from subaccount A, using another git repo of the same application in subaccount B?".

Thanks in advance and kind regards,


git-tags.png (11.2 kB)
appversions.png (13.0 kB)
Add comment
10|10000 characters needed characters exceeded

3 Answers

  • Best Answer
    Posted on Apr 04, 2018 at 11:34 AM

    Dear Alexander,

    I would suggest you watch the OpenSAP Course Cloud-Native Operations with SAP Cloud Platform where especially in Week 3 you can learn about CTS+ which would be one option to "transport" the app between subaccounts or and in Week 4 which introduces into Continuous Delivery / Continuous Integration.

    Best regards

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 19, 2018 at 11:24 AM

    Hi Alexander

    I've used 2 mostly but I've also retrieved the git repository in SAP Web IDE in the other subaccounts - retrieved the code then deployed again but like you are saying it is fairly involved no matter which option you choose. The Export/Import option seems to be the easiest for me but yes you would have to do this to every sub-account however you would only be doing this once testing is completed, for instance, in that account so at least it is coordinated.

    Sound advice also from Gregor Wolf.


    Phil Cooley

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 24, 2019 at 02:00 PM

    Hi there!

    I think the use case that was described in the original post should be quite useful if it would be possible (subaccount A has the repos, subaccount B wants to use in Web IDE full-stack). I tried it the simple way with Cloning a repo in subaccount A from subaccount B, but no success.

    I don't see, why this simple and effective use case is prohibited by Web IDE/ SCP. Perhaps I am wrong, so please correct me. :-)

    Thanks, Markus

    Add comment
    10|10000 characters needed characters exceeded