User:Hashar/CI/docgen

Random content related to documentation generation with Jenkins. This is more of a drop box for Hashar ongoing work, will be refactored whenever something is actually working.

Using the repo ssh://integration-jenkins2.pmtpa.wmflabs:29418/mediawiki/core.git

on tag addition
Tag something:

git tag v0.0 69ce0db && git push --tags

Zuul receives the event:

2013-01-17 08:53:21,766 DEBUG gerrit.GerritWatcher: Received data from Gerrit event stream: {u'refUpdate': {u'newRev': u'69ce0dbb92f25cd51c1ec867fcdda32fb6f549da', u'oldRev': u'0000000000000000000000000000000000000000', u'project': u'mediawiki/core', u'refName': u'refs/tags/v0.0'}, u'submitter': {u'email': u'hashar@free.fr', u'name': u'Hashar'}, u'type': u'ref-updated'}

On tag deletion
Deleting the tag:

git push gerrit :refs/tags/v0.0

Zuul receives the event:

2013-01-17 09:05:10,912 DEBUG gerrit.GerritWatcher: Received data from Gerrit event stream: {u'refUpdate': {u'newRev': u'0000000000000000000000000000000000000000', u'oldRev': u'69ce0dbb92f25cd51c1ec867fcdda32fb6f549da', u'project': u'mediawiki/core', u'refName': u'refs/tags/v0.0'}, u'submitter': {u'email': u'hashar@free.fr', u'name': u'Hashar'}, u'type': u'ref-updated'}

Jenkins side
On a tag deletion:

2013-01-17 09:05:11,031 DEBUG zuul.JenkinsCallback: Received data from Jenkins: {u'build': {u'full_url': u'http://10.4.0.172:8080/ci/job/mediawiki-core-docgeneration/1/', u'number': 1, u'parameters': {u'GERRIT_NEWREV': u'0000000000000000000000000000000000000000', u'GERRIT_OLDREV': u'69ce0dbb92f25cd51c1ec867fcdda32fb6f549da', u'GERRIT_PROJECT': u'mediawiki/core', u'GERRIT_REFNAME': u'refs/tags/v0.0', u'UUID': u'a8b657c6f2644031b4d9a331a9a25f69', u'ZUUL_NEWREV': u'0000000000000000000000000000000000000000', u'ZUUL_OLDREV': u'69ce0dbb92f25cd51c1ec867fcdda32fb6f549da', u'ZUUL_PIPELINE': u'publish', u'ZUUL_PROJECT': u'mediawiki/core', u'ZUUL_REF': u'refs/tags/v0.0', u'ZUUL_REFNAME': u'refs/tags/v0.0', u'ZUUL_SHORT_NEWREV': u'0000000', u'ZUUL_UUID': u'a8b657c6f2644031b4d9a331a9a25f69'}, u'phase': u'STARTED', u'url': u'job/mediawiki-core-docgeneration/1/'}, u'name': u'mediawiki-core-docgeneration', u'url': u'job/mediawiki-core-docgeneration/'}

In the Jenkins interface, the build show up with:

Triggered by reference: refs/tags/v0.0 Old revision: 69ce0dbb92f25cd51c1ec867fcdda32fb6f549da New revision: 0000000000000000000000000000000000000000 Pipeline: publish

Jenkins console:

09:05:11 Started by user Zuul triggering system 09:05:11 Building in workspace /var/lib/jenkins/jobs/mediawiki-core-docgeneration/workspace 09:05:11 Checkout:workspace / /var/lib/jenkins/jobs/mediawiki-core-docgeneration/workspace - hudson.remoting.LocalChannel@17e34309 09:05:11 Using strategy: Default 09:05:11 Wiping out workspace first. 09:05:11 Cloning the remote Git repository 09:05:11 Cloning repository /var/lib/zuul/git/mediawiki/core 09:05:11 git --version 09:05:11 git version 1.7.9.5 09:05:11 Fetching upstream changes from /var/lib/zuul/git/mediawiki/core 09:05:11 No candidate revisions 09:05:11 ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job. 09:05:11 Finished: FAILURE