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
[…] autopkg on Os X Server 10.8.5 […]