Bonjour bonjour,

Je rencontre un problème sur Hudson et je ne trouve pas de solutions sur Internet si ce n'est que je vois que je ne suis pas le seul à avoir cette erreur...

Avant tout, voici mon build.xml

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<project name="CURRENT_RELEASE" default="build">

<target name="checkout_tests">
<exec executable="svn" dir="projectes_test">
<arg line="switch http://code.aaa.com/repos/branches/RELEASE_${RELEASE} --username XXX --password YYY" />
</exec>
</target>

<target name="checkout_codigo">
<exec executable="svn" dir="projectes">
<arg line="switch http://code.aaa.com/repos/tests/branches/RELEASE_${RELEASE} --username XXX --password YYY" />
</exec>
</target>

<target name="phpunit">
<exec dir="${basedir}"
     executable="phpunit"
     failonerror="true">
<arg line="--log-junit      svn/_build/logs/junit.xml
       --bootstrap projectes_test/tests/unit/bootstrap.php
       projectes_test/tests/unit/classes/AllTests.php"/>
</exec>
</target>

<target name="checkout"
     depends="checkout_tests,checkout_codigo"/>
<target name="build"
     depends="checkout,phpunit"/>

</project>
La plupart du temps il n'y a pas de problème, le build s'exécute bien et j'obtiens un BUILD SUCCESSFUL :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[workspace] $ ant -file build.xml -DBUILD=build -DRELEASE=1031 checkout phpunit
Buildfile: build.xml

checkout_tests:
     [exec] svn: Repository UUID '0eb2f07b-a61e-4f6e-a8bc-19a13bed7715' doesn't match expected UUID 'add7bc4f-a87b-4111-a9dd-885bcd4ff551'
     [exec] Result: 1

checkout_codigo:
     [exec] svn: Repository UUID 'add7bc4f-a87b-4111-a9dd-885bcd4ff551' doesn't match expected UUID '0eb2f07b-a61e-4f6e-a8bc-19a13bed7715'
     [exec] Result: 1

checkout:

phpunit:
     [exec] PHPUnit 3.4.13 by Sebastian Bergmann.
     [exec] 
     [exec] ........................
     [exec] 
     [exec] Time: 6 seconds, Memory: 13.25Mb
     [exec] 
     [exec] OK (24 tests, 24 assertions)

BUILD SUCCESSFUL
Total time: 9 seconds
Mais de temps en temps (sans rien changer) phpunit ne se lance pas et j'obtiens :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[workspace] $ ant -file build.xml -DBUILD=build -DRELEASE=1031 checkout phpunit
Buildfile: build.xml

checkout_tests:
     [exec] svn: Repository UUID '0eb2f07b-a61e-4f6e-a8bc-19a13bed7715' doesn't match expected UUID 'add7bc4f-a87b-4111-a9dd-885bcd4ff551'
     [exec] Result: 1

checkout_codigo:
     [exec] svn: Repository UUID 'add7bc4f-a87b-4111-a9dd-885bcd4ff551' doesn't match expected UUID '0eb2f07b-a61e-4f6e-a8bc-19a13bed7715'
     [exec] Result: 1

checkout:

phpunit:

BUILD FAILED
/opt/hudson/.hudson/jobs/CURRENT_RELEASE/workspace/build.xml:18: exec returned: 255
la ligne 18 étant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
<exec dir="${basedir}" executable="phpunit" failonerror="true">
Vous avez déjà rencontré ce genre de problème ?
Ça me paraît quand même bien bizarre cette histoire parce que je vois pas ce qui peut faire qu'un coup il exécute phpunit et qu'un coup il veut pas...

Si quelqu'un peut m'éclairer ça serait trop sympa

Merci beaucoup !