puppetlabs jenkins setup

93 views
Skip to first unread message

Choon Ming Goh

unread,
Aug 25, 2012, 9:14:37 AM8/25/12
to puppet...@googlegroups.com
Hi,

I'm in the middle of setting up jenkins for testing and building our puppet modules. I'm quite new at this and been trying to make it work the way i wanted but in reality it doesnt. There are a few issues/questions that I hope someone in puppetlabs/jenkins can help me with:

1. module dependency - how do I build and test modules is dependent on another module that is being built at the same time using rspec in jenkins. The good example is rtyler's jenkins module

2. how can I have jenkins to create a tarball of the module and made it available for download whenever I click on the builds?

This is what I can think of for now and if anyone have an idea please do help.

Thanks

Justin Stoller

unread,
Aug 25, 2012, 1:35:09 PM8/25/12
to puppet...@googlegroups.com
On Sat, Aug 25, 2012 at 6:14 AM, Choon Ming Goh <choonm...@gmail.com> wrote:
> Hi,
>
> I'm in the middle of setting up jenkins for testing and building our puppet
> modules. I'm quite new at this and been trying to make it work the way i
> wanted but in reality it doesnt. There are a few issues/questions that I
> hope someone in puppetlabs/jenkins can help me with:
>
> 1. module dependency - how do I build and test modules is dependent on
> another module that is being built at the same time using rspec in jenkins.
> The good example is rtyler's jenkins module

You'll need (at this point) fixtures for those other modules. Have you
tried reading Branan's blog post about getting started module testing?
http://puppetlabs.com/blog/the-next-generation-of-puppet-module-testing/
if I remember right there's either an example of fixtures there or a
link to a module that at least uses them (seeing code always helps).
>
> 2. how can I have jenkins to create a tarball of the module and made it
> available for download whenever I click on the builds?

Go to the 'workspace' of the build. ( at
www.myjenkinsserver.com/job/My Job Name/ws ) This will let you click
through the artifacts of the build (and gives you the option to
download as a zip). You can add a build step after your main tests to
create a tarball. You can also look into a publisher plugin to do that
for you ( https://wiki.jenkins-ci.org/display/JENKINS/Plugins#Plugins-Artifactuploaders
).


HTH,
Justin


>
> This is what I can think of for now and if anyone have an idea please do
> help.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/n1qm-r0y5UAJ.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
Reply all
Reply to author
Forward
0 new messages