Last modified: 2013-06-28 15:40:10 UTC
I updated extensions in the 1.22wmf8 branch with https://gerrit.wikimedia.org/r/#/c/70910/ and https://gerrit.wikimedia.org/r/#/c/70911/ . Each merge triggered a Jenkins run that ran doxygen and failed with Error: Change target reference is not a tag or a recognized branch. e.g. <https://integration.wikimedia.org/ci/job/mediawiki-core-doxygen-publish/1334/console> : 20:33:28 Started by user zuul-bot 20:33:28 Building on master in workspace /srv/ssd/jenkins/workspace/mediawiki-core-doxygen-publish 20:33:28 Checkout:mediawiki-core-doxygen-publish / /srv/ssd/jenkins/workspace/mediawiki-core-doxygen-publish - hudson.remoting.LocalChannel@2ed57967 20:33:28 Using strategy: Default 20:33:28 Last Built Revision: Revision 6ed00934eedae70c7e27a4ed067c0b34bf4d79fe (detached) 20:33:28 Fetching changes from 1 remote Git repository 20:33:28 Fetching upstream changes from origin 20:33:30 getCandidateRevisions(false,8d962c764fa32cc8df83d279f0356dc477ecde85,,,,remoteUrls=[/srv/ssd/zuul/git/mediawiki/core],buildsByBranchName={detached=Build #1333 of Revision 6ed00934eedae70c7e27a4ed067c0b34bf4d79fe (detached)},lastBuild=Build #1333 of Revision 6ed00934eedae70c7e27a4ed067c0b34bf4d79fe (detached)]) considering branches to build 20:33:30 Will build the detached SHA1 AnyObjectId[8d962c764fa32cc8df83d279f0356dc477ecde85] 20:33:30 Commencing build of Revision 8d962c764fa32cc8df83d279f0356dc477ecde85 (detached) 20:33:30 Checking out Revision 8d962c764fa32cc8df83d279f0356dc477ecde85 (detached) 20:33:30 Cleaning workspace 20:33:30 Resetting working tree 20:33:32 [mediawiki-core-doxygen-publish] $ /bin/bash -xe /tmp/hudson1775515615604598388.sh 20:33:32 + /var/lib/jenkins/tools/mwcore-docgen.sh 20:33:32 Error: Change target reference is not a tag or a recognized branch. 20:33:32 $ZUUL_REF: refs/zuul/wmf/1.22wmf8/Z1517a9a240c445249f08d51914912bd5 20:33:32 $GERRIT_BRANCH: wmf/1.22wmf8 20:33:32 Build step 'Execute shell' marked build as failure 20:33:32 Finished: FAILURE
The tools/mwcore-docgen.sh script, from integration/jenkins.git, would only build documentation for master or REL* branches: "$GERRIT_BRANCH" =~ ^(master|REL[0-9]+_[0-9]+)$ ]]; We can apply the same filter in Zuul configuration on a per job basis such as what has been done for beta-mediawiki-config-update.
https://gerrit.wikimedia.org/r/#/c/70990/ mw doc only triggered for master/release branches I have deployed it, that should fix the issue. We can close this bug after having verified the job is no more triggered, ie after someone merge a change in a wmf branch.
https://gerrit.wikimedia.org/r/#/c/71012/ made in wmf/1.22wmf9 did not trigger the doc generation :-)