Hello
I am trying to use continous integration tool chain of git, gerrit,
zuul,jenkins, gearman.

i have ci vm running jenkins-server with 3 jobs (pep8,unittest,publish-doc)
and a slave running under jenkins-slave vm

The problem i am facing is following :

-not able to understand why don't repository on the jenkins-slave have all
the commits of zuul merged repository on the ci for the same project
(example)
-why the last commit 40d5a537d3fd12c in zuul repository is in detached head
causing publish-doc job to fail.

steps executed for example project :
1- created empty project on gerrit
2- clone the project localy, updated the project source and then push
first_project_commit
3- pep8 jobs success
4- did code review and it triggered unittest job, which is success
5- once unittest is success it triggered publish-doc
now in the same project i updated the changes and commited pep8_failed2
6- pep8 is success, did code review again, which triggerd unittest(Success)
7- but publish doc failed with error

+ git reset --hard
HEAD is now at d31f33e first_project_commit
+ git clean -x -f -d -q
+ echo master
+ grep -q '^refs/tags/'
+ '[' -z 40d5a537d3fd12c080906a3a8fa2cd9dfc7368d7 ']'
+ git checkout 40d5a537d3fd12c080906a3a8fa2cd9dfc7368d7
fatal: reference is not a tree: 40d5a537d3fd12c080906a3a8fa2cd9dfc7368d7
Build step 'Execute shell' marked build as failure
Finished: FAILURE

It make sense that 40d5a537d3fd12c080906a3a8fa2cd9dfc7368d7 is not in the
list of commit on jenkins-slave vm

The last commit 40d5a537d in the zuul repository is in the detached head
state. for which when we do the git remote update on JS will only fetch
commits in the HEADS state i.e origin/master.

zuul repository
/git/example

#git log
commit 40d5a537d3fd12c080906a3a8fa2cd9dfc7368d7
Author: corvit <fay...@corvit.com>
Date:   Wed Jul 8 05:21:58 2015 +0000

    pep8_failed2

    Change-Id: I0c17553bc69b5d38eb2b0d328ad7d776044f4266

commit d31f33e3da5965db5f9758bc79d45aee8d20aab1
Author: corvit <fay...@corvit.lab>
Date:   Wed Jul 8 05:11:26 2015 +0000

    first_project_commit

    Change-Id: Ia94f186976d651969b7d268bb5c6de2238abf437

commit bad0224a3e6b1565207918d1d091f052432d756e
Author: fayyaz <fay...@corvit.lab>
Date:   Wed Jul 8 05:11:25 2015 +0000

    Initial empty repository
corvit@ci:/git/example$ git branch
* (no branch)
  master
============

jenkin-slave repository
/workspace/example-publish-doc
#git remote updat
Fetching origin

#git log

commit d31f33e3da5965db5f9758bc79d45aee8d20aab1
Author: corvit <fay...@corvit.lab>
Date:   Wed Jul 8 05:11:26 2015 +0000

    first_project_commit

    Change-Id: Ia94f186976d651969b7d268bb5c6de2238abf437

commit bad0224a3e6b1565207918d1d091f052432d756e
Author: fayyaz <fay...@corvit.lab>
Date:   Wed Jul 8 05:11:25 2015 +0000

    Initial empty repository

#git branch
* (no branch)

#git status
Not currently on any branch.
nothing to commit, working directory clean


==============




Best Regards,

Fayyaz Ur Rehman,
_______________________________________________
OpenStack-Infra mailing list
OpenStack-Infra@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra

Reply via email to