Revision 948121ee
b/README.ci | ||
---|---|---|
1 | 1 |
Continuous integration with Jenkins |
2 |
----------------------------------- |
|
2 |
=================================== |
|
3 |
|
|
4 |
Preparing a GIT mirror |
|
5 |
---------------------- |
|
6 |
|
|
7 |
Jenkins cannot currently work with Git over encrypted HTTP. To solve |
|
8 |
this problem we currently mirror the central Git repository locally |
|
9 |
on the jenkins installation machine. To setup such a mirror do the |
|
10 |
following: |
|
11 |
|
|
12 |
-edit .netrc |
|
13 |
|
|
14 |
machine code.grnet.gr |
|
15 |
login accountname |
|
16 |
password accountpasswd |
|
17 |
|
|
18 |
-Create the mirror |
|
19 |
|
|
20 |
git clone --mirror https://code.grnet.gr/git/synnefo synnefo |
|
21 |
|
|
22 |
-Setup cron to pull from the mirror periodically. Ideally, Git mirror updates |
|
23 |
should run just before Jenkins jobs check the mirror for changes. |
|
24 |
|
|
25 |
4,14,24,34,44,54 * * * * cd /path/to/mirror && git fetch && git remote prune origin |
|
26 |
|
|
27 |
Jenkins setup |
|
28 |
------------- |
|
3 | 29 |
|
4 | 30 |
The following instructions will setup Jenkins to run synnefo tests with |
5 | 31 |
the SQLite database. To run the tests on MySQL and/or Postgres, step 5 |
6 | 32 |
must be replicated. Also, the correct configuration file must be copied |
7 |
(line 5 of the build script).
|
|
33 |
(line 6 of the build script).
|
|
8 | 34 |
|
9 | 35 |
1. Install and start Jenkins. On Debian Squeeze: |
10 | 36 |
|
Also available in: Unified diff