Skip to content

jenkinsci/puppet-jenkinstracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Puppet Jenkins tracking module

Jenkins has this concept of "artifact fingerprinting" where a build might say "archive foo.war as an artifact" and "keep fingerprints of my build artifacts".

In a continuous deployment/delivery case where a build artifact (say foo.war) might be passed from build to build in Jenkins, Jenkins will in fact track that file's progression through a pipeline. If one were to then deploy that file with Puppet, there would be no record of when/where that file is deployed, as it happens outside Jenkins.

The track resource basically generates data for a Puppet report containing the md5 of the tracked file, such that it can be reported back to Jenkins so Jenkins can display which files went to what machines, and when, for a complete build and delivery pipeline.

class foo {
    ... other puppet resources that produce foo.war ...

    track { '/var/lib/foo.war':
    }
}

In the above example, the track resource captues the fingerprint of /var/lib/foo.war (which presumably is produced by other puppet resources). Note that file resources are automatically tracked, so track is only necessary where a file is produced by unusual means, such as unzipping an archive in an exec resource, a file installed through package installation, etc.

See deployment notification plugin and puppet plugin for how these things work together.

This module is being considered for an inclusion into the puppet-jenkins module.

About

Puppet module to integrate with Jenkins Puppet plugin

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages