Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jenkins, what does fingerprint artifacts means?

Tags:

My understanding

As far as I understood artifacts up to now, is that it was used to know if my project refers to an unfinished build task's artifacts.

Problem

I tried reading more (on jenkins site too) but I'm not sure I understand so easily what they do now. I know that when I promote a build, I can fingerprint artifacts. What does it mean then?

like image 321
Cher Avatar asked Jun 22 '15 16:06

Cher


People also ask

WHAT IS fingerprint in Jenkins?

The fingerprint of a file is simply an MD5 checksum. Jenkins maintains a database of MD5 checksums, and for each MD5 checksum, Jenkins records which builds of which projects used it. This database is updated every time a build runs and files are fingerprinted.

What does artifacts mean in Jenkins?

The definition of an artifact from Jenkins themselves is: an artifact is an immutable file, generated during a Build or Pipeline run in Jenkins. These artifacts are then archived onto the Jenkins Controller for later use.

Where are fingerprints stored in Jenkins?

Fingerprint is location under folder $JENKINS_HOME/fingerprints directory on the jenkins master. if the file/artifact is used in more than one build, then we can see the usage under the fingerprint xml file , this file shows all the jobs on which the artifact is used.

Where are the artifacts in Jenkins?

By default, Jenkins archives artifacts generated by the build. These artifacts are stored in the JENKINS_HOME directory with all other elements such as job configuration files. There is no separation between infrastructure elements, project elements and outputs.


1 Answers

  • Artifacts - anything produced during the build process.
  • Fingerprinting artifacts - recording the MD5 checksum of selected artifacts.

You can then use the MD5 checksum to track a particular artifact back to the build it came from.

like image 174
Slav Avatar answered Sep 23 '22 08:09

Slav