Groovy Plugin > Is it possible to change download URL for binaries?

2014-01-02 Thread Nick


Hi all,


*Background:* Currently using the Groovy Plugin 
, on a new slave, 
the Groovy Plugin downloads the required binaries from the codehaus.org website.


i.e. "Unpacking 
http://dist.groovy.codehaus.org/distributions/groovy-binary-2.2.1.zip to 
/*some_path*/jenkins-slave/tools/hudson.plugins.groovy.GroovyInstallation/Groovy_221
 on *my_server"*



*Question:* Is it possible to (re-)configure the base url, so that it can 
retrieve the binary from a locally hosted webserver? (e.g. the Jenkins instance)


e.g. 
*http://localhost:8080/jenkins/userContent/groovy*/distributions/groovy-binary-2.2.1.zip


I've had a quick look through the source code, and haven't been able to work 
out where the URL is referenced! (-> hudson.tools.DownloadFromUrlInstaller, how 
is the 'id' being set?). Perhaps a better question might be:

*Question:* How is the download URL being set in the code?


Kind regards,


Nick

-- 
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.


Jenkins fails to run correctly after update.

2014-01-02 Thread Matt Connolly
Dear list,

I'm using Jenkins in a SmartOS system (solaris-like). It has been running 
fine there for about 2 years or so now.

However, after a recent update, when I start jenkins it launches, but when 
I visit the site with a web browser, all I see is a directory listing.

http://i895.photobucket.com/albums/ac156/matt_connolly/ScreenShot2014-01-03at94703am.png


I've done some searching and haven't found anything that fits this 
description. Can anyone help me get it to launch correctly again?


Thanks,
Matt

-- 
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: LDAP user and default rights

2014-01-02 Thread Daniel Beck
If you're using Project-based Matrix Permissions, the 'Create Job Advanced' 
plugin can help with this, giving job creators the permission to configure.

On 02.01.2014, at 14:12, Philipp Kraus  wrote:

> Each user, which logins the first time, should manage its own jobs. The user 
> should also add / delete nodes, but only nodes which are added
> by the use can be also removed. How must be set the rights to create these 
> setting?

-- 
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: Need help/guidance on jenkins/plot plugin setup and configure

2014-01-02 Thread Charley Yen



Thank you, Kevin!! That's the reason! It's because I always used a static 
xml containing a hard coded failure.

And I got the plot working (See the attached screen shot). Though it's not 
a pie chart I want, it still serves my purpose.



Now I have some follow-up questions:
1) As it's shown in the attached screen shot, there were two passes & one 
fail. Is there a way to display it as 67% passed and 33% failed, instead?

The xml file I am using now is list below:
 

  
  
  
 details about 
failure
  


2) What is the appropriate way to the failed log file in the link, e.g. 
 details about 
failure?

3) How to construct the xml file to include skipped tests, if any?

Thanks.


On Thursday, January 2, 2014 2:53:43 PM UTC-5, Kevin Fleming wrote:
>
> The status of the job (stable/unstable/failed) is based on the contents of 
> the test result file, not the exit status of your script. If any of the 
> test results you emit in the file don't indicate 'success', then Jenkins 
> will consider the job unstable (which means the build was successful, but 
> one or more tests failed).
>
> - Original Message -
> From: jenkins...@googlegroups.com 
> To: jenkins...@googlegroups.com 
> At: Jan 2 2014 14:51:36
>
> Below is my piece of perl code. I made it always exit gracefully.
>
> Line numbers are also included here. Could you please tell me which 
> line(s) would cause a test result failure?
>
> Thanks.
>
>
>   1 #!/usr/bin/perl
>   2
>   3 use strict;
>   4 use warnings;
>   5 use File::Path;
>   6 use File::Copy;
>   7 use FindBin '$Bin';
>   8
>   9 my $org_rslt = "$Bin/TEST-results.xml.org"; *# a predefined static 
> xml file*
>  10 my $rslt = "$Bin/TEST-results.xml";
>  11 rmtree($rslt) if(-e $rslt);
>  12
>  13 if(-e $org_rslt) {
>  14   if(!copy($org_rslt, $rslt)) { *# To create a fresh xml file*
>  15 print "Failed to copy '$org_rslt' to '$rslt'!\n";
>  16   }
>  17 }
>  18 else {
>  19   print "===--->>>The original result file '$org_rslt' does not 
> exist!!\n";
>  20 }
>  21
>  22 if(-e $rslt) {
>  23   print "The NEW result file '$rslt' exists!\n";
>  24 }
>  25 else {
>  26   print "===--->>>The NEW result file '$rslt' does not exists!\n";
>  27 }
>  28 exit 0; *# always exit gracefully no matter what*
>
> -- 
> 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: Need help/guidance on jenkins/plot plugin setup and configure

2014-01-02 Thread Kevin Fleming (BLOOMBERG/ 731 LEXIN)
The status of the job (stable/unstable/failed) is based on the contents of the 
test result file, not the exit status of your script. If any of the test 
results you emit in the file don't indicate 'success', then Jenkins will 
consider the job unstable (which means the build was successful, but one or 
more tests failed).

- Original Message -
From: jenkinsci-users@googlegroups.com
To: jenkinsci-users@googlegroups.com
At: Jan  2 2014 14:51:36

Below is my piece of perl code. I made it always exit gracefully.

Line numbers are also included here. Could you please tell me which line(s) 
would cause a test result failure?

Thanks.


  1 #!/usr/bin/perl
  2
  3 use strict;
  4 use warnings;
  5 use File::Path;
  6 use File::Copy;
  7 use FindBin '$Bin';
  8
  9 my $org_rslt = "$Bin/TEST-results.xml.org"; # a predefined static xml file
 10 my $rslt = "$Bin/TEST-results.xml";
 11 rmtree($rslt) if(-e $rslt);
 12
 13 if(-e $org_rslt) {
 14   if(!copy($org_rslt, $rslt)) { # To create a fresh xml file
 15 print "Failed to copy '$org_rslt' to '$rslt'!\n";
 16   }
 17 }
 18 else {
 19   print "===--->>>The original result file '$org_rslt' does not exist!!\n";
 20 }
 21
 22 if(-e $rslt) {
 23   print "The NEW result file '$rslt' exists!\n";
 24 }
 25 else {
 26   print "===--->>>The NEW result file '$rslt' does not exists!\n";
 27 }
 28 exit 0; # always exit gracefully no matter what

-- 
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: Need help/guidance on jenkins/plot plugin setup and configure

2014-01-02 Thread Charley Yen
Below is my piece of perl code. I made it always exit gracefully.

Line numbers are also included here. Could you please tell me which line(s) 
would cause a test result failure?

Thanks.


  1 #!/usr/bin/perl
  2
  3 use strict;
  4 use warnings;
  5 use File::Path;
  6 use File::Copy;
  7 use FindBin '$Bin';
  8
  9 my $org_rslt = "$Bin/TEST-results.xml.org"; *# a predefined static xml 
file*
 10 my $rslt = "$Bin/TEST-results.xml";
 11 rmtree($rslt) if(-e $rslt);
 12
 13 if(-e $org_rslt) {
 14   if(!copy($org_rslt, $rslt)) { *# To create a fresh xml file*
 15 print "Failed to copy '$org_rslt' to '$rslt'!\n";
 16   }
 17 }
 18 else {
 19   print "===--->>>The original result file '$org_rslt' does not 
exist!!\n";
 20 }
 21
 22 if(-e $rslt) {
 23   print "The NEW result file '$rslt' exists!\n";
 24 }
 25 else {
 26   print "===--->>>The NEW result file '$rslt' does not exists!\n";
 27 }
 28 exit 0; *# always exit gracefully no matter what*

-- 
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: Need help/guidance on jenkins/plot plugin setup and configure

2014-01-02 Thread Mark Waite
A Jenkins build has three possible states, stable, unstable, and failed.
 Unstable usually indicates that the processes which were executed reported
success to the operating system, but there were test failures.  Unstable is
less severe than failed and helps remind users that there was a test result
failure.

I can't help you with the pie chart publishing.  I still don't see how a
pie chart will help you compared to the standard charts available in
Jenkins.  You'll need to experiment with other plugins, or seek help from
other users.

Mark Waite


On Thu, Jan 2, 2014 at 12:04 PM, Charley Yen  wrote:

> Thank you, Mark. And sorry for not replying promptly. I was not online
> during the new year day.
>
> I just want to tell you that I watched your video from my home machine (I
> cannot watch it from work). It's very helpful. Thank you so much.
>
> So I configured my jenkins by following your video.
>
> I wrote a small perl code which does nothing but creating an xml file.
>
> After a run in jenkins, the console output is like this:
>
> Recording test results
> Build step 'Publish JUnit test result report' changed build result to UNSTABLE
>
> Why am I getting this?
>
> In addition, I still don't know how to create a pie chart by publishing the 
> JUnit test result report.
>
> Again, thanks for your help. It would be nice to publish your video in 
> youtube.
>
>
>
>
> --
> 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: Need help/guidance on jenkins/plot plugin setup and configure

2014-01-02 Thread Charley Yen
Thank you, Mark. And sorry for not replying promptly. I was not online 
during the new year day.

I just want to tell you that I watched your video from my home machine (I 
cannot watch it from work). It's very helpful. Thank you so much.

So I configured my jenkins by following your video. 

I wrote a small perl code which does nothing but creating an xml file.

After a run in jenkins, the console output is like this:

Recording test results
Build step 'Publish JUnit test result report' changed build result to UNSTABLE

Why am I getting this?

In addition, I still don't know how to create a pie chart by publishing the 
JUnit test result report.

Again, thanks for your help. It would be nice to publish your video in youtube.


 

-- 
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: Is there a chance to get Subversion 1.8.x running with jenkins?

2014-01-02 Thread Mike Konikoff
There is an open issue for this here 
https://issues.jenkins-ci.org/browse/JENKINS-18935

On Wednesday, July 31, 2013 9:33:55 AM UTC-4, Kevin Fleming wrote:
>
> Are you saying that SvnKit in Jenkins can't talk to a Subversion 1.8 
> server? That would be quite surprising, so I suspect that you are having 
> problems because you are sharing a Subversion checkout (working copy) 
> between Jenkins jobs and other uses, and they are using different versions 
> of Subversion.
>
> If so, don't do that! The Jenkins workspace should be used only by Jenkins.
>
> - Original Message -
> From: jenkins...@googlegroups.com 
> To: jenkins...@googlegroups.com 
> At: Jul 30 2013 17:03:54
>
> Hi!
>
> I made a big mistake. I changed our subversion to the newest version. 
> Everything works fine. All our IDEs and tools are able to handle it, but 
> not Jenkins.
>
> As I understood, Jenkins uses SVNKIT. There is an alpha version of SVNKIT 
> which supports the subversion 1.8.x format.
>
> Is there a chance for me, to get this alpha version running in our Jenkins 
> installation?
>
> Thanks,
> Christian.
>
> -- 
> 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: LDAP user and default rights

2014-01-02 Thread Brosh, Yossi
Hi to all,

I am using Build Flow 
Plugin , and I 
want to get BUILD_USER variable in the job, any idea ?
BR Yossi

-- 
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: LDAP user and default rights

2014-01-02 Thread Stephen Connolly
don't type the `'s


On 2 January 2014 13:23, Stephen Connolly
wrote:

> use the magic user id `authenticated`
>
>
> On 2 January 2014 13:12, Philipp Kraus  wrote:
>
>> Hello,
>>
>> I use Jenkins with LDAP authentification. Each User can login, but on
>> default the user hasn't no rights. How can I set default rights in Jekins?
>> Each user, which logins the first time, should manage its own jobs. The
>> user should also add / delete nodes, but only nodes which are added
>> by the use can be also removed. How must be set the rights to create
>> these setting?
>>
>> Thanks
>>
>> Phil
>>
>> --
>> 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: LDAP user and default rights

2014-01-02 Thread Stephen Connolly
use the magic user id `authenticated`


On 2 January 2014 13:12, Philipp Kraus  wrote:

> Hello,
>
> I use Jenkins with LDAP authentification. Each User can login, but on
> default the user hasn't no rights. How can I set default rights in Jekins?
> Each user, which logins the first time, should manage its own jobs. The
> user should also add / delete nodes, but only nodes which are added
> by the use can be also removed. How must be set the rights to create these
> setting?
>
> Thanks
>
> Phil
>
> --
> 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.


LDAP user and default rights

2014-01-02 Thread Philipp Kraus
Hello,

I use Jenkins with LDAP authentification. Each User can login, but on 
default the user hasn't no rights. How can I set default rights in Jekins?
Each user, which logins the first time, should manage its own jobs. The 
user should also add / delete nodes, but only nodes which are added
by the use can be also removed. How must be set the rights to create these 
setting?

Thanks

Phil

-- 
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.