You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to check the Puppet code using Jenkins or something? Would it be possible to indicate that the build fails by interpreting the outcome of puppet-lint and rspec-puppet?
The aim is to run a kind of build once changes have been made to the Puppet code. Puppet-lint and rspec-puppet are helpfull, but is it possible to visualize it on a screen like Jenkins does?
If false would it be an idea to create a new project or extend the rspec-puppet and puppet-lint with this?
The text was updated successfully, but these errors were encountered:
I'm sort of confused by what you mean by "visualize it on a screen". Jenkins can run ANY command, and interprets failures by whether the command failed. It's also very common to do this with TravisCI, and in fact most puppet modules include a .travis.yml file by default. The same configuration, more or less, will work for Jenkins.
I know there were a couple of presentations at PuppetConf this year about CI for puppet; those might prove helpful ( http://info.puppetlabs.com/puppetconf-2014-videos-and-presentations.html ), and I'm sure that googling "puppet jenkins ci" would get you some information on how to do what you want.
There's no need to indicate that a build fails by interpreting output. Both commands (rspec and puppet-lint) will exit non-0 if there was an error, or 0 on success. In addition, there are a number of libraries out there with Rake tasks to handle common testing. For example, the current_module branch of my puppet-reviewboard module ( https://github.com/jantman/puppet-reviewboard/tree/current_module ) is tested by an internal Jenkins instance; Jenkins simply runs bundle install --path vendor and then bundle exec rake test; this runs puppet-lint, syntax (parser validate) and rspec tests, and exits non-zero if any of them fail; any command that exits non-zero in a shell builder in Jenkins will cause the build to be failed.
Is it possible to check the Puppet code using Jenkins or something? Would it be possible to indicate that the build fails by interpreting the outcome of puppet-lint and rspec-puppet?
The aim is to run a kind of build once changes have been made to the Puppet code. Puppet-lint and rspec-puppet are helpfull, but is it possible to visualize it on a screen like Jenkins does?
If false would it be an idea to create a new project or extend the rspec-puppet and puppet-lint with this?
The text was updated successfully, but these errors were encountered: