Last modified: 2012-10-19 15:48:29 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40260, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38260 - [upstream] Jenkins can't fingerprint .git/FETCH_HEAD
[upstream] Jenkins can't fingerprint .git/FETCH_HEAD
Status: RESOLVED WONTFIX
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
unspecified
All All
: Lowest normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: upstream
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-09 10:35 UTC by Antoine "hashar" Musso (WMF)
Modified: 2012-10-19 15:48 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Antoine "hashar" Musso (WMF) 2012-07-09 10:35:35 UTC
Summary:
The fingerprint plugin is no more able to take fingerprint of a "hidden" file such as .git/FETCH_HEAD.
I am assuming it is an issue in Jenkins core, though the plugin might not have reflected a change to how files are detected in core.
How to reproduce:
Install the finger print plugin. Create a simple job. In the workspace directory create a directory '.git' (note the leading dot), create a FETCH_HEAD file in it with some random content.
Add a build step 'fingerprint' files.
In the field "Files to fingerprint" fill in '.git/FETCH_HEAD'.
A red error message is shown:
'.git/FETCH_HEAD' doesn't match anything: even '.git' doesn't exist
The help message give a link to "the workspace", that file browser does show a .git directory containing a FETCH_HEAD file.
Reason:
I have a "child" job fetching several git repositories. I would like it to just fingerprints any FETCH_HEAD files (**/.git/FETCH_HEAD) to have a quick and fast way to track jobs dependencies.
Misc informations:
I am pretty sure it used to work in version 1.431 and was broken with 1.458. Still broken with 1.473.
Comment 1 Antoine "hashar" Musso (WMF) 2012-07-09 10:35:56 UTC
upstream issue https://issues.jenkins-ci.org/browse/JENKINS-14355
Comment 2 Antoine "hashar" Musso (WMF) 2012-07-12 16:53:55 UTC
I did investigate the issue a bit more today and reported upstream. Also sent an email to jenkins dev mailing list.
Comment 3 Antoine "hashar" Musso (WMF) 2012-07-13 13:31:37 UTC
The workaround is to use the jenkins-fingerprint macro or take-fingerprints target introduced with https://gerrit.wikimedia.org/r/15596.  That is a workaround to copy the - hidden to jenkins - files in a fingerprints directory.

Marking lower priority since we have a workaround now.
Comment 4 Antoine "hashar" Musso (WMF) 2012-08-27 15:16:47 UTC
Lowering priority. We have a work around in the ant build script (see the jenkins-fingprint macro).
Comment 5 Antoine "hashar" Musso (WMF) 2012-08-27 15:17:02 UTC
Moving bug back in the pool.
Comment 6 Antoine "hashar" Musso (WMF) 2012-10-19 15:48:29 UTC
I got some kind of workaround as stated in comment 4.  Once Zuul is deployed we will no more have to take fingerprints so we are not going to push upstream to fix that Jenkins issue.

Marking wontfix.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links