Tagged git

Move Developer Cloud Service Project Between Environments in 15 Minutes

The idea here is how to move your CI/CD environment from one environment to another, for instance from presales to delivery.

Developer Cloud Service (DevCS) is an CI/CD environment included at no extra cost in your Pass subcription providing git repo, maven repo, wiki, build automation (Hudson/Jenkins), deployment automation, webhooks, issues-agile-scrum-camban dashboard, merges, …

What you need

  1. A destination cloud (Oracle) domain
  2. An Object Storage Container either in the origin domain or in the destination one


Origin DevCS (Export)

  1. Go to import/export in the origin DevCS
  2. Configure connection to an Storage Container either in origin or in destination and click [Connect] button
  3. Configure export job section after successful connection, click [Export] button and accept popup confirmation dialog
  4. After successful export you can see result in History tab section


This slideshow requires JavaScript.

Destination DevCS (Import)

  1. Create a new project in destination DevCS. This is very important step!!!!
  2. Select the new create project, go to the Export/Import section and create a connection as in the first step of the previous section
  3. Click [Connect]
  4. Configure Import Job
  5. Click [Import]
  6. Accept the confirmation dialog and double check you are importing in the correct project because all the information will be overwrite*

This slideshow requires JavaScript.

(*) Just in case you make a mistake and you import over an existing non empty project (as it happened to me), click on cancel as soon as posible!!, hopefully the import job will be rolled back and your original project wont be damaged.


Enjoy 😉




Push project to Oracle Developer Cloud Service

Create a new project in DevCS or add a new repo to an existing project and get the repository url (ssh or https), for example: https://javier.mugueta%40oracle.com@developer.em2.oraclecloud.com/developerxxxx/s/developerxxxxxx_prueba_5401/scm/prueba.git

Now in your local machine:

cd <yourworkingdirectory>
git init test
cd test
git remote add cloud https://javier.mugueta%40oracle.com@developer.em2.oraclecloud.com/developerxxxx/s/developerxxxxxx_prueba_5401/scm/prueba.git
git remote -v
git pull cloud master 
cp -r ../scfcot/* . (copy source code here)
git add *
git commit -m "ala!!"
git push cloud master

Enjoy 😉