We will create the project programmatically
through Deveo REST APIs. But first, lets export
the Android open source project Git server
URL, Deveo plugin key, company key and your
account key, as well as the project name and
the Deveo URL as shell variables...
REMEMBER TO REPLACE THE EXAMPLE
KEYS, URLS ETC. WITH YOUR OWN
Now use the following curl command to create
a new Deveo project in Deveo:
Grab it from:
Since it would be tedious to copy-paste the
code snippet over and over for each repository
in the manifest.xml file, we created an XSL
template that can be used to read and create a
file containing one curl snippet for each
4. Clone the original
repositories from official
Android open source
Clone the repositories using --bare switch in
order to store the repositories within the
hierarchical structure in the local filesystem.
With the manifest repository, we would do as follows:
git remote add deveo
git push --mirror deveo
Get the template here:
To make this easier, we've used a similar
template based approach for going through all
To push repositories to Deveo, go to the
directory of the repository, add a new remote
to the repository pointing to the Deveo
repository URL, and finally, push the changes
using --mirror switch.
For example, With the manifest repository,
we would do as follows:
cd platform/manifest git remote add
ies/git/platfor m/manifest git push --
mirror deveo cd -
For this snippet to work we need to export
Deveo username and company name as
command line variables.
Like in the previous two steps, our XSL
template based approach takes care of the
heavy lifting and copy-pasting.
Get the XSL here:
Now you have all of the repositories pushed to
Deveo, you must test things out following the
official Android open source project
instructions, and using Deveo as the clone URL.
For example, run this repo command to
initialize a new client from your freshly created
repo init -u
How did you get on?
Let us know!
Tweet us @DeveoTeam