2009-01-31 6 views
4

Lorsque j'utilise le plugin Git pour Hudson, mon travail échoue toujours lorsque je récupère les dernières sources de mon dépôt git en ligne (git: //github.com/ithena/orm2dsl.git).Git plugin pour le problème de paiement Hudson

Le plugin git exécute d'abord avec succès git fetch. Ensuite, il essaie d'exécuter git checkout -f origin/, ce qui échoue comme indiqué ci-dessous. Est-ce un problème avec my git repository ou est-ce la commande de caisse qui n'a aucun sens?

commande Git whithout un ensemble de dérivation dans la configuration de travail:

git checkout -f origin/ 
git checkout: updating paths is incompatible with switching branches/forcing 
Did you intend to checkout 'origin/' which can not be resolved as commit? 

commande Git avec la branche fixé à maîtriser dans la configuration de travail:

git checkout -f origin/master 
git checkout: updating paths is incompatible with switching branches/forcing 
Did you intend to checkout 'origin/master' which can not be resolved as commit? 

sortie de la console Hudson:

started 
Checkout 
[workspace] $ git fetch 
Checking out origin/ 
[workspace] $ git checkout -f origin/ 
git checkout: updating paths is incompatible with switching branches/forcing 
Did you intend to checkout 'origin/' which can not be resolved as commit? 
FATAL: Error checking out origin/ 
java.lang.RuntimeException: Error checking out origin/ 
    at hudson.plugins.git.GitAPI.launch(GitAPI.java:101) 
    at hudson.plugins.git.GitAPI.checkout(GitAPI.java:94) 
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:90) 
    at hudson.model.AbstractProject.checkout(AbstractProject.java:693) 
    at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:266) 
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:239) 
    at hudson.model.Run.run(Run.java:842) 
    at hudson.model.Build.run(Build.java:88) 
    at hudson.model.ResourceController.execute(ResourceController.java:70) 
    at hudson.model.Executor.run(Executor.java:90) 

Hudson Environnement: Debian Etch, Sun JSDK 6, git 1.4.4.4, hudson dernier téléchargement stable

Répondre

3

Tout d'abord, votre version de Git est assez vieux. Je vous suggère de le mettre à jour avant de faire quoi que ce soit d'autre.

Deuxièmement, git checkout -f origin/ n'est pas une commande valide. Vous devez soit extraire une branche, soit extraire une validation (en spécifiant le hash de validation ou une balise) et en créer une nouvelle branche (en utilisant git checkout -b new-branch commit-hash). Voir le git-checkout man page pour plus de détails.

+0

La mise à jour de git vers la version 1.5.6 et la spécification explicite d'une branche ont fait l'affaire. – Ruben

Questions connexes