jenkins local scripts, Autopkg & munki

jenkins local scripts, Autopkg & munki

Prereq

installed, configured and running jenkins
installed, configured and running autopkg
with all recipes in /Library/AutoPkg – for now at least.
meaning munki_repo setup and running

optional :
MunkiWebadmin on Os X Server 10.8.5
MunkiAdmin.app
autopkg on Os X Server 10.8.5

Example for jenkins

/usr/local/bin/autopkg run --search-dir=DIRECTORY --override-dir=DIRECTORY VLC.munki

Notes

Adding run --key
--search-dir=DIRECTORY

Adding full autopkg path
/usr/local/bin/autopkg

Command examples: (manual run)

At a Terminal command prompt

Note:

-v the trigger for verbose
/usr/local/bin/autopkg the full autopkg bin path
MakeCatalogs.munki to make the catalog afterwards
--search-dir=DIRECTORY

Final command for FlashPlayer:

/usr/local/bin/autopkg run -v --search-dir=/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/ AdobeFlashPlayer.munki MakeCatalogs.munki

Final command for Cyberduck:

/usr/local/bin/autopkg run -v --search-dir=/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/ Cyberduck.munki MakeCatalogs.munki

Command examples For jenkins Job

Note:

removed the -v trigger for verbose
/usr/local/bin/autopkg the full autopkg bin path
--search-dir=DIRECTORY must be the complete .recipes path with ending /

removed MakeCatalogs.munki

Final command: for FlashPlayer

/usr/local/bin/autopkg run --search-dir=/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/ AdobeFlashPlayer.munki 

Working !

/usr/local/bin/autopkg run --search-dir=/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/ GoogleChrome.munki

Multi recipes command

/usr/local/bin/autopkg run --search-dir=/Library/AutoPkg/RecipeRepos/com.github.keeleysam.recipes/ Github.munki CarbonCopyCloner.munki gfxCardStatus.munki

Final note :
A special Project build will be made to run MakeCatalog afterwards

Olivier
About

Product and graphic designer turned to be a Mac SysAdmin.

Posted in Admin, Deploy, Mac Tagged with: , , , , , , , ,
0 comments on “jenkins local scripts, Autopkg & munki
2 Pings/Trackbacks for "jenkins local scripts, Autopkg & munki"
  1. […] autopkg on Os X Server 10.8.5 […]

  2. […] See this post for autopkg command syntax http://oemden.com/?p=203 […]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>