Multiple Jenkins possible ? - quick question

2012-11-26 Thread Z W
Hi

We have one Jenkins configured and it went down.
Our only Jenkins as 3 slaves.
We like to install another Jenkins acting as secondary master for the
3 slaves nodes in case the primary master Jenkins goes down.

Will this configuration work ?
Can multiple Jenkins work together ?
How do we configure secondary Jenkins such that when primary Jenkins
goes down, it takes over ?
How would the slaves know that the secondary Jenkins is in service and
not the primary Jenkins.

Thanks for your help


How do I known what properties and method exist when writing Groovy scripts?

2012-11-26 Thread Martin d'Anjou

Hi,

How do I find out the methods and properties of things when I write a 
Groovy script? For example, "Hudson.instance.getItem()", how am I 
supposed to know that "instance" is a property of Hudson, and that 
"getItem()" is a method of "instance"?


Where do you people find all this?

Another example: I searched for buildVariableResolver in the source code 
with find . -name "*.java" -exec grep -H buildVariableResolver {} \; and 
nothing comes out.


I read the javadocs for Jenkins and Hudson, but that does not seem to be 
enough.


Thanks,
Martin


Re: Pass env variables to junit test from jenkins

2012-11-26 Thread Serega Sheypak
I did it here:
Project configuration -> Maven -> Build ->
Goals and options (input field), the I've added
 -DargLine="-Dmyprop=myvalue... etc..."

Thanks, problem is solved.
2012/11/26 Clemens 

> Hey,
>
> have you tried to split it, like this:
>
> variable=value
> export variable
>
> So, you are not assigning your variable in your export line.
> But, not sure about it.
> Greetings
>
>
>


CSS and Images Broken Post LTS 1.480.1 Update?

2012-11-26 Thread bhill
Hi,
I currently have an instance of Jenkins running the LTS 1.480.1.  I do have 
Jenkins managing the users who have access to the jobs.  After the update I 
noticed that logged out users have broken CSS.  Has anyone else had any 
issues with their CSS after the upgrade?  It is causing confusion among our 
engineers as the login links are white on white...

Is their a way I can fix the CSS on my end.  I don't want to do too much 
customization as I want to keep up with the LTS branch without worrying 
about breaking my customization.  I've noticed their is a plugin called the 
'Simple Theme Plugin' that may allow me to customize the CSS so they can 
see it, but again.  I want to keep it as out of the box as possible. 
 Please advise if this is something I can do or if this is a known issue. 
 I've searched around a bit, but have come up empty handed.  

Thank you,

P.S. Please see the attached image





Re: Build flow plugin: fails build if there are unstable builds

2012-11-26 Thread bearrito
Why don't you handle the result codes in your job? Meaning just intercept 
the result code and change it to 0 if the build is only unstable.
Yes, it is an ugly solution...

On Thursday, November 22, 2012 10:40:19 AM UTC-5, Egle wrote:
>
> Hi,
>
> I am trying to set up a following flow if builds:
> build( "A" )
> build( "B" )
> build( "C" )
>
> Now I get "FATAL: null" error and stack trace in console if build B is 
> unstable. So the flow does not execute job C. Is there a way to configure a 
> flow that it would only terminate if the performed builds are failing and 
> not becoming unstable?
>
> Thanks,
> Egle
>


Re: Installing Jenkins on Windows Server 2012 Standard fails

2012-11-26 Thread bearrito
I would elevate the service that Jenkins is running under to a local admin. 
You can then reduce the amount of privileges by trial and error to the 
appropriate level for your organization.

This isn't a Windows 2012 issue as it occurs on 2008.



On Sunday, November 25, 2012 9:26:07 PM UTC-5, Drew Mace wrote:
>
> I'm trying to install Jenkins on a Windows Server 2012 Standard edition 
> box but hit a snag - I am getting an error: Service 'Jenkins' (Jenkins) 
> failed to start.  Verify that you have sufficient privileges to start 
> system services.  I ran the installer as administrator (elevated privs).  
> Anyone have any ideas what i could try?



Re: Cannot remove old users

2012-11-26 Thread pzimmer
Hi Clemens,

Thanks for the reply.

I may not have been clear enough in my original post. The users that are 
having the issues do not have a directory in the JENKINS_HOME/users 
directory. That is why I decided to email the list, as I see no other 
locations that have user info in them.

-Phil

On Thursday, November 22, 2012 3:54:30 AM UTC-7, Clemens wrote:
>
> Hey Phil,
>
> the Jenkins Userdatabase is just a folder in your JENKINS_HOME Directory.
> "Users" is where you find all your "Members". Maybe, just remove the 
> folder from one of your
> users, who is getting the Error Message, "Username is already taken". Now 
> he should be able to
> register again.
>
> I also tried to "delete a user" in the Jenkins "User Page".
> After "You really want to delete..." the user was not shown on the User 
> Page.
> So, just check, if there is a Folder at the JENKINS_HOME users Directory.
>


Re: Broken link for 1.492 on http://pkg.jenkins-ci.org/debian/

2012-11-26 Thread Larry Shatzer, Jr.
Try again. Kohsuke fixed the release. It failed due to the introduction of
fallback.jenkins-ci.org

-- Larry


On Mon, Nov 26, 2012 at 3:54 AM, Adam PAPAI  wrote:

> Yes but it's in the debian repo index, and the 1.491 was overwritten by
> the 1.492, so it's not possible to use it  from the jenkins repo.
>
> So the fix is:
>
> - remove 1.492 from the repo index
> - add 1.492 to the repo
>
> Christoph Kutzinski wrote:
>
>> It seems that 1.492 isn't released, yet. At least the changelog doesn't
>> mention it, yet.
>> http://jenkins-ci.org/**changelog 
>>
>>
>> Am 26.11.2012 11:21, schrieb Ollie Walsh:
>>
>>> I've created an issue for this -
>>> https://issues.jenkins-ci.org/**browse/JENKINS-15919
>>>
>>> On Monday, 26 November 2012 10:07:18 UTC, Ollie Walsh wrote:
>>>
>>> Hi,
>>>
>>> I'm getting a http 404 error for
>>> 
>>> http://pkg.jenkins-ci.org/**debian/binary/jenkins_1.492_**all.deb
>>> 
>>> 
>>> >.
>>>
>>> Thanks,
>>> Ollie
>>>
>>>
>>
> --
> Adam PAPAI
> E-mail: w...@wooh.hu
> Phone: +3630 3355735
> Web: http://www.wooh.hu
>
>


Re: hg pull has no effect

2012-11-26 Thread Harpreet singh Wadhwa
@HEAD should not force the plugin to crash.

Can you please ensure that there was no space in between the URL and @HEAD.
Syntax: @HEAD

If the error still exists then can you please paste the error logs here.

Thanks

On Mon, Nov 26, 2012 at 8:25 AM, Felipe Coelho  wrote:

> Hi
>
> I suspect this is time difference issue.
>> Check the time of your Mercurial system and Jenkins system, if I am right
>> then your Jenkins system would have some old date :-)
>>
>
> Actually the Mercurial system was behind the Jenkins server by ~3 seconds.
> Now both are running ntpd anyway, but the problem still persists. Note that
> I'm using the default quiet period of 5 seconds, so the Mercurial server
> actually has some time to catch up anyway
>
>
>> If that turns out to be true then you have two solutions:
>> * Either sync the time of both the machines.
>> * Or add @HEAD (at the end, without space) to the hg repo path in job
>> configuration.
>>
>> PS: In any case you can try this second solution, this should solve your
>> problem
>> Thanks
>>
>
> I've tried to append @HEAD to the hg repo but that only made the mercurial
> plugin crash.
>
> For now my ugly workaround is to insert a "hg pull -u" as the first
> command to run as a build step, at least it is getting new changesets
>



-- 

http://wharpreet.blogspot.com
http://linuxgazettes.blogspot.com
http://in.linkedin.com/in/wharpreet


Re: Dependency Graph View Plugin side effects

2012-11-26 Thread domi
If you have issues with this, please open a bug in JIRA
/Domi

On 26.11.2012, at 07:34, David Resnick  wrote:

> It seems that the Dependency Graph View plugin is much more than advertised. 
> In addition to viewing dependencies, it allows creating them.
> 
> Am I the first to encounter this new, um, feature? I played around with the 
> endpoints in the new Javascript graph view, making new connections and seeing 
> what capabilities jsplumb gives. If I'm not mistaken, the new connections I 
> created were translated to build triggers and duplications of existing 
> dependencies.
> 
> I think it would be best to disable these effects. In any case, a word of 
> warning to users of this plugin: don't modify the graph!
> 
> - David



Re: Installing Jenkins on Windows Server 2012 Standard fails

2012-11-26 Thread Dirk Kuypers
Hi,

you could also try this:



  

  


as
jenkins-slave.exe.config
or
jenkins.exe.config

if you are behind a proxy that does not let you contact external servers to
verify program signatures.

BR
Dirk


Re: Installing Jenkins on Windows Server 2012 Standard fails

2012-11-26 Thread MDKF
Check for the cause in jenkins.err.log in the directory where jenkins.war 
is located. 

On Sunday, November 25, 2012 9:26:07 PM UTC-5, Drew Mace wrote:
>
> I'm trying to install Jenkins on a Windows Server 2012 Standard edition 
> box but hit a snag - I am getting an error: Service 'Jenkins' (Jenkins) 
> failed to start.  Verify that you have sufficient privileges to start 
> system services.  I ran the installer as administrator (elevated privs).  
> Anyone have any ideas what i could try?



Re: hg pull has no effect

2012-11-26 Thread Felipe Coelho
Hi

I suspect this is time difference issue.
> Check the time of your Mercurial system and Jenkins system, if I am right 
> then your Jenkins system would have some old date :-)
>

Actually the Mercurial system was behind the Jenkins server by ~3 seconds. 
Now both are running ntpd anyway, but the problem still persists. Note that 
I'm using the default quiet period of 5 seconds, so the Mercurial server 
actually has some time to catch up anyway
 

> If that turns out to be true then you have two solutions:
> * Either sync the time of both the machines.
> * Or add @HEAD (at the end, without space) to the hg repo path in job 
> configuration.
>
> PS: In any case you can try this second solution, this should solve your 
> problem
> Thanks
>

I've tried to append @HEAD to the hg repo but that only made the mercurial 
plugin crash.

For now my ugly workaround is to insert a "hg pull -u" as the first command 
to run as a build step, at least it is getting new changesets


Re: View Level Access-Need Help !!

2012-11-26 Thread Clemens
In this case,

maybe have a look at this Plugin:
View Job Filters
*(This plugin provides a number of filters that you can "chain" 
togetherto
 
provide a much easier way to create views to organize hundreds of jobs.)*

There is a "Name matching option".
I did not read the full information Text, but this could be a help.

Greetings


Re: View Level Access-Need Help !!

2012-11-26 Thread japinder gill
yes i tried using Project-based Matrix auth. but the problem is i need to 
go to each and every job and grant the access to users. is there a way 
where i can control access of owhole view in one go?
eg, if TOM works on project ABC. so i will create view with name ABC and 
want TOM to see only jobs which are under project ABC.


OR will it be possible to give access to all the job which are on 
particular slave?
  and, TOM should be able to see all jobs which are on slave ABC


On Monday, November 26, 2012 4:22:49 PM UTC+5:30, Clemens wrote:
>
> Hi,
>
> one possibility would be, to use Jenkins "Project-based Matrix 
> Authorization Strategy"
>  - (@ Enable Security - Manage Jenkins Page)
> Have you tried this ?
>
> So, you can assign in the Projects which user has access to which Views.
> (If i got your question correctly)
>
> But, this also includes, that you have to configure all Projects, and edit 
> every Project.
>


Re: Installing Jenkins on Windows Server 2012 Standard fails

2012-11-26 Thread Clemens
I dont know if you have tried to start your Service with your command line 
? 
Do you ?
Enter your cmd (with Admin) and try : "net start Jenkins"
Maybe he will get it this way.

Greetings



Re: Broken link for 1.492 on http://pkg.jenkins-ci.org/debian/

2012-11-26 Thread Adam PAPAI
Yes but it's in the debian repo index, and the 1.491 was overwritten by 
the 1.492, so it's not possible to use it  from the jenkins repo.


So the fix is:

- remove 1.492 from the repo index
- add 1.492 to the repo

Christoph Kutzinski wrote:

It seems that 1.492 isn't released, yet. At least the changelog doesn't
mention it, yet.
http://jenkins-ci.org/changelog


Am 26.11.2012 11:21, schrieb Ollie Walsh:

I've created an issue for this -
https://issues.jenkins-ci.org/browse/JENKINS-15919

On Monday, 26 November 2012 10:07:18 UTC, Ollie Walsh wrote:

Hi,

I'm getting a http 404 error for
http://pkg.jenkins-ci.org/debian/binary/jenkins_1.492_all.deb
.

Thanks,
Ollie





--
Adam PAPAI
E-mail: w...@wooh.hu
Phone: +3630 3355735
Web: http://www.wooh.hu



Re: View Level Access-Need Help !!

2012-11-26 Thread Clemens
Hi,

one possibility would be, to use Jenkins "Project-based Matrix 
Authorization Strategy"
 - (@ Enable Security - Manage Jenkins Page)
Have you tried this ?

So, you can assign in the Projects which user has access to which Views.
(If i got your question correctly)

But, this also includes, that you have to configure all Projects, and edit 
every Project.


Re: Broken link for 1.492 on http://pkg.jenkins-ci.org/debian/

2012-11-26 Thread Christoph Kutzinski
It seems that 1.492 isn't released, yet. At least the changelog doesn't 
mention it, yet.

http://jenkins-ci.org/changelog


Am 26.11.2012 11:21, schrieb Ollie Walsh:
I've created an issue for this 
- https://issues.jenkins-ci.org/browse/JENKINS-15919


On Monday, 26 November 2012 10:07:18 UTC, Ollie Walsh wrote:

Hi,

I'm getting a http 404 error for
http://pkg.jenkins-ci.org/debian/binary/jenkins_1.492_all.deb
.

Thanks,
Ollie





Re: Pass env variables to junit test from jenkins

2012-11-26 Thread Clemens
Hey,

have you tried to split it, like this:

variable=value
export variable

So, you are not assigning your variable in your export line.
But, not sure about it.
Greetings




Re: Broken link for 1.492 on http://pkg.jenkins-ci.org/debian/

2012-11-26 Thread Ollie Walsh
I've created an issue for this 
- https://issues.jenkins-ci.org/browse/JENKINS-15919

On Monday, 26 November 2012 10:07:18 UTC, Ollie Walsh wrote:
>
> Hi,
>
> I'm getting a http 404 error for 
> http://pkg.jenkins-ci.org/debian/binary/jenkins_1.492_all.deb.
>
> Thanks,
> Ollie
>


Broken link for 1.492 on http://pkg.jenkins-ci.org/debian/

2012-11-26 Thread Ollie Walsh
Hi,

I'm getting a http 404 error for 
http://pkg.jenkins-ci.org/debian/binary/jenkins_1.492_all.deb.

Thanks,
Ollie


Re: Builds of new configuration in a matrix build are lost after some time.

2012-11-26 Thread B.Latinville
Hi, 

In my setup, the master does not execute the jobs.
I have slaves with label corresponding to the OS, and other labels (for 
example, some related to tools that are installed). Also a "build" and 
"test" label.

Here is the matrix job configuration, 2 axis : 
- one "user defined axis", with several values, were a new value was added  
and caused problems.
- one "slave axis", using labels. Only the "build" label is used.
It is displayed as a one axis matrix as there only one choice for the 
second axis.

Several slave have the label "build". So the child job will run in parallel 
on several nodes. On child job will
not always execute on the same machine.

Some days ago, I faced the same issue on  a "user defined axis" matrix job 
where I just added the build label axis, 
The job has two configuration that are slave specific. On child job will 
always execute on the same node.

The issue is not only when adding some values to a user defined axis. At 
some point, Jenkins wrongly uses the old job configuration.

The good thing is that the missing build that had disappeared few hours 
after the build is back. I can everything in Jenkins.
Some new builds have been performed with the new user defined axis label, 
and they are all visible.
That means nothing is lost.