Re: Failing a Build Flow

2014-01-09 Thread nicolas de loof
I don't recommend such a fully programmatic approach, build-flow is designed as a DSL, admittedly not constrained to just supported keywords (because I didn't know how to do this when I started this plugin) but clearly not supposed to be used to create such a groovy script. 2014/1/10 Marc MacInty

Re: Audit to database plug-in : org.hibernate.HibernateException: 'hibernate.dialect' must be set when no Connection available

2014-01-09 Thread sasidhar attaluri
> > I am faxcing the same problem. Tried with sqljdbc4.jar as well as my sql > java coonector. Getting the same error in both the cases. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving email

Re: Failing a Build Flow

2014-01-09 Thread Marc MacIntyre
You are overthinking it :) The trick is to grab the return value from the build() call and check the result of that, then explicitly set the failure state of the buildflow. This is what I'm doing; it's more solution than you need, but it solves your problem. This buildflow takes a map of jobs an

Re: Failing a Build Flow

2014-01-09 Thread silver
Sorry for any confusion. The line: ”println(“There were “+FailuresPresent+" test(s) that failed”);" is outside of the if statement resulting in the example output at the end of this message. On Jan 9, 2014, at 9:55 PM, silver wrote: > When I run jobs in parallel, the Build Flow fails or passe

Failing a Build Flow

2014-01-09 Thread silver
When I run jobs in parallel, the Build Flow fails or passes as I’d expect. Example: parallel ( { build(job1) }, { build(job2) }, { build(job3) }, ) All of the jobs are started and if they all pass, the Build Flow passes. If one fails, the Build Flow fails. What I’d like to do is to run jobs

Re: Jenkins fails to run correctly after update.

2014-01-09 Thread Matt Connolly
I have it solved. The problem was that my jenkins directory was called "jenkins" and the jenkins.war file wanted to expand into the same place. Moving my jenkins to the default ".jenkins" kept its data separate from the extraction of the latest .war and it's all back again. Interesting that th

Re: in-house mirrored update center is not working as expected...

2014-01-09 Thread Jonathan Li
Resurrecting this thread as I'm stuck in a similar situation of running Jenkins in an environment without access to the internet. I'm using https://github.com/jenkinsci/backend-update-center2 to generate and retrieve the data for the update center, but validation of the json files is causing a

Re: Job deployed on wrong node

2014-01-09 Thread Paul McGregory
I´m sorry. It was important to set the node-name in the "restrict where job can run" No it works like a charm :) jenkins is now deploying the project on the right nodes Mnnny thanks!!! -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group.

Re: Job deployed on wrong node

2014-01-09 Thread Les Mikesell
On Thu, Jan 9, 2014 at 5:39 PM, Paul McGregory wrote: > Tried both options "restrict where job can run" on/off (but without label) What do you mean 'without label'? I always assign labels to the nodes and restrict jobs by label so I can have pools for similar jobs, but it should work with node n

Re: Job deployed on wrong node

2014-01-09 Thread Paul McGregory
Tried both options "restrict where job can run" on/off (but without label) This are the first logs > Build on Slave Server3 in workspace /var/www/project-213-3.5.2 > FATAL: Failed to mkdirs: /var/www/project-213-3.5.2 > > It failes, because /var/www does not exist on Server3 and this should be

Perforce and Maven Release plugin...

2014-01-09 Thread Jeff
I've configured Perforce on my Jenkins box running on Ubuntu by downloading the 'p4' executable and copying it to /usr/local/bin. I've gone to the Jenkins configuration and configured perforce to look there and I can build and deploy to Nexus. Now, I'm trying to do a maven release. However, when

Build download stats

2014-01-09 Thread Maximilian Morgalla
Is there a way or a plugin to display download stats for builds? I would like to roughly know how often a build has been downloaded. -- 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 i

Re: trigger local jenkins with github

2014-01-09 Thread Marius Gedminas
On Wed, Jan 08, 2014 at 11:49:23PM -0800, Stefan Bauer wrote: > Hello Marius, > > I want to use the second method, because efficiency is really important to > my project. > > I tried this configuration: > > *Jenkins GitHub Plugin (Version 1.8):* >Configure System/ > GitHub User Login:

Re: Jenkins in non internet connected environment

2014-01-09 Thread Les Mikesell
On Thu, Jan 9, 2014 at 11:45 AM, John Gornowich wrote: > I must have missed that system property when I was looking through the list. > Turning off this update center has alleviated a good portion but not all of > the log issues I am seeing. > > As far as creating a custom SocketImplFactory, I thi

Re: Jenkins in non internet connected environment

2014-01-09 Thread John Gornowich
I must have missed that system property when I was looking through the list. Turning off this update center has alleviated a good portion but not all of the log issues I am seeing. As far as creating a custom SocketImplFactory, I think you are right in terms of cost/benefit. Its a good idea, but

Re: Job deployed on wrong node

2014-01-09 Thread Les Mikesell
On Thu, Jan 9, 2014 at 11:40 AM, Paul McGregory wrote: > I am using the custom workspace parameter ( > /var/www/project-${BUILD_NUMBER}-$tag ) and node-names > > He is build the job on the wrong node with the workspace parameter from the > correct job. I don't understand how a custom workspace wo

Re: Git-Jenkins Issue

2014-01-09 Thread Aaron Golub
It was a version issue with GIT...I had Jenkins pointing to the wrong one. Thank you all for the help! A On Wednesday, January 8, 2014 12:23:33 PM UTC-8, slide wrote: > > This is just a guess, but your Git version looks pretty old, so perhaps it > doesn't support the --progress option at all. >

Re: Job deployed on wrong node

2014-01-09 Thread Paul McGregory
I am using the custom workspace parameter ( /var/www/project-${BUILD_NUMBER}-$tag ) and node-names He is build the job on the wrong node with the workspace parameter from the correct job. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To u

Re: Junit Attachment Plugin

2014-01-09 Thread Daniel Beck
On 09.01.2014, at 17:45, a...@dealerfire.com wrote: > latest version Try the hpi from this snapshot build: https://jenkins.ci.cloudbees.com/job/plugins/job/junit-attachments-plugin/6/org.jenkins-ci.plugins$junit-attachments/ -- You received this message because you are subscribed to the Google

Re: Job deployed on wrong node

2014-01-09 Thread Les Mikesell
On Thu, Jan 9, 2014 at 5:36 AM, Paul McGregory wrote: > Hey, > > I have 5 differend Slaves for different projects. > > Sometimes jenkins is deploying a job to a wrong slave, sometimes on the > master. The executor is set by 0 on the master, the nodes by a value of 1 > I find out, that if i set all

Re: Sudden crash of jenkins during high load

2014-01-09 Thread Marc MacIntyre
Give it more memory, and make the min == max. I also use the CMS GC flags: JAVA_ARGS="-Xms12228m -Xmx12228m -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=65" On Thu, Jan 9, 2014 at 8:53 AM, Samu Wikstedt wrote: > Hi, > > I have a relatively big jenkins installation that has beco

Sudden crash of jenkins during high load

2014-01-09 Thread Samu Wikstedt
Hi, I have a relatively big jenkins installation that has become unstable: It has been configured with help of dynamic axes plugin which has enabled us to add really nice test coverage... ...which of course means more jobs running. I've noticed that once commit is made and all test-matrix is s

Re: Groovy Plugin VS Build Flow Plugin

2014-01-09 Thread Les Mikesell
On Thu, Jan 9, 2014 at 4:17 AM, dev123 wrote: > Yes that make sense but it seems to me that the same functionality can be > achieved with the Groovy Plugin not as pretty though. > > And why is the Build Environment removed from the Build Flow job type (e.g > Set Build Name is not possible which I

Re: Junit Attachment Plugin

2014-01-09 Thread akim
Sorry, didn't get the main idea. Plugin was installed and it's latest version. And it's say nothing bad after build. Just saying Build step 'Publish JUnit test result report' changed build result to UNSTABLE Unstable, because of fail test. Still can't understand what i'm missing. On Thursday

Re: Junit Attachment Plugin

2014-01-09 Thread Daniel Beck
The parsing rules were relaxed since the latest release of Junit Attachment plugin. Maybe build the plugin and see whether that fixes the issue. On 09.01.2014, at 15:24, a...@dealerfire.com wrote: > > > Hi everybody. > > Need help with configuration of JUnit xml, for JUnit attachment plugin.

Re: Unable to run flashplayer under Jenkins

2014-01-09 Thread Jonathan Rogers
Wim Deblauwe wrote: > Hi, > > "Since OpenGL is involved, I'd look at variables which affect shared > library loading." > > Do you have information on what variables that are? I suppose PATH is, > but are there others? The man page for the dynamic loader would be a good place to start. You also mig

Re: Unable to run flashplayer under Jenkins

2014-01-09 Thread Wim Deblauwe
Hi, "Since OpenGL is involved, I'd look at variables which affect shared library loading." Do you have information on what variables that are? I suppose PATH is, but are there others? "It's even possible that when you run flashplayer in an interactive shell, it's using the OpenGL library of real

Re: Sharing files between master and slave (dropbox like)

2014-01-09 Thread Les Mikesell
On Thu, Jan 9, 2014 at 2:51 AM, Adrian Nicolau wrote: > Hi there, I also have a question regarding this topic, sharing files between > the master and the slaves. Is there anyway to edit the userContent files via > the provided web interface? My master is a remote machine and I don't want > to conn

Re: Job deployed on wrong node

2014-01-09 Thread Paul McGregory
Found exactly the same in my jenkins log file: https://issues.jenkins-ci.org/browse/JENKINS-20769 -- 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-

Re: Email-ext doens't send email to 'requestor'

2014-01-09 Thread Slide
If mercurial triggered the build, then there is no "requestor." The requestor is a user that specifically triggers the build via the web. On Thu, Jan 9, 2014 at 7:48 AM, Avihay Eyal wrote: > I can't really attach the log since it's an internal network. I can > however write down some of the thi

Re: Sharing files between master and slave (dropbox like)

2014-01-09 Thread Jason Swager
Have you considered using the Custom Tool plugin ( https://wiki.jenkins-ci.org/display/JENKINS/Custom+Tools+Plugin)? We also used to use the approach of copying files from /userContent to the slaves on a per-build basis. But Custom Tools made it rather easier. First, the tool would only be c

Re: Email-ext doens't send email to 'requestor'

2014-01-09 Thread Avihay Eyal
I can't really attach the log since it's an internal network. I can however write down some of the things I saw. The scenario is that a Mercurial hook triggered the job. So after the job was finished, this what I have at the end of the Console Output: Build Step 'Execute shell' marked build as

Re: Email-ext doens't send email to 'requestor'

2014-01-09 Thread Avihay Eyal
I did configured the mail server, I didn't config the individual users. This job uses Mercurial plugin, and when I set it to trigger the job via the 'poll' option, it works, and I receive an email with the developer name in the 'To' list. That's why I assume there aren't any problems related to

Re: Change visual interface of jenkins with java

2014-01-09 Thread Stefan Bauer
Hello Stephen, so I will learn about creating a new Plugin and the basics first and then I will follow your advice! Lets see how far I get :) My feedback follows in a few days. Thanks for that! :-) Best regards Stefan Am Donnerstag, 9. Januar 2014 11:05:34 UTC+1 schrieb Stephen Connolly: >

Re: Is it normal to have 200 hudson.security.AuthorizationMatrixProperty/checkName thread ?

2014-01-09 Thread Stephen Connolly
Daniel, I fear I may have infected you with my sense of humour... http://bit.ly/1gLiN9R On 9 January 2014 11:39, Daniel Beck wrote: > Yes, that's normal when using the Active Directory plugin. IIRC additional > threads will be created until Jenkins is unresponsive and fails to create > new thr

Re: Email-ext doens't send email to 'requestor'

2014-01-09 Thread Slide
Please post your build log. On Jan 9, 2014 5:17 AM, "Avihay Eyal" wrote: > Hi, I added a post build event that sends an email upon 'Failure' to the > 'Requestor'. > This is a trigger that I added under the 'Advanced' section of the > Email-ext plugin. > Unfortunately, no email is sent to the requ

Re: Email-ext doens't send email to 'requestor'

2014-01-09 Thread Daniel Beck
Did you configure your email address in your user profile in Jenkins? Maybe it just fails to resolve username to email address for some reason. On 09.01.2014, at 13:17, Avihay Eyal wrote: > Hi, I added a post build event that sends an email upon 'Failure' to the > 'Requestor'. > This is a trig

Email-ext doens't send email to 'requestor'

2014-01-09 Thread Avihay Eyal
Hi, I added a post build event that sends an email upon 'Failure' to the 'Requestor'. This is a trigger that I added under the 'Advanced' section of the Email-ext plugin. Unfortunately, no email is sent to the requestor(I can receive the email, because I added my email in the 'cc') It happens w

Re: Is it normal to have 200 hudson.security.AuthorizationMatrixProperty/checkName thread ?

2014-01-09 Thread Daniel Beck
Yes, that's normal when using the Active Directory plugin. IIRC additional threads will be created until Jenkins is unresponsive and fails to create new threads. Try using the LDAP plugin instead. https://issues.jenkins-ci.org/browse/JENKINS-16429 https://wiki.jenkins-ci.org/display/JENKINS/LDAP

Job deployed on wrong node

2014-01-09 Thread Paul McGregory
Hey, I have 5 differend Slaves for different projects. Sometimes jenkins is deploying a job to a wrong slave, sometimes on the master. The executor is set by 0 on the master, the nodes by a value of 1 I find out, that if i set all slave by "deploy on demand", jenkins is alway just deploying on

Is it normal to have 200 hudson.security.AuthorizationMatrixProperty/checkName thread ?

2014-01-09 Thread dennys
I found my Jenkins has 200 threads and use Visual JVM to check. There are lots of thread like this, is it normal ? t.getName()=ComThread for Handling GET /view/test/job/test1/descriptorByName/hudson.security.AuthorizationMatrixProperty/checkName : RequestHandlerThread[#495], t.peer.getState()=TERM

Re: Groovy Plugin VS Build Flow Plugin

2014-01-09 Thread dev123
Yes that make sense but it seems to me that the same functionality can be achieved with the Groovy Plugin not as pretty though. And why is the Build Environment removed from the Build Flow job type (e.g Set Build Name is not possible which I need)? On Thursday, January 9, 2014 9:37:34 AM UTC+

Re: Change visual interface of jenkins with java

2014-01-09 Thread Stephen Connolly
What you want to do is create an alternative implementation of the View extension point. You can do that from a plugin and then create a new view at the root level of jenkins. Once you have such a view you can then change the default view of your root to be your newly created view. See any of the

Change visual interface of jenkins with java

2014-01-09 Thread Stefan Bauer
Hallo, I want to change the first page of jenkins (table with all jobs ) in eclipse with java. So, I want to develop a new/own visual interface. The settings of my IDE is done, so I could start with the coding... But I don't know where... My questions are: 1.) Where, i.e. in which package,

Re: Sharing files between master and slave (dropbox like)

2014-01-09 Thread Adrian Nicolau
Hi there, I also have a question regarding this topic, sharing files between the master and the slaves. Is there anyway to edit the userContent files via the provided web interface? My master is a remote machine and I don't want to connect to it every time I need to edit some file. My jobs requ

Re: Unable to send a mail through Jenkins.

2014-01-09 Thread chethan jain
Hi Brosh. The error log attached is after following the same steps i.e. in test configuration of Manage Jenkins. FYI, we have hosted Jenkins on a Windows 7 PC. Thanks, On Thursday, January 9, 2014 1:16:32 PM UTC+5:30, Brosh, Yossi wrote: > > Hi , > > > > Please try first to test your serv

Re: Groovy Plugin VS Build Flow Plugin

2014-01-09 Thread nicolas de loof
build flow is an orchestration plugin, not a scripting one. The DSL is actually groovy based, but should be used only to trigger jobs. 2014/1/8 dev123 > I have installed the Build Flow Plugin: > https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin > > making the Build Flow Job Type av