Error while using git

2014-02-28 Thread fabiancernota
Hello, i want to create an new maven jenkins job.If i connect Git with adress: ssh://x...@scantechmedia.org:43438/home/git/xxx.git I get this error : javax.servlet.ServletException: java.lang.NoClassDefFoundError: org.jenkinsci.plugins.gitclient.GitClient at org.kohsuke.stapler.Stapler.

svn authentication failure for external link

2014-02-28 Thread David Aldrich
Hi We are running Jenkins 1.551 with svn plugin 2.1. For a certain Jenkins project, we have a problem with svn authentication for an svn external reference. That job checks out an svn project that contains an external link: /trunk/testbench/Scenarios -> /branches/Scenarios When we run the

Re: Error while using git

2014-02-28 Thread Richard Bywater
Looks like you perhaps don't have the Git Client plugin installed ( https://wiki.jenkins-ci.org/display/JENKINS/Git+Client+Plugin). I thought it would get automatically installed at the same time as the Git plugin but perhaps not? Richard. On Fri, Feb 28, 2014 at 9:53 PM, fabiancernota wrote: >

Re: For loop in the Jenkins build flow

2014-02-28 Thread dev123
Thanks! My build flow script is starting to get pretty comprehensive. I am considering to use the groovy build step plugin instead since I can specify a groovy script that I can store in e.g. git (and also specify build steps BEFORE the main build step). As I understand the buildflow plugin is

Re: Scheduled Safe Restart

2014-02-28 Thread AndyB
Hi Baptiste. >Just out of curiosity, why do you want to automate that restart? I find Jenkins slows down after running for awhile (a week or so) and a restart usually fixes this. I've used the monitoring plugin to try to identify issues but I haven't spotted anything other than response times

Jenkins Server redirected too many times (20)

2014-02-28 Thread Mateusz Pietryga
Hi, I am running a 1.500 version of Jenkins on x64 Linux machine. All communication from the host is done via proxy with password. Now, I am having this weird problem when trying to download plugins: > SEVERE: Failed to install Sectioned View Plugin > hudson.util.IOException2: Failed to downloa

Re: Scheduled Safe Restart

2014-02-28 Thread AndyB
Hi Daniel, Yes 'environment' refers to policies. Saving a key should be acceptable. I'll give that a go, thanks. Re. creating a job to do this, I'll try that, but I suspect that the safe-restart waits for no jobs to be running (that's the whole point of it after all), so issuing from a job mi

Master/Slave vs Just Master

2014-02-28 Thread Sapientlife
Hi, What are the pros/cons of having Jenkins setup to use the master/slave configuration to run and deploy builds? If the hardware is not an issue why would one need to use a master/slave distributed system. Why not just have the Jenkins server run and deploy all buids? Thanks. Brian -- You

Re: Master/Slave vs Just Master

2014-02-28 Thread Jes Struck
because if you choose to use the master/slave setup you get one Jenkins install that can build on all of youre hardware's instead of X install's, among other thing you can get one Jenkins server that can build both *nix and Windows projects 2014-02-28 15:08 GMT+01:00 Sapientlife : > Hi, > > What

Gerrit trigger and build participants / CI game

2014-02-28 Thread Sascha Vogt
Hi all, does anybody know off a way, to let the gerrit trigger plugin set the build participants? As Jenkins doesn't know who participated, Jenkins cannot bug people via Jabber / XMPP or count the CI game scores for them. Any tips where to look at would be highly welcomed! Greetings -Sascha- --

Re: Don't execute shell code if commit has not changed

2014-02-28 Thread Mark Warren
Ok, I did have the jobs set to "Build periodically" and I switched it to "Poll SCM" and used the same schedule, however, it does not seem to have made a difference. The shell code is still being executed, even though there has been no change to than branch since the last event. Any ideas why, as

Re: Don't execute shell code if commit has not changed

2014-02-28 Thread Mark Waite
You may be seeing a bug in the git plugin or the git client plugin. There are several bugs reporting that polling incorrectly detects changes when there were no changes. Does the "git polling log" show that there were changes? Does the console output of the job report that changes were detected?

Best practice to copy Jenkins jobs from old instance to new one - Different networks - No root access to server - Manual Copying preferred

2014-02-28 Thread SamiSam
Hi there, Can someone recommend a way to copy Jenkins jobs from an old server to a new one? Unfortunatley, I don't have root access to the old server, so copying the directories is not an option. Using a plugin might not be an option either. Can this be performed manually? Any help would be

plugin wishlist/ideas

2014-02-28 Thread Tomáš Bambas
Hi all, the part of my Master thesis assignment is to create some plugin for Jenkins. It is really hard to bring something new, because there is a plugin for every possible build tool or notifier protocol So if you (or your company) have any wish or idea, please let me know. :) -- You rec

Email notifications only if build fails several times in a row

2014-02-28 Thread niko
Hi there, (I'm new to this list and not sure this is the right place for this question. Apologies if not; if anyone knows a more appropriate list, I'd appreciate pointers!) What I'm trying to do: Set up a project with email notifications that only get sent if the build fails several times in a

Re: Email notifications only if build fails several times in a row

2014-02-28 Thread Mark Waite
We installed and configured Check_MK to provide that type of higher level monitoring. That allowed one of the developers to write a small script that used the Jenkins REST api to count the number of build failures, and raise an alarm on the monitoring console if more than 3 of the last 5 builds fa

Re: Don't execute shell code if commit has not changed

2014-02-28 Thread Les Mikesell
On Fri, Feb 28, 2014 at 8:52 AM, Mark Waite wrote: > You may be seeing a bug in the git plugin or the git client plugin. There > are several bugs reporting that polling incorrectly detects changes when > there were no changes. > > Does the "git polling log" show that there were changes? > > Does

Re: Email notifications only if build fails several times in a row

2014-02-28 Thread Slide
You could use a ScriptTrigger and implement your own logic for a trigger to send emails. On Fri, Feb 28, 2014 at 8:27 AM, wrote: > Hi there, > > (I'm new to this list and not sure this is the right place for this > question. Apologies if not; if anyone knows a more appropriate list, I'd > appre

Jenkins LTS not noticing an update is available

2014-02-28 Thread Jon Schewe
Looking at jenkins-ci.org I see that the latest LTS release is 1.532.2. Looking at my Jenkins install I'm running 1.532.1. Going to the management page for my Jenkins install I do not see the option to upgrade. I have another Jenkins instance setup that is telling me there is an update available. W

Re: Jenkins LTS not noticing an update is available

2014-02-28 Thread Stephen Connolly
You are browsing around too fast and Jenkins has exponentially backed off trying to hijack your browser to download the plugin metadata from the update center On 28 February 2014 15:36, Jon Schewe wrote: > Looking at jenkins-ci.org I see that the latest LTS release is 1.532.2. > Looking at my J

RE: Best practice to copy Jenkins jobs from old instance to new one - Different networks - No root access to server - Manual Copying preferred

2014-02-28 Thread Ginga, Dick
There is the Jenkins Import Plugin http://wiki.jenkins-ci.org/display/JENKINS/Job+Import+Plugin From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of SamiSam Sent: Friday, February 28, 2014 9:57 AM To: jenkinsci-users@googlegroups.com Subject: Best practic

RE: plugin wishlist/ideas

2014-02-28 Thread Ginga, Dick
A plug-in for Flexera’s installshield would be helpful From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Tomáš Bambas Sent: Friday, February 28, 2014 10:01 AM To: jenkinsci-users@googlegroups.com Subject: plugin wishlist/ideas Hi all, the part of my M

Re: Best practice to copy Jenkins jobs from old instance to new one - Different networks - No root access to server - Manual Copying preferred

2014-02-28 Thread SamiSam
Just tried it and keep on receiving: FAILED - Server returned HTTP response code: 403 for URL: http://***/job/**//config.xml this is happening on all the jobs i'm trying to import. Any ideas? I don't think I could create an anonymous account (like some have done) and give it admin acc

RE: Best practice to copy Jenkins jobs from old instance to new one - Different networks - No root access to server - Manual Copying preferred

2014-02-28 Thread Ginga, Dick
Sorry, I never used it, just know about it From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of SamiSam Sent: Friday, February 28, 2014 10:59 AM To: jenkinsci-users@googlegroups.com Subject: Re: Best practice to copy Jenkins jobs from old instance to new o

Re: Best practice to copy Jenkins jobs from old instance to new one - Different networks - No root access to server - Manual Copying preferred

2014-02-28 Thread Kevin Fleming (BLOOMBERG/ 731 LEXIN)
If you don't have access to the server, nor access to the API, then there's really no way you can copy the jobs as you can't get their contents. - Original Message - From: jenkinsci-users@googlegroups.com To: jenkinsci-users@googlegroups.com At: Feb 28 2014 10:58:44 Just tried it and kee

Re: Best practice to copy Jenkins jobs from old instance to new one - Different networks - No root access to server - Manual Copying preferred

2014-02-28 Thread Slide
The latest version should have a username/password prompt when you go to import, at least it did last time I tried. Are those fields not showing up for you? slide On Fri, Feb 28, 2014 at 8:58 AM, SamiSam wrote: > Just tried it and keep on receiving: > FAILED - Server returned HTTP response cod

Re: Jenkins LTS not noticing an update is available

2014-02-28 Thread Jon Schewe
So Jenkins doesn't do the polling on it's own? On Fri, Feb 28, 2014 at 9:41 AM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > You are browsing around too fast and Jenkins has exponentially backed off > trying to hijack your browser to download the plugin metadata from the > update

Re: Best practice to copy Jenkins jobs from old instance to new one - Different networks - No root access to server - Manual Copying preferred

2014-02-28 Thread SamiSam
The plugin displays the credentials window. I do enter my credentials and can query the remote server which returns a list of jobs under the $VIEWNAME i specify in the URL. When I do try to import the jobs, that's when I get the 403 error. On Friday, February 28, 2014 11:00:09 AM UTC-5, Kev

Re: Best practice to copy Jenkins jobs from old instance to new one - Different networks - No root access to server - Manual Copying preferred

2014-02-28 Thread Slide
I assume you are logging in with a user that has admin privileges? On Fri, Feb 28, 2014 at 9:06 AM, SamiSam wrote: > The plugin displays the credentials window. I do enter my credentials and > can query the remote server which returns a list of jobs under the > $VIEWNAME i specify in the URL.

Jenkins api create job in a folder

2014-02-28 Thread Glenn V
Hi, I'm using the scriptler plugin to write a groovy script using the Jenkins api, that will clone a set of jobs. With jenkins.model.Jenkins. *createProjectFromXML*(String name, InputStream

Re: Best practice to copy Jenkins jobs from old instance to new one - Different networks - No root access to server - Manual Copying preferred

2014-02-28 Thread SamiSam
Good question.. I am not. and don't think i could get admin rights on here.. I'll check On Friday, February 28, 2014 11:15:17 AM UTC-5, slide wrote: > > I assume you are logging in with a user that has admin privileges? > > > On Fri, Feb 28, 2014 at 9:06 AM, SamiSam >wrote: > >> The plugin disp

Re: plugin wishlist/ideas

2014-02-28 Thread Mark Waite
You might consider joining the discussions related to a "bundle" of plugins for specific scenarios. For example, my Jenkins plugin development environment always needs the git plugin, the git client plugin, the JaCoCo plugin, the findbugs plugin, and a few others. I suspect others who do maven ba

Re: Best practice to copy Jenkins jobs from old instance to new one - Different networks - No root access to server - Manual Copying preferred

2014-02-28 Thread Patricia Wright
Can you use the CLI? If so, something like this: java -jar jenkins-cli.jar -s https://oldjenkins.yourdomain.com login java -jar jenkins-cli.jar -s https://newjenkins.otherdomain.com login curl 'https://oldjenkins.yourdomain.com/view/All/api/python?pretty=true' | awk -F\" '/name/{print $4}' >

Re: Best practice to copy Jenkins jobs from old instance to new one - Different networks - No root access to server - Manual Copying preferred

2014-02-28 Thread SamiSam
Thanks for the suggestion Patricia.. Unfortunately, no access to CLI.. I could have easily copied the directory where the jobs reside in and call it a day.. but that's no an option. sigh On Friday, February 28, 2014 9:56:42 AM UTC-5, SamiSam wrote: > > Hi there, > > Can someone recommend a way

Re: Best practice to copy Jenkins jobs from old instance to new one - Different networks - No root access to server - Manual Copying preferred

2014-02-28 Thread Patricia Wright
Just so I am clear, I'm not referring to the cli of the jenkins server itself. The CLI I refer to is the remote jenkins command line. You can download the .jar file from $JENKINS_URL/jnlpJars/jenkins-cli.jar and run it on any machine. - Original Message - From: "SamiSam" To: jen

Re: Email notifications only if build fails several times in a row

2014-02-28 Thread niko
Thanks for the suggestions! ScriptTrigger looks promising. I often feel the hardest part of using Jenkins is finding the name of the right plugin! ;) Thanks, Niko On Friday, February 28, 2014 4:34:09 PM UTC+1, slide wrote: > > You could use a ScriptTrigger and implement your own logic for a tri

Re: Best practice to copy Jenkins jobs from old instance to new one - Different networks - No root access to server - Manual Copying preferred

2014-02-28 Thread SamiSam
oh interesting. I just downloaded jenkins-cli.jar -- a few questions Patricia the first line: java -jar jenkins-cli.jar -s https://oldjenkins.yourdomain.com login - will the login be user:password ? if so, nothing happens on my end. Should i copy and modify your instructions into a file an

Jenkins executor failure when rerunning a failed job via the build pipeline

2014-02-28 Thread Eric Wood
I have a build pipeline that has four jobs chained together.  If a job fails, the pipeline has a "trigger" on the failed box..  I can fix the underlying issue and re-trigger the build from this trigger in order to have the job run to success and then allow the failed job to success and turn gree

Re: Best practice to copy Jenkins jobs from old instance to new one - Different networks - No root access to server - Manual Copying preferred

2014-02-28 Thread Patricia Wright
You can test to see if this has a hope of working by doing the following: 1) check to see if the CLI works: java -jar jenkins-cli.jar -s JENKINS_URL who-am-i --username=YOUR_USERNAME --password=YOUR_PASSWORD Replace YOUR_USERNAME and YOUR_PASSWORD as appropriate. 2) If that works and doesn

Re: Error while using git

2014-02-28 Thread fabiancernota
The Plugin is allready installed. -Fabian -- 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, vis

Re: Jenkins LTS not noticing an update is available

2014-02-28 Thread Jon Schewe
Found the problem. It's not the back off, it's my browser (Chrome on MacOS) and my Jenkins setup. I have Jenkins setup over SSL, however the URL for the update site was http. So when I looked in the javascript console I saw that the request to check the update server was blocked because the page wa

Re: Best practice to copy Jenkins jobs from old instance to new one - Different networks - No root access to server - Manual Copying preferred

2014-02-28 Thread SamiSam
Thank you so much for the instructions. I'm sure this will be a great aid to many users in the community. Unfortunately, it did not work. I've tried it from 3 different boxes (1 aix, 1 centos and a windows box) and received the same exception: Exception in thread "main" java.io.EOFException:

Re: Scheduled Safe Restart

2014-02-28 Thread Daniel Beck
The job starts before it issues the safe restart command (obviously), then it finishes, then Jenkins restarts. I've tested this before posting. On 28.02.2014, at 13:48, AndyB wrote: > I suspect that the safe-restart waits for no jobs to be running (that's the > whole point of it after all), so

NPE in MongoBuildWrapper

2014-02-28 Thread Rob Moore
The build is trying to start up MongoDB (using MongoDB plugin) and failing. I just changed the MongoDB version in the master config file so I expect it's related. ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-us...@googlegroups.comjava.lang.NullPointerEx

Re: For loop in the Jenkins build flow

2014-02-28 Thread Daniel Beck
In System Groovy build steps, this works: --- hudson.model.queue.QueueTaskFuture build(String fullName) { def p = jenkins.model.Jenkins.instance.getItemByFullName(fullName) def thisR = Thread.currentThread().executable def f = p.scheduleBuild2(p.quietPeriod, new hudson.model.Cause.UpstreamCaus

Re: Jenkins api create job in a folder

2014-02-28 Thread Daniel Beck
Folder#createProjectFromXML(String,InputStream). It's from the ModifiableTopLevelItemGroup interface that both Jenkins and Folder implement. On 28.02.2014, at 17:18, Glenn V wrote: > Hi, > > I'm using the scriptler plugin to write a groovy script using the Jenkins > api, that will clone a set

Re: Error while using git

2014-02-28 Thread Daniel Beck
Is it enabled? On 28.02.2014, at 20:04, fabiancernota wrote: > > > The Plugin is allready installed. > > -Fabian > > -- > 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, s

Re: Error while using git

2014-02-28 Thread Mark Waite
Where does that message appear and in response to what action? I assume it happens when you enter the Git URL into the job definition. If you ignore that message, save the job, and run the job, is it able to checkout the source code into the workspace? Your Git URL appears to include a user name