Re: How to Schedule build in Jenkins
Have you asked uncle google at all? Hint: search for jenkins svn polling On Tue, Mar 5, 2013 at 6:37 AM, radha madhavi radha.madh...@gmail.comwrote: Hi All, I have integrated Jenkins with WebDriver and SVN. I want to schedule the build in such a way, when i commit the code to SVN it should trigger the build in jenkins. Please help me. -- Regards, Madhu -- 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 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: Pagination for 'All' view ?
Thanks for confirming this. I'll try to use https://wiki.jenkins-ci.org/display/JENKINS/View+Job+Filters Thanks again. On Tue, Mar 5, 2013 at 10:37 AM, Merrow, Frank fmer...@qti.qualcomm.comwrote: It only scales so far, but you can have “views” that split the jobs into sub-sets . . . and if you are consistent enough in your job names, you can actually have the views maintain themselves via Regular Expression. ** ** You can even make one of the views “default” . . . so that “all” is no longer the first thing folks see. ** ** I’ve been told “Cloud Bees” has some plugins for doing some of what you want . . . but I believe those are per subscription only. ** ** Frank ** ** *From:* jenkinsci-users@googlegroups.com [mailto: jenkinsci-users@googlegroups.com] *On Behalf Of *Vincent Latombe *Sent:* Tuesday, March 05, 2013 8:15 AM *To:* Jenkins Users *Subject:* Re: Pagination for 'All' view ? ** ** As far as I know, this isn't possible. Vincent ** ** 2013/3/5 Octavian Covalschi octavian.covals...@gmail.com Bump 1 of 2 ** ** On Mon, Mar 4, 2013 at 3:33 PM, Octavian Covalschi octavian.covals...@gmail.com wrote: Hi, ** ** Is there an easy way to add pagination to 'All' view in Jenkins? We have about 200 small jobs created and may have more, I'd like to paginate those, or limit somehow list of them... ** ** Thank you in advance. ** ** PS: All jobs are pretty much the same, so I can't really filter/group them... ** ** -- 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 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 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 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.
Pagination for 'All' view ?
Hi, Is there an easy way to add pagination to 'All' view in Jenkins? We have about 200 small jobs created and may have more, I'd like to paginate those, or limit somehow list of them... Thank you in advance. PS: All jobs are pretty much the same, so I can't really filter/group them... -- 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: jenkins wins first place in purim custom content...
Shoes color doesn't match... On Wed, Feb 27, 2013 at 7:21 AM, Eyal Edri ee...@redhat.com wrote: Since i manage jenkins for over 2 years now it was natural to dress up as him! I won 1st place in a custom contest of the company with it.. http://postimage.org/image/e7k9j8mbb/ (i even had 3 color balls blue/yellow/red for the builds :) what do you think? looks the same or not? Eyal Edri RHEVM CI BUILD Team leader Red Hat -- 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 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: Run Jenkins under different Linux user
Yes, defining those inside the script should be enough. On Wed, Feb 27, 2013 at 5:33 AM, mwpowellhtx mwpowell...@gmail.com wrote: Hello, I've installed under Ubuntu Linux and have the service running as anonymous. I want it to run under a jenkins user, and set the home to something other than /var/lib/path/to/workspace, more like /home/ jenkins/path/to/workspace. I've identified the /etc/init.d/jenkins script. Is it here where we set the JENKINS_USER, JENKINS_BASEDIR, and so on? https://wiki.jenkins-ci.org/display/JENKINS/JenkinsLinuxStartupScript I'm thinking probably so, but I wonder if anyone has done this before and can witness. Regards, Michael -- 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 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: All nodes are Dead after upgrade to 1.501
What happens if you add new ones? On Fri, Feb 15, 2013 at 2:29 AM, Adrian datenschutzbestimmun...@gmail.comwrote: No one an idea or an similar problem? Every night the Jenkins starts some internal Job and kills all nodes. -- 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 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: ssh://IP address/Path to git repo Does not work
It looks like JM and JS are 2 different machines, yes? Is the job being executed on JM or JS? How are you populating /var/www/invo_app ? Recently I have tried jenkins with git to pull from a network computer, but in my use case I had ssh://JM IP ADDRESS/my_project On Thu, Feb 14, 2013 at 4:02 PM, Kamal Ahmed kamalah...@yahoo.comwrote: Hi, I have setup between Jenkins Master (JM) and Jenkins Slave (JS) so that user jenkins from JM can do an ssh login to JS as user jenkins ( manually created ) without password. by exchanging secure authorized_keys. But now when i use git repository URL as ssh://JS IP ADDRESS/var/www/invo_app i get the following error: 16:50:11 Started by user anonymous 16:50:11 Building remotely on datascout in workspace /home/kahmed/workspace/DA_v2 16:50:11 Checkout:DA_v2 / /home/kad/workspace/DA_v2 - hudson.remoting.Channel@54942a84:da 16:50:11 Using strategy: Default 16:50:11 Cloning the remote Git repository 16:50:11 Cloning repository ssh://JS IP ADDRESS/var/www/invo_app 16:50:11 git --version 16:50:11 git version 1.7.9.5 16:51:15 ERROR: Error cloning remote repo 'origin' : Could not clone ssh://JS IP ADDRESS/var/www/invo_app 16:51:15 hudson.plugins.git.GitException: Could not clone ssh://JS IP ADDRESS/var/www/invo_app 16:51:15 at hudson.plugins.git.GitAPI.clone(GitAPI.java:273) 16:51:15 at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044) 16:51:15 at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986) 16:51:15 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348) 16:51:15 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 16:51:15 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 16:51:15 at hudson.remoting.Request$2.run(Request.java:326) 16:51:15 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 16:51:15 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 16:51:15 at java.util.concurrent.FutureTask.run(FutureTask.java:166) 16:51:15 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) 16:51:15 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) 16:51:15 at java.lang.Thread.run(Thread.java:679) 16:51:15 Caused by: hudson.plugins.git.GitException: Command /usr/bin/git clone --progress -o origin ssh://JS IP ADDRESS/var/www/invo_app /home/kad/workspace/DA_v2 returned status code 128: 16:51:15 stdout: Cloning into '/home/kahmed/workspace/DA_v2'... 16:51:15 16:51:15 stderr: ssh: connect to host 10.100.243.212 port 22: Connection timed out 16:51:15 fatal: The remote end hung up unexpectedly 16:51:15 16:51:15 at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:897) 16:51:15 at hudson.plugins.git.GitAPI.access$000(GitAPI.java:42) 16:51:15 at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:269) 16:51:15 at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:248) 16:51:15 at hudson.FilePath.act(FilePath.java:865) 16:51:15 at hudson.FilePath.act(FilePath.java:838) 16:51:15 at hudson.plugins.git.GitAPI.clone(GitAPI.java:248) 16:51:15 ... 12 more 16:51:15 Trying next repository 16:51:15 ERROR: Could not clone repository 16:51:15 FATAL: Could not clone 16:51:15 hudson.plugins.git.GitException: Could not clone 16:51:15 at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1056) 16:51:15 at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986) 16:51:15 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348) 16:51:15 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 16:51:15 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 16:51:15 at hudson.remoting.Request$2.run(Request.java:326) 16:51:15 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 16:51:15 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 16:51:15 at java.util.concurrent.FutureTask.run(FutureTask.java:166) 16:51:15 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) 16:51:15 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) 16:51:15 at java.lang.Thread.run(Thread.java:679) -- 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 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: ssh://IP address/Path to git repo Does not work
Oh, I remembered.. I think I used a simple exec shell step to do git clone and it was working... not sure why I didn't use plugin. basically I had rm -fR dir git clone ssh://machine/repo/project dir On Thu, Feb 14, 2013 at 4:40 PM, Kamal Ahmed kamalah...@yahoo.comwrote: yes, JM ( Jenkins Master ) and JS ( jenkins Slave ) are two different machines. JM being @ home and connected via vpn, and JS being on the company lan. But i am able to connect ssh without password between these two machines as user Jenkins. also i am able to get the repo by using: git clone 10.100.243.212:/var/www/invo_app . i get the repo Very confusing, there should be some documentation on how this works. Thanks, -Kamal. -- *From:* Octavian Covalschi octavian.covals...@gmail.com *To:* jenkinsci-users@googlegroups.com *Sent:* Thursday, February 14, 2013 5:13 PM *Subject:* Re: ssh://IP address/Path to git repo Does not work It looks like JM and JS are 2 different machines, yes? Is the job being executed on JM or JS? How are you populating /var/www/invo_app ? Recently I have tried jenkins with git to pull from a network computer, but in my use case I had ssh://JM IP ADDRESS/my_project On Thu, Feb 14, 2013 at 4:02 PM, Kamal Ahmed kamalah...@yahoo.comwrote: Hi, I have setup between Jenkins Master (JM) and Jenkins Slave (JS) so that user jenkins from JM can do an ssh login to JS as user jenkins ( manually created ) without password. by exchanging secure authorized_keys. But now when i use git repository URL as ssh://JS IP ADDRESS/var/www/invo_app i get the following error: 16:50:11 Started by user anonymous 16:50:11 Building remotely on datascout in workspace /home/kahmed/workspace/DA_v2 16:50:11 Checkout:DA_v2 / /home/kad/workspace/DA_v2 - hudson.remoting.Channel@54942a84:da 16:50:11 Using strategy: Default 16:50:11 Cloning the remote Git repository 16:50:11 Cloning repository ssh://JS IP ADDRESS/var/www/invo_app 16:50:11 git --version 16:50:11 git version 1.7.9.5 16:51:15 ERROR: Error cloning remote repo 'origin' : Could not clone ssh://JS IP ADDRESS/var/www/invo_app 16:51:15 hudson.plugins.git.GitException: Could not clone ssh://JS IP ADDRESS/var/www/invo_app 16:51:15 at hudson.plugins.git.GitAPI.clone(GitAPI.java:273) 16:51:15 at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044) 16:51:15 at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986) 16:51:15 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348) 16:51:15 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 16:51:15 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 16:51:15 at hudson.remoting.Request$2.run(Request.java:326) 16:51:15 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 16:51:15 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 16:51:15 at java.util.concurrent.FutureTask.run(FutureTask.java:166) 16:51:15 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) 16:51:15 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) 16:51:15 at java.lang.Thread.run(Thread.java:679) 16:51:15 Caused by: hudson.plugins.git.GitException: Command /usr/bin/git clone --progress -o origin ssh://JS IP ADDRESS/var/www/invo_app /home/kad/workspace/DA_v2 returned status code 128: 16:51:15 stdout: Cloning into '/home/kahmed/workspace/DA_v2'... 16:51:15 16:51:15 stderr: ssh: connect to host 10.100.243.212 port 22: Connection timed out 16:51:15 fatal: The remote end hung up unexpectedly 16:51:15 16:51:15 at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:897) 16:51:15 at hudson.plugins.git.GitAPI.access$000(GitAPI.java:42) 16:51:15 at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:269) 16:51:15 at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:248) 16:51:15 at hudson.FilePath.act(FilePath.java:865) 16:51:15 at hudson.FilePath.act(FilePath.java:838) 16:51:15 at hudson.plugins.git.GitAPI.clone(GitAPI.java:248) 16:51:15 ... 12 more 16:51:15 Trying next repository 16:51:15 ERROR: Could not clone repository 16:51:15 FATAL: Could not clone 16:51:15 hudson.plugins.git.GitException: Could not clone 16:51:15 at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1056) 16:51:15 at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986) 16:51:15 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348) 16:51:15 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 16:51:15 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 16:51:15 at hudson.remoting.Request$2.run(Request.java:326) 16:51:15 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 16:51:15 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 16:51:15
Re: Monitoring Metrics (eg. code coverage) Degradation
You may not like this solution, but until someone will post a better solution, you could potentially create a simple shell task and run your coverage metrics from there... With some magic you could check the results and return 0 or 1 (i'm not sure the exact value), which will tell jenkins if it failed or not... This kind of trick helped me a lot when I didn't want to rely on old plugins or my requirement was too custom... On Tue, Feb 12, 2013 at 10:27 AM, Zigster zigster1...@gmail.com wrote: It's a PHP project... -- 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 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: creating a tag and pushing to github
If you haven't found a way, you could try doing it using a simple exec shell step, i mean the same steps you'd do in command line... you may have to play with parameters though, so you script would know tag's name for example. On Mon, Feb 11, 2013 at 10:01 AM, Chris Withers ch...@simplistix.co.ukwrote: Hi All, How can I, in a build action or post build action create a tag and push that tag back to GitHub? Does the Git or GitHub plugin allow this already? In any case, what username/password/api key would Jenkins use to interact with GitHub? cheers, Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk -- 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+unsubscribe@**googlegroups.comjenkinsci-users%2bunsubscr...@googlegroups.com . For more options, visit https://groups.google.com/**groups/opt_outhttps://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.
REST API - How reliable is color tag?
Hello, We're linking our database entities to a job in jenkins, it's 1 to 1 relation. So, as a result we'd like to display real time job's status. I found 2 ways, 1. using /job/job1/api/xml (color tag) 2. using /job/job1/lastBuild/api/xml (building, result tags) In both cases it seems possible to find out if a job is building and/or failed. But 1st solution seems simpler compared to 2nd which has bit more code especially if there wasn't any build made yet... So, what do you think? Can I rely on color tag, that can have blue, blue_anime, red, red_anime, grey, grey_anime values? Or it may change and I should use 2nd resource? Thank you in advance. -- 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: Anyone written a config file parser/script generator?
Once you have your config.xml files backed-up you should be able to restore your jobs, through Rest API. For old buils, if they are important you should make other arrangements... Backing-up entire .jenkins directory, should help too, but you'll need more space of course. On Tue, Feb 12, 2013 at 2:18 PM, Slide slide.o@gmail.com wrote: I've actually done the opposite of this to migrate from our internal build tool to Jenkins a few years ago. The config.xml files that have the build info are pretty easy to parse if you are looking for a way to do that, any XML library for any language you are familiar with would make quick work of them. On Tue, Feb 12, 2013 at 1:13 PM, Les Mikesell lesmikes...@gmail.comwrote: On Tue, Feb 12, 2013 at 1:59 PM, Steve K steve.kerxha...@carestream.com wrote: Hello, We invest so much time and effort into maintaining Jenkins jobs, I fear that my organization would be dead in the water if Jenkins went down. I'd like a way to extract the build steps from the config files--tuning them into an executable script. It seems possible to translate the config file into a shell script or batch file. Has anyone already done this? Most of our build steps simply run scripts that are checked in with the source and work the same in jenkins as a developer's desktop. But, we also keep the jenkins system backed up so it wouldn't be too hard to spin up a new machine as a replacement if needed. I'm not sure why you would want yet another way to do it. -- Les Mikesell lesmikes...@gmail.com -- 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. -- Website: http://earl-of-code.com -- 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 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 publish artifact to a SMB / CIFS share?
How do you mount/connect that share? I mean, it's OS' job to mount a network share with or w/o user/password and Jenkins would just copy your file to that share. On Sat, Feb 9, 2013 at 9:09 AM, Markus KARG mar...@headcrashing.eu wrote: I need to publish an artifact to a password-protected SMB / CIFS share. How can I do this? I noticed that there was a copy plugin, which seems to be obsolete. I also noticed that there is a ArtifactDeployer plugin, which seems to be so fresh that it is not contained in the Jenkins Update system. What to do? -- 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 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.
Master/Slave configuration questions
Hello, We have a number of Java projects, Selenium tests and using gradle to build/test everything. So far this works fine for us if it's on one machine, but we're looking to increase the number of projects/jobs and would like to be ready to scale. As a result I'm looking to setup a master + few slaves configuration, but there are some things that I'm not sure about. My thought is that initial setup to be on one machine, with multiple jenkins instances (master + slaves). So here are my questions: 1. Does it make sense to have master and slaves on the same machine at all? 2. If we're using gradle, do I have to install gradle on other machines too? 3. What about actual projects? Do I have to sync them on slave servers? Since right now, gradle plugin asks path to build.gradle file, which we're setting to the absolute path. How does this work? Thank you in advance. -- 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: Master/Slave configuration questions
That's a really insightful reply and I thank you for that. Yes, we're using SCM for our regular projects, but for these jobs we haven't thought about it actually, since the specifics are that we have many, but small jobs which are created/generated automatically... but it makes sense to pull those from a centralized location, like SCM or database if that's the case... I'll have to rethink a bit our approach, based on your comments. Thanks again. On Thu, Feb 7, 2013 at 12:04 PM, Mandeville, Rob rmandevi...@litle.comwrote: I know approximately less than nothing about Gradle, but here goes anyways… ** ** You can certainly put slave nodes on the same machine as the Jenkins server, and there can be good reasons to do so. Making a separate slave lets you configure it differently than the master nodes, if needed. It also runs as a separate process, so it can be run as a different user, given a different environment, etc. Doing this depends on how you launch the slave. ** ** If you want to run Gradle builds on another machine, you’re going to have to have Gradle installed on that other machine. Whether you’re running it via a Jenkins slave node or any other way doesn’t matter. Basically, a slave node is an agent on some machine that can run commands. It isn’t If you can’t do it from the command line, you probably can’t do it from a Jenkins slave either. ** ** As far as projects go, you’re going to have to get your sources onto the machine your slave is on. If I’m reading correctly, you put your Gradle sources (like build.gradle) at an absolute location on the machine your Jenkins server is on. This is probably not going to work. Normal procedure in Jenkins is to start your build by checking out sources from a source-control system, so that each build has its own copy. ** ** If you’re not using a source control system, I strongly suggest you start, especially if you’re scaling up. I’m not going to go over benefits here, but will note that many of them are open source. Many SCM systems have an associated Jenkins plugin. With that, a job can poll for changes and grab the latest sources for you, putting it in the current directory for the slave node. If you aren’t running on a polling basis (my outfit, for instance, does nightly builds), then you just make a build step that grabs the sources from SCM before you try building it. However, you now have to do all your builds from a relative directory rather than an absolute directory; this is usually good, as it means that you can run more than one on the same machine. ** ** In short, I suggest that you figure out how you would run the builds you want on other machines by hand _*without*_ Jenkins in place, and then determine from there how to use Jenkins to automate that process for you.* *** ** ** --Rob ** ** *From:* jenkinsci-users@googlegroups.com [mailto: jenkinsci-users@googlegroups.com] *On Behalf Of *Octavian Covalschi *Sent:* Thursday, February 07, 2013 11:37 AM *To:* jenkinsci-users@googlegroups.com *Subject:* Master/Slave configuration questions ** ** Hello, ** ** We have a number of Java projects, Selenium tests and using gradle to build/test everything. So far this works fine for us if it's on one machine, but we're looking to increase the number of projects/jobs and would like to be ready to scale. ** ** As a result I'm looking to setup a master + few slaves configuration, but there are some things that I'm not sure about. My thought is that initial setup to be on one machine, with multiple jenkins instances (master + slaves). ** ** So here are my questions: ** ** 1. Does it make sense to have master and slaves on the same machine at all? 2. If we're using gradle, do I have to install gradle on other machines too? 3. What about actual projects? Do I have to sync them on slave servers? Since right now, gradle plugin asks path to build.gradle file, which we're setting to the absolute path. How does this work? ** ** Thank you in advance. -- 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. The information in this message is for the intended recipient(s) only and may be the proprietary and/or confidential property of Litle Co., LLC, and thus protected from disclosure. If you are not the intended recipient(s), or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify Litle Co. immediately by replying