how to NOT free an executor until the last job in a chain is complete, even though a job in the chain is in a quiet period
Hi, I'm not sure I'm even asking the right question, so here's what I'm trying to do and what I've done so far: I'm setting up Jenkins on a Mac Pro, using Parallels vm's as slaves to build on many different platforms (probably 14 to start). I'll have way too many vm's to keep them all running all the time, so when I want to build, I need Jenkins to: - start a vm - wait until the vm finishes booting - run the particular build script for that vm - shut down the vm At that point, free up the executor to begin the cycle over again with another vm. I'm guessing I have enough RAM to have 3 executors doing this. I have created separate jobs to start a vm, run the appropriate script on a vm (after a quiet period to allow booting to finish), and stop a vm. The jobs are chained: the Start VM job has a post-build action to start the Build job (which is tied to the appropriate vm), which has a post-build action to start the Stop VM job. I can duplicate this for all 14 vm's (totaling 42 jobs), and create a Start_All job that has a post-action build for all 14 Start VM jobs. But that still leaves me wondering how to ensure that all 3 jobs associated with any given vm (start the vm, build my app, stop the vm) will be completed before freeing the executor to start the next Start VM job. I can't have my executors just blazing through starting vm's - I'll quickly run out of RAM. I looked at multi-configuration projects, but am not clear how that could help, since I have a different script to run on each vm, and the vm's have to be started and stopped. Is there a "best practice" way to do this? Or am I stuck chaining all 42 jobs, and limiting to 1 executor? Thanks, David -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: how to get Jenkins to see my Parallels vm's?
Thanks Kevin, I'm arriving at that same conclusion, but I don't know what to do about it. I'm pretty new to all this. Parallels was installed under an Admin user account. In Terminal under that account, I cd'd to my Parallels directory where I keep all the pvm's, and ran: sudo chmod -R og+rwx /Volumes/Storage/Parallels/* I did an ls -l to verify that the permissions were changed. However, even after rebooting, Jenkins still gives me an empty list when I try to list all the vm's. Additionally, it seems the Jenkins user is not a normal user - it doesn't show up in System Preferences..Users & Groups. So I'm not sure how to make Parallels and Jenkins play nice together. Any ideas how to proceed? Thanks very much, David On Friday, May 31, 2013 2:49:15 PM UTC-4, Kevin Fleming wrote: > > This is not a Jenkins issue, it's an OSX/Parallels issue. Clearly the user > that you are running Jenkins as does not have the same permissions that you > do in your Terminal session, or there is some significant difference in the > environment between those sessions. > > - Original Message - > From: jenkins...@googlegroups.com > To: jenkins...@googlegroups.com > At: May 31 2013 12:56:50 > > Hi, > > When I run: > > prlctl list --all > > from Terminal, my vm's are listed. However, when I run the same command > from the Jenkins Execute shell Command, I get an empty list. > > How can I make Jenkins see the vm's, so Jenkins can start and stop them? > > Thanks, > David > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-use...@googlegroups.com . > For more options, visit https://groups.google.com/groups/opt_out. > > > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: how to run applescript from Jenkins?
Hi Pete, When I run: comm -3 <(declare | sort) <(declare -f | sort) from a terminal, it works fine, but when I run it from Jenkins' Execute shell Command, I get: syntax error near unexpected token `(' I looked at the man page for comm and I'm still lost. Any ideas? Thanks, David On Friday, May 24, 2013 4:13:27 PM UTC-4, David Burson wrote: > > Hi, > > I've spent a couple days now trying to figure out why our build script > runs fine from the command line, but gets "execution error: An error of > type -10810 has occurred. (-10810)" when Jenkins runs it. The problem is a > bit of Applescript we run towards the end of our script. > > When I simply put this line in Jenkins' Execute shell Command box: > > osascript -e 'tell application "Finder" to activate' > > I get the same error: > > execution error: An error of type -10810 has occurred. (-10810) > > > How can I get Jenkins to run a bit of Applescript? > > Thanks, > David > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
how to get Jenkins to see my Parallels vm's?
Hi, When I run: prlctl list --all from Terminal, my vm's are listed. However, when I run the same command from the Jenkins Execute shell Command, I get an empty list. How can I make Jenkins see the vm's, so Jenkins can start and stop them? Thanks, David -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
how to run applescript from Jenkins?
Hi, I've spent a couple days now trying to figure out why our build script runs fine from the command line, but gets "execution error: An error of type -10810 has occurred. (-10810)" when Jenkins runs it. The problem is a bit of Applescript we run towards the end of our script. When I simply put this line in Jenkins' Execute shell Command box: osascript -e 'tell application "Finder" to activate' I get the same error: execution error: An error of type -10810 has occurred. (-10810) How can I get Jenkins to run a bit of Applescript? Thanks, David -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to set up Jenkins on Mac Pro with Parallels vm slaves?
Thanks very much, Pete! I'll give that a shot. David On Tue, May 21, 2013 at 8:44 AM, Pete Akey wrote: > You can ask Jenkins to run commands just as you would from the command > line. > > I'd use whichever you're more comfortable with. > > Here are some CLI parameters for VirtualBox: > > http://www.virtualbox.org/manual/ch09.html > > Here's an entire CLI guide for Parallels: > > > http://www.parallels.com/fileadmin/parallels/documents/support/server/Parallels_Command_Line_Reference_Guide.pdf > > Pete > > On May 20, 2013, at 1:20 PM, David Burson wrote: > > Hi, > > I'm new to Jenkins (and to CI), and need to set up Jenkins on a beefy Mac > Pro. The plan is to use a dozen or so virtual machines as dedicated > slaves. We want a Subversion commit to trigger building on each of these > vm's. I believe I understand how to configure Jenkins and create the jobs > to start when someone checks code into our Subversion repository, and > stagger the Quiet periods for the jobs so they don't all start at once. > > My question is: on the build machine (Mac Pro running OS X Mountain Lion) > do I have to use VirtualBox for the slaves, or can I just as easily use > Parallels? I can't figure out how to make Jenkins automatically start a > Parallels vm, copy the artifacts to the master after the build is done, and > finally stop the vm. > > Thanks, > David > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Jenkins Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/jenkinsci-users/jZJ3YeX_Y6I/unsubscribe?hl=en > . > To unsubscribe from this group and all its topics, send an email to > jenkinsci-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
How to set up Jenkins on Mac Pro with Parallels vm slaves?
Hi, I'm new to Jenkins (and to CI), and need to set up Jenkins on a beefy Mac Pro. The plan is to use a dozen or so virtual machines as dedicated slaves. We want a Subversion commit to trigger building on each of these vm's. I believe I understand how to configure Jenkins and create the jobs to start when someone checks code into our Subversion repository, and stagger the Quiet periods for the jobs so they don't all start at once. My question is: on the build machine (Mac Pro running OS X Mountain Lion) do I have to use VirtualBox for the slaves, or can I just as easily use Parallels? I can't figure out how to make Jenkins automatically start a Parallels vm, copy the artifacts to the master after the build is done, and finally stop the vm. Thanks, David -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.