Re: How to publish artifacts which will be still available via links on Jenkins?

2012-12-13 Thread Vladimir Zak
Hi,

I have a look at it but it is not so clear to me why I should use that?

What are the advantages of the usage of it?

Thank you.

zakyn




2012/12/13 Clemens :
> Hi,
>
> have you just thought about using "Artifactory" ?
>
>
> Am Donnerstag, 13. Dezember 2012 07:39:52 UTC+1 schrieb zakyn:
>>
>> Hello,
>>
>> I have this situation. I have limited space on VM so I have to move the
>> results(artifacts) to the another virtual HDD (for example
>> \\file01\jenkins\results) but I need to have
>> the links to these files still available from the Jenkins web pages.
>>
>> I went through the plugins but I did not find what I need.
>>
>> Could you please help me?
>>
>> Thank you.
>>
>> Zakyn


Re: Slave setup questions...

2012-12-13 Thread Jeff
Thanks...I'm not worried about the master and I know I don't need Tomcat,
but that is how we have been deploying the master.

I'm now trying to configure/add slaves and the settings for the Master
don't directly translate to the slaves, at least in ways that are obvious.
 For example, I told the master to automatically install multiple JDK
versions.  Do the slaves automatically install JDK's as well?  Seems broken
if not, but I don't know how to tell if it works as I've not reached that
point yet on the slaves.

The GIT install on the slaves so far has been a manual process.  I need to
get the GIT binaries and then the SSH keys installed in the right place
(with the right permissions) and then I think I need to add the GIT server
key to the authorized_keys file.  I might be able to share/copy them but
I've not worked that out yet.

Once I work out GIT, I need to do work out Maven, SVN, JDK's, ANT, SONAR,
etc. settings.

The frustration being that I haven't seen an obvious way to translate the
server settings (tools, config, etc.) easily to the slaves so that the jobs
just work and I haven't found anything explaining how to do it or a best
practice for doing it once and easily duplicating those steps to additional
slaves.



On Wed, Dec 12, 2012 at 12:59 AM, frank stockmans  wrote:

> I tend to run all my builds on slaves.
> - make sure the workspace on slaves is different from that on the master
> - have a recent version of java on the slave
> - be able to ssh to it and our .cshrc should throw any error's or messages
> to the terminal when you get there
> Slaves need to be able to get to your git/SVN servers.
>
> You don't need tomcat to run a jenkins master. You can run it natively.
> >java --jar jenkins.war &
> Backup $JENKINS_HOME on the master. It is all you need.
>
> Have Fun
> Frank
>
>
> On Tuesday, December 11, 2012 3:33:09 PM UTC-8, Jeff Vincent wrote:
>
>> I'm starting to setup a new master/slave configuration using Ubuntu 12.10
>> + Tomcat 7.  I couldn't find any real docs regarding slaves and could use
>> some clarification on best practices particularly with tools.
>>
>> My builds use:
>>
>> Git or SVN
>> Maven
>> SVN
>> Java 6 and 7
>>
>> Additionally I have configured ANT for some legacy projects (that I may
>> not convert) and with maven I use SONAR and the maven release plugin.
>>
>> What is the best practice for getting a slave configured?
>>
>> So far, the issues I've had relate to configuring GIT, git ssh-key auth,
>> and Maven settings.  I'm sure the list will continue.
>>
>> Any help is appreciated to make this less painful...
>>
>> --
>> Jeff Vincent
>> preda...@gmail.com
>>
>> See my LinkedIn profile at:
>> http://www.linkedin.com/in/**rjeffreyvincent
>> I ♥ DropBox  !!
>>
>>


-- 
Jeff Vincent
predato...@gmail.com
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent
I ♥ DropBox  !!


Re: Jenkins Git suddenly stopped working

2012-12-13 Thread Scott Evans
Not sure what OS you're running on, but could it be that the user that the
Jenkins agent is running as might not have permissions to access network
resources to do a DNS lookup?  Seems odd, but that's the only thing that
comes to mind for this case.

Scott

On Thu, Dec 13, 2012 at 7:29 PM, mwpowellhtx  wrote:

> Don't know what happened. Turns out it was a strange DNS issue (as folks
> pointed out). What makes it strange is why it would fail for Jenkins and
> still succeed for a command line Git Bash.
>
> To workaround I added an entry in my hosts file and that has "fixed" at
> least my part of the issue. Still in question is whether whatever DNS
> services are up and running properly.
>
> On Thursday, December 13, 2012 6:05:04 PM UTC-6, mwpowellhtx wrote:
>>
>> No, Jenkins is running on the same machine as my day to day development.
>> Not the best of ideas I know.
>>
>> For the second part, yes, I can clone from a command line or Git Bash.
>>
>> On Thursday, December 13, 2012 5:44:40 PM UTC-6, Andrew Melo wrote:
>>>
>>> I mean, presumably the machine you work on day to day isn't the machine
>>> your Jenkins slaves run on (since it seems like you have a larger install)
>>>
>>> If you SSH to your Jenkins master/slaves, can you clone from them?
>>>
>>> 
>>> Andrew Melo
>>> Sent from my secret fortress.
>>>
>>> On Dec 14, 2012, at 0:17, mwpowellhtx  wrote:
>>>
>>> How do you mean, "connect to your slaves, clone manually"? From a
>>> command line or Git Bash? Yes, I can clone manually with the same (copy and
>>> paste) SSH URI.
>>>
>>> On Thursday, December 13, 2012 4:33:12 PM UTC-6, Andrew Melo wrote:

 On Thu, Dec 13, 2012 at 11:24 PM, mwpowellhtx 
 wrote:
 > And I can assure you it's not. I copy and paste the exact same
 address on
 > the command line, and I can clone from the command line. Only Jenkins
 is now
 > consistently failing across the board for jobs that were previously
 > succeeding.
 >
 > We're speculating whether repositoryhosting.com (our host) has some
 limits
 > set on SSH.

 This seems to look like your DNS isnt resolving the host name right,
 it's not (necessarily) a matter of you fumbling the hostname...

 stderr: ssh: : no address associated with name
 fatal: Could not read from remote repository.

 If you connect to your slaves, can you do a git clone manually?

 >
 >
 > On Thursday, December 13, 2012 3:59:42 PM UTC-6, SA Evans wrote:
 >>
 >> The error would indicate to me that it can't find the host where
 your repo
 >> is, whether a typo in that variable setting that's not getting
 resolved
 >> through your nameserver, or some sort of network issue, most likely.
 >>
 >>
 >>
 >> On Thu, Dec 13, 2012 at 3:47 PM, mwpowellhtx 
 wrote:
 >>>
 >>> To clarify, I've edited the actual names out. The names are there,
 it was
 >>> working earlier. Now suddenly it has stopped working.
 >>>
 >>> A colleague of mine and I are wondering whether it's a SSH thing,
 or
 >>> perhaps there's a limit set by our host, or something.
 >>>
 >>> On Thursday, December 13, 2012 3:43:44 PM UTC-6, mwpowellhtx wrote:
 
  I'm not sure what you mean. Can you be more specific? It's
 possible
  something got unset, but like I said, it was working all day until
 just now.
 
  On Thursday, December 13, 2012 3:38:27 PM UTC-6, SA Evans wrote:
 >
 > Looks like you're missing an environment setting for repo-host
 >
 > Scott
 >
 > On Thu, Dec 13, 2012 at 3:35 PM, mwpowellhtx 

 > wrote:
 >>
 >> stderr: ssh: : no address associated with name
 >
 >
 >>
 >



 --
 --
 Andrew Melo

>>>


Re: Jenkins Git suddenly stopped working

2012-12-13 Thread mwpowellhtx
Don't know what happened. Turns out it was a strange DNS issue (as folks 
pointed out). What makes it strange is why it would fail for Jenkins and 
still succeed for a command line Git Bash.

To workaround I added an entry in my hosts file and that has "fixed" at 
least my part of the issue. Still in question is whether whatever DNS 
services are up and running properly.

On Thursday, December 13, 2012 6:05:04 PM UTC-6, mwpowellhtx wrote:
>
> No, Jenkins is running on the same machine as my day to day development. 
> Not the best of ideas I know.
>
> For the second part, yes, I can clone from a command line or Git Bash.
>
> On Thursday, December 13, 2012 5:44:40 PM UTC-6, Andrew Melo wrote:
>>
>> I mean, presumably the machine you work on day to day isn't the machine 
>> your Jenkins slaves run on (since it seems like you have a larger install)
>>
>> If you SSH to your Jenkins master/slaves, can you clone from them?
>>
>> 
>> Andrew Melo
>> Sent from my secret fortress.
>>
>> On Dec 14, 2012, at 0:17, mwpowellhtx  wrote:
>>
>> How do you mean, "connect to your slaves, clone manually"? From a command 
>> line or Git Bash? Yes, I can clone manually with the same (copy and paste) 
>> SSH URI.
>>
>> On Thursday, December 13, 2012 4:33:12 PM UTC-6, Andrew Melo wrote:
>>>
>>> On Thu, Dec 13, 2012 at 11:24 PM, mwpowellhtx  
>>> wrote: 
>>> > And I can assure you it's not. I copy and paste the exact same address 
>>> on 
>>> > the command line, and I can clone from the command line. Only Jenkins 
>>> is now 
>>> > consistently failing across the board for jobs that were previously 
>>> > succeeding. 
>>> > 
>>> > We're speculating whether repositoryhosting.com (our host) has some 
>>> limits 
>>> > set on SSH. 
>>>
>>> This seems to look like your DNS isnt resolving the host name right, 
>>> it's not (necessarily) a matter of you fumbling the hostname... 
>>>
>>> stderr: ssh: : no address associated with name 
>>> fatal: Could not read from remote repository. 
>>>
>>> If you connect to your slaves, can you do a git clone manually? 
>>>
>>> > 
>>> > 
>>> > On Thursday, December 13, 2012 3:59:42 PM UTC-6, SA Evans wrote: 
>>> >> 
>>> >> The error would indicate to me that it can't find the host where your 
>>> repo 
>>> >> is, whether a typo in that variable setting that's not getting 
>>> resolved 
>>> >> through your nameserver, or some sort of network issue, most likely. 
>>> >> 
>>> >> 
>>> >> 
>>> >> On Thu, Dec 13, 2012 at 3:47 PM, mwpowellhtx  
>>> wrote: 
>>> >>> 
>>> >>> To clarify, I've edited the actual names out. The names are there, 
>>> it was 
>>> >>> working earlier. Now suddenly it has stopped working. 
>>> >>> 
>>> >>> A colleague of mine and I are wondering whether it's a SSH thing, or 
>>> >>> perhaps there's a limit set by our host, or something. 
>>> >>> 
>>> >>> On Thursday, December 13, 2012 3:43:44 PM UTC-6, mwpowellhtx wrote: 
>>>  
>>>  I'm not sure what you mean. Can you be more specific? It's possible 
>>>  something got unset, but like I said, it was working all day until 
>>> just now. 
>>>  
>>>  On Thursday, December 13, 2012 3:38:27 PM UTC-6, SA Evans wrote: 
>>> > 
>>> > Looks like you're missing an environment setting for repo-host 
>>> > 
>>> > Scott 
>>> > 
>>> > On Thu, Dec 13, 2012 at 3:35 PM, mwpowellhtx  
>>> > wrote: 
>>> >> 
>>> >> stderr: ssh: : no address associated with name 
>>> > 
>>> > 
>>> >> 
>>> > 
>>>
>>>
>>>
>>> -- 
>>> -- 
>>> Andrew Melo 
>>>
>>

[ANN] looking for speakers in various parts of the world Jan 2013

2012-12-13 Thread Kohsuke Kawaguchi


Hi,

I'm doing a little bit of world tour next January. As a part of it, I'm 
trying to do small meet-ups in places that we don't normally do them.


To attract more people, I'm looking for people willing to come present 
in those events. It can be a talk of any size --- more than anything 
else I'm trying to hook up people locally (as well as meeting them myself!)


A presentation doesn't have to be "this is how we solved all the 
problems". A story of how the usage evolved is often very well-received, 
as well as "this is what we've done so far and this is what we are 
struggling, I think Jenkins should fix them" talks.



We are looking for the following locations in particular:

  - London
  - Seoul
  - Toronto (this one isn't concrete)

--
Kohsuke Kawaguchi  http://kohsuke.org/


Re: Jenkins Git suddenly stopped working

2012-12-13 Thread mwpowellhtx
No, Jenkins is running on the same machine as my day to day development. 
Not the best of ideas I know.

For the second part, yes, I can clone from a command line or Git Bash.

On Thursday, December 13, 2012 5:44:40 PM UTC-6, Andrew Melo wrote:
>
> I mean, presumably the machine you work on day to day isn't the machine 
> your Jenkins slaves run on (since it seems like you have a larger install)
>
> If you SSH to your Jenkins master/slaves, can you clone from them?
>
> 
> Andrew Melo
> Sent from my secret fortress.
>
> On Dec 14, 2012, at 0:17, mwpowellhtx > 
> wrote:
>
> How do you mean, "connect to your slaves, clone manually"? From a command 
> line or Git Bash? Yes, I can clone manually with the same (copy and paste) 
> SSH URI.
>
> On Thursday, December 13, 2012 4:33:12 PM UTC-6, Andrew Melo wrote:
>>
>> On Thu, Dec 13, 2012 at 11:24 PM, mwpowellhtx  
>> wrote: 
>> > And I can assure you it's not. I copy and paste the exact same address 
>> on 
>> > the command line, and I can clone from the command line. Only Jenkins 
>> is now 
>> > consistently failing across the board for jobs that were previously 
>> > succeeding. 
>> > 
>> > We're speculating whether repositoryhosting.com (our host) has some 
>> limits 
>> > set on SSH. 
>>
>> This seems to look like your DNS isnt resolving the host name right, 
>> it's not (necessarily) a matter of you fumbling the hostname... 
>>
>> stderr: ssh: : no address associated with name 
>> fatal: Could not read from remote repository. 
>>
>> If you connect to your slaves, can you do a git clone manually? 
>>
>> > 
>> > 
>> > On Thursday, December 13, 2012 3:59:42 PM UTC-6, SA Evans wrote: 
>> >> 
>> >> The error would indicate to me that it can't find the host where your 
>> repo 
>> >> is, whether a typo in that variable setting that's not getting 
>> resolved 
>> >> through your nameserver, or some sort of network issue, most likely. 
>> >> 
>> >> 
>> >> 
>> >> On Thu, Dec 13, 2012 at 3:47 PM, mwpowellhtx  
>> wrote: 
>> >>> 
>> >>> To clarify, I've edited the actual names out. The names are there, it 
>> was 
>> >>> working earlier. Now suddenly it has stopped working. 
>> >>> 
>> >>> A colleague of mine and I are wondering whether it's a SSH thing, or 
>> >>> perhaps there's a limit set by our host, or something. 
>> >>> 
>> >>> On Thursday, December 13, 2012 3:43:44 PM UTC-6, mwpowellhtx wrote: 
>>  
>>  I'm not sure what you mean. Can you be more specific? It's possible 
>>  something got unset, but like I said, it was working all day until 
>> just now. 
>>  
>>  On Thursday, December 13, 2012 3:38:27 PM UTC-6, SA Evans wrote: 
>> > 
>> > Looks like you're missing an environment setting for repo-host 
>> > 
>> > Scott 
>> > 
>> > On Thu, Dec 13, 2012 at 3:35 PM, mwpowellhtx  
>> > wrote: 
>> >> 
>> >> stderr: ssh: : no address associated with name 
>> > 
>> > 
>> >> 
>> > 
>>
>>
>>
>> -- 
>> -- 
>> Andrew Melo 
>>
>

Re: Jenkins Git suddenly stopped working

2012-12-13 Thread Andrew Melo
I mean, presumably the machine you work on day to day isn't the machine your 
Jenkins slaves run on (since it seems like you have a larger install)

If you SSH to your Jenkins master/slaves, can you clone from them?


Andrew Melo
Sent from my secret fortress.

On Dec 14, 2012, at 0:17, mwpowellhtx  wrote:

> How do you mean, "connect to your slaves, clone manually"? From a command 
> line or Git Bash? Yes, I can clone manually with the same (copy and paste) 
> SSH URI.
> 
> On Thursday, December 13, 2012 4:33:12 PM UTC-6, Andrew Melo wrote:
>> 
>> On Thu, Dec 13, 2012 at 11:24 PM, mwpowellhtx  wrote: 
>> > And I can assure you it's not. I copy and paste the exact same address on 
>> > the command line, and I can clone from the command line. Only Jenkins is 
>> > now 
>> > consistently failing across the board for jobs that were previously 
>> > succeeding. 
>> > 
>> > We're speculating whether repositoryhosting.com (our host) has some limits 
>> > set on SSH. 
>> 
>> This seems to look like your DNS isnt resolving the host name right, 
>> it's not (necessarily) a matter of you fumbling the hostname... 
>> 
>> stderr: ssh: : no address associated with name 
>> fatal: Could not read from remote repository. 
>> 
>> If you connect to your slaves, can you do a git clone manually? 
>> 
>> > 
>> > 
>> > On Thursday, December 13, 2012 3:59:42 PM UTC-6, SA Evans wrote: 
>> >> 
>> >> The error would indicate to me that it can't find the host where your 
>> >> repo 
>> >> is, whether a typo in that variable setting that's not getting resolved 
>> >> through your nameserver, or some sort of network issue, most likely. 
>> >> 
>> >> 
>> >> 
>> >> On Thu, Dec 13, 2012 at 3:47 PM, mwpowellhtx  wrote: 
>> >>> 
>> >>> To clarify, I've edited the actual names out. The names are there, it 
>> >>> was 
>> >>> working earlier. Now suddenly it has stopped working. 
>> >>> 
>> >>> A colleague of mine and I are wondering whether it's a SSH thing, or 
>> >>> perhaps there's a limit set by our host, or something. 
>> >>> 
>> >>> On Thursday, December 13, 2012 3:43:44 PM UTC-6, mwpowellhtx wrote: 
>>  
>>  I'm not sure what you mean. Can you be more specific? It's possible 
>>  something got unset, but like I said, it was working all day until just 
>>  now. 
>>  
>>  On Thursday, December 13, 2012 3:38:27 PM UTC-6, SA Evans wrote: 
>> > 
>> > Looks like you're missing an environment setting for repo-host 
>> > 
>> > Scott 
>> > 
>> > On Thu, Dec 13, 2012 at 3:35 PM, mwpowellhtx  
>> > wrote: 
>> >> 
>> >> stderr: ssh: : no address associated with name 
>> > 
>> > 
>> >> 
>> > 
>> 
>> 
>> 
>> -- 
>> -- 
>> Andrew Melo 


Re: Jenkins Git suddenly stopped working

2012-12-13 Thread mwpowellhtx
How do you mean, "connect to your slaves, clone manually"? From a command 
line or Git Bash? Yes, I can clone manually with the same (copy and paste) 
SSH URI.

On Thursday, December 13, 2012 4:33:12 PM UTC-6, Andrew Melo wrote:
>
> On Thu, Dec 13, 2012 at 11:24 PM, mwpowellhtx 
> > 
> wrote: 
> > And I can assure you it's not. I copy and paste the exact same address 
> on 
> > the command line, and I can clone from the command line. Only Jenkins is 
> now 
> > consistently failing across the board for jobs that were previously 
> > succeeding. 
> > 
> > We're speculating whether repositoryhosting.com (our host) has some 
> limits 
> > set on SSH. 
>
> This seems to look like your DNS isnt resolving the host name right, 
> it's not (necessarily) a matter of you fumbling the hostname... 
>
> stderr: ssh: : no address associated with name 
> fatal: Could not read from remote repository. 
>
> If you connect to your slaves, can you do a git clone manually? 
>
> > 
> > 
> > On Thursday, December 13, 2012 3:59:42 PM UTC-6, SA Evans wrote: 
> >> 
> >> The error would indicate to me that it can't find the host where your 
> repo 
> >> is, whether a typo in that variable setting that's not getting resolved 
> >> through your nameserver, or some sort of network issue, most likely. 
> >> 
> >> 
> >> 
> >> On Thu, Dec 13, 2012 at 3:47 PM, mwpowellhtx  
> wrote: 
> >>> 
> >>> To clarify, I've edited the actual names out. The names are there, it 
> was 
> >>> working earlier. Now suddenly it has stopped working. 
> >>> 
> >>> A colleague of mine and I are wondering whether it's a SSH thing, or 
> >>> perhaps there's a limit set by our host, or something. 
> >>> 
> >>> On Thursday, December 13, 2012 3:43:44 PM UTC-6, mwpowellhtx wrote: 
>  
>  I'm not sure what you mean. Can you be more specific? It's possible 
>  something got unset, but like I said, it was working all day until 
> just now. 
>  
>  On Thursday, December 13, 2012 3:38:27 PM UTC-6, SA Evans wrote: 
> > 
> > Looks like you're missing an environment setting for repo-host 
> > 
> > Scott 
> > 
> > On Thu, Dec 13, 2012 at 3:35 PM, mwpowellhtx  
> > wrote: 
> >> 
> >> stderr: ssh: : no address associated with name 
> > 
> > 
> >> 
> > 
>
>
>
> -- 
> -- 
> Andrew Melo 
>


Repost - Install/uninstall plugin impact

2012-12-13 Thread zw
Hi

When a plugin is installed and used for a while, but we decide to not use 
that plugin anymore and like to uninstall it.
Would that plugin still work with old data if we again decide to reinstall 
it, after uninstalling it the first time ?
Would the history files of that plugin be lost and unrecoverable ?

Thanks


Subversion - Tag build from workspace

2012-12-13 Thread Daniel Becroft
Hi,

In Jenkins, I can select a build, and tag it in Subversion. However, this
creates the tag from the repository URL, so it skips any files (version.h,
etc) that might have been modified.

Is there a way to get Jenkins to create the tag from the workspace?

Cheers,
---
Daniel Becroft


Re: Cron Style Syntax for Overnight Builds for Non-Consecutive Hour Ranges

2012-12-13 Thread Jeremy Rosenberg
Any other thoughts on this?  I would like to do the same.

On Thursday, November 8, 2012 5:30:31 PM UTC-5, Chris Wozny wrote:
>
> If I put two lines with two ranges, will that not kick off a build for 
> each line? And also, how will the staggered build with the 'H' syntax be 
> calculated if there are two lines?
>
> On Thursday, November 8, 2012 2:47:15 PM UTC-5, Arnaud wrote:
>>
>> Hi, 
>>
>> You may put two lines to get two ranges 
>>
>> My 2 cents 
>>
>> Arnaud. 
>>
>> 2012/11/8 Chris Wozny : 
>> > All, 
>> > 
>> > I'm wondering if anyone has come up with a syntax to stagger 
>> builds/poll SCM 
>> > with the 'H' syntax between hours which aren't technically in the same 
>> day. 
>> > I'd like to stagger builds between 10 pm and 4 am of the next day and I 
>> > tried: 
>> > 
>> > H H(22-23,0-3) * * * 
>> > 
>> > But it complains that there should only be one range for the hour. If 
>> this 
>> > is not available, I think this would be an excellent feature to include 
>> as 
>> > I've got matrix jobs which take about 3 hours to complete and would 
>> like to 
>> > expand the staggered build another two hours before midnight. 
>> > 
>> > Best, 
>> > Chris 
>>
>

Re: Jenkins Git suddenly stopped working

2012-12-13 Thread Andrew Melo
On Thu, Dec 13, 2012 at 11:24 PM, mwpowellhtx  wrote:
> And I can assure you it's not. I copy and paste the exact same address on
> the command line, and I can clone from the command line. Only Jenkins is now
> consistently failing across the board for jobs that were previously
> succeeding.
>
> We're speculating whether repositoryhosting.com (our host) has some limits
> set on SSH.

This seems to look like your DNS isnt resolving the host name right,
it's not (necessarily) a matter of you fumbling the hostname...

stderr: ssh: : no address associated with name
fatal: Could not read from remote repository.

If you connect to your slaves, can you do a git clone manually?

>
>
> On Thursday, December 13, 2012 3:59:42 PM UTC-6, SA Evans wrote:
>>
>> The error would indicate to me that it can't find the host where your repo
>> is, whether a typo in that variable setting that's not getting resolved
>> through your nameserver, or some sort of network issue, most likely.
>>
>>
>>
>> On Thu, Dec 13, 2012 at 3:47 PM, mwpowellhtx  wrote:
>>>
>>> To clarify, I've edited the actual names out. The names are there, it was
>>> working earlier. Now suddenly it has stopped working.
>>>
>>> A colleague of mine and I are wondering whether it's a SSH thing, or
>>> perhaps there's a limit set by our host, or something.
>>>
>>> On Thursday, December 13, 2012 3:43:44 PM UTC-6, mwpowellhtx wrote:

 I'm not sure what you mean. Can you be more specific? It's possible
 something got unset, but like I said, it was working all day until just 
 now.

 On Thursday, December 13, 2012 3:38:27 PM UTC-6, SA Evans wrote:
>
> Looks like you're missing an environment setting for repo-host
>
> Scott
>
> On Thu, Dec 13, 2012 at 3:35 PM, mwpowellhtx 
> wrote:
>>
>> stderr: ssh: : no address associated with name
>
>
>>
>



-- 
--
Andrew Melo


Re: Jenkins Git suddenly stopped working

2012-12-13 Thread mwpowellhtx
And I can assure you it's not. I copy and paste the exact same address on 
the command line, and I can clone from the command line. Only Jenkins is 
now consistently failing across the board for jobs that were previously 
succeeding.

We're speculating whether repositoryhosting.com (our host) has some limits 
set on SSH.

On Thursday, December 13, 2012 3:59:42 PM UTC-6, SA Evans wrote:
>
> The error would indicate to me that it can't find the host where your repo 
> is, whether a typo in that variable setting that's not getting resolved 
> through your nameserver, or some sort of network issue, most likely.
>
>
>
> On Thu, Dec 13, 2012 at 3:47 PM, mwpowellhtx 
> > wrote:
>
>> To clarify, I've edited the actual names out. The names are there, it was 
>> working earlier. Now suddenly it has stopped working.
>>
>> A colleague of mine and I are wondering whether it's a SSH thing, or 
>> perhaps there's a limit set by our host, or something.
>>
>> On Thursday, December 13, 2012 3:43:44 PM UTC-6, mwpowellhtx wrote:
>>>
>>> I'm not sure what you mean. Can you be more specific? It's possible 
>>> something got unset, but like I said, it was working all day until just now.
>>>
>>> On Thursday, December 13, 2012 3:38:27 PM UTC-6, SA Evans wrote:

 Looks like you're missing an environment setting for repo-host

 Scott

 On Thu, Dec 13, 2012 at 3:35 PM, mwpowellhtx wrote:

> stderr: ssh: : no address associated with name



>

Re: Jenkins Git suddenly stopped working

2012-12-13 Thread Scott Evans
The error would indicate to me that it can't find the host where your repo
is, whether a typo in that variable setting that's not getting resolved
through your nameserver, or some sort of network issue, most likely.



On Thu, Dec 13, 2012 at 3:47 PM, mwpowellhtx  wrote:

> To clarify, I've edited the actual names out. The names are there, it was
> working earlier. Now suddenly it has stopped working.
>
> A colleague of mine and I are wondering whether it's a SSH thing, or
> perhaps there's a limit set by our host, or something.
>
> On Thursday, December 13, 2012 3:43:44 PM UTC-6, mwpowellhtx wrote:
>>
>> I'm not sure what you mean. Can you be more specific? It's possible
>> something got unset, but like I said, it was working all day until just now.
>>
>> On Thursday, December 13, 2012 3:38:27 PM UTC-6, SA Evans wrote:
>>>
>>> Looks like you're missing an environment setting for repo-host
>>>
>>> Scott
>>>
>>> On Thu, Dec 13, 2012 at 3:35 PM, mwpowellhtx  wrote:
>>>
 stderr: ssh: : no address associated with name
>>>
>>>
>>>


Re: Jenkins Git suddenly stopped working

2012-12-13 Thread mwpowellhtx
To clarify, I've edited the actual names out. The names are there, it was 
working earlier. Now suddenly it has stopped working.

A colleague of mine and I are wondering whether it's a SSH thing, or 
perhaps there's a limit set by our host, or something.

On Thursday, December 13, 2012 3:43:44 PM UTC-6, mwpowellhtx wrote:
>
> I'm not sure what you mean. Can you be more specific? It's possible 
> something got unset, but like I said, it was working all day until just now.
>
> On Thursday, December 13, 2012 3:38:27 PM UTC-6, SA Evans wrote:
>>
>> Looks like you're missing an environment setting for repo-host
>>
>> Scott
>>
>> On Thu, Dec 13, 2012 at 3:35 PM, mwpowellhtx  wrote:
>>
>>> stderr: ssh: : no address associated with name
>>
>>
>>

Re: Jenkins Git suddenly stopped working

2012-12-13 Thread mwpowellhtx
I'm not sure what you mean. Can you be more specific? It's possible 
something got unset, but like I said, it was working all day until just now.

On Thursday, December 13, 2012 3:38:27 PM UTC-6, SA Evans wrote:
>
> Looks like you're missing an environment setting for repo-host
>
> Scott
>
> On Thu, Dec 13, 2012 at 3:35 PM, mwpowellhtx 
> > wrote:
>
>> stderr: ssh: : no address associated with name
>
>
>

Re: Jenkins Git suddenly stopped working

2012-12-13 Thread Scott Evans
Looks like you're missing an environment setting for repo-host

Scott

On Thu, Dec 13, 2012 at 3:35 PM, mwpowellhtx  wrote:

> stderr: ssh: : no address associated with name


Jenkins Git suddenly stopped working

2012-12-13 Thread mwpowellhtx

I am experiencing the following error(s).

I've been working on build jobs today in Jenkins and polling our online 
repository hosting frequently. It's been working most of today until 
recently the past hour or two. Now suddenly I am receiving the following 
error(s), for one job I am currently working on, and verified, a prior job 
I got working earlier is now breaking for the same reason.

I've also contacted our host thinking that perhaps the issue is with them. 
The strange part is that I can still clone from the command line, but 
Jenkins is consistently failing where Jenkins was working earlier.

Any suggestions?

Thank you...

Started by user anonymous 
[EnvInject] - Loading node environment variables.
Building in workspace 
Checkout:workspace /  - hudson.remoting.LocalChannel@18f57d2
Using strategy: Default
Last Built Revision: Revision  (origin/master)
Fetching changes from 1 remote Git repository
Fetching upstream changes from ssh://git@//.git
ERROR: Problem fetching from origin / origin - could be unavailable. Continuing 
anywayhudson.plugins.git.GitException 
:
 Command "git.exe fetch -t ssh://git@//.git 
+refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: 
stderr: ssh: : no address associated with name
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:897)
at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:858)
at hudson.plugins.git.GitAPI.fetch(GitAPI.java:200)
at hudson.plugins.git.GitAPI.fetch(GitAPI.java:1105)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:813)
at hudson.plugins.git.GitSCM.access$100(GitSCM.java:72)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1018)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986)
at hudson.FilePath.act(FilePath.java:852)
at hudson.FilePath.act(FilePath.java:825)
at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:986)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1142)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1324)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581)
at hudson.model.Run.execute(Run.java:1518)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)
ERROR: Could not fetch from any repositoryFATAL 
: Could not fetch from any 
repositoryhudson.plugins.git.GitException 
:
 Could not fetch from any repository
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1025) 

at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986) 

at hudson.FilePath.act(FilePath.java:852) 

at hudson.FilePath.act(FilePath.java:825) 

at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:986) 

at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1142) 

at hudson.model.AbstractProject.checkout(AbstractProject.java:1324) 

at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
 

at 
jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 

at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) 

at hudson.model.Run.execute(Run.java:1518) 


Re: How to run PowerShell during job

2012-12-13 Thread Michael Powell
Yes, I believe that's the case. Not the x86 one. Using the -ExecutionPolicy
did the trick from a Jenkins Job perspective.

On Thu, Dec 13, 2012 at 1:32 PM, bearrito wrote:

> Two things.
>
> 1. Windows machines have a 32bit and 64bit powershell.
> 2. Jenkins will typically run on the 32-bit JVM which means when it
> invokes powershell it will invoke the 32bit version.
>
> It sounds like you have Set-Execution Policy on the 64bit version but not
> 32bit.
>
> You might want to configure your Jenkins to run on 64bit as there are a
> few powershell cmd-lets (ClusterManager,Exchange and maybe AD) that only
> run on the 64bit  powershell.
>
>
> -barrett
>
> On Thursday, December 13, 2012 2:12:36 PM UTC-5, mwpowellhtx wrote:
>>
>> This is helpful: http://jenkins.361315.n4.**
>> nabble.com/PowerShell-plug-in-**question-td1468725.html
>>
>> After that it's the usual troubleshooting script issues from different
>> runtime contexts.
>>
>> On Thursday, December 13, 2012 1:06:13 PM UTC-6, mwpowellhtx wrote:
>>>
>>> Hello,
>>>
>>> We've got some Windows PowerShell scripts I would like to expose
>>> throughout our jobs for natural house keeping steps.
>>>
>>> I've got the Set-ExecutionPolicy set appropriately and I can run scripts
>>> apart from Jenkins through the command line, with PowerShell (i.e. context
>>> menu), etc.
>>>
>>> Running through the PowerShell task doesn't work at all, it fails. I try
>>> as a Windows Batch Command task, the command is nothing special.
>>>
>>> powershell.exe -File "" "" ""
>>>
>>>
>>> However, when I run the Job I get the following error:
>>>
>>> File  cannot be loaded because the execution of 
>>> scripts is disabled on this system. Please see "get-help about_signing" for 
>>> more details.
>>>
>>>
>>> Now, is the Jenkins process somehow signing the wrappers it puts around
>>> such scripts? We've got the execution policy set otherwise, which if it's a
>>> conflict, then perhaps we abandon PowerShell altogether for something more
>>> "conventional" like Batch or Command files.
>>>
>>> We've got the PowerShell scripts today, so obviously if I can get them
>>> to work, I want to do that. But if I need to rewrite them as batch files,
>>> then I'll do that instead.
>>>
>>> Thanks in advance..
>>>
>>> Regards,
>>>
>>> Michael
>>>
>>


Re: How to run PowerShell during job

2012-12-13 Thread bearrito
Two things.

1. Windows machines have a 32bit and 64bit powershell. 
2. Jenkins will typically run on the 32-bit JVM which means when it invokes 
powershell it will invoke the 32bit version.

It sounds like you have Set-Execution Policy on the 64bit version but not 
32bit.

You might want to configure your Jenkins to run on 64bit as there are a few 
powershell cmd-lets (ClusterManager,Exchange and maybe AD) that only run on 
the 64bit  powershell.


-barrett

On Thursday, December 13, 2012 2:12:36 PM UTC-5, mwpowellhtx wrote:
>
> This is helpful: 
> http://jenkins.361315.n4.nabble.com/PowerShell-plug-in-question-td1468725.html
>
> After that it's the usual troubleshooting script issues from different 
> runtime contexts.
>
> On Thursday, December 13, 2012 1:06:13 PM UTC-6, mwpowellhtx wrote:
>>
>> Hello,
>>
>> We've got some Windows PowerShell scripts I would like to expose 
>> throughout our jobs for natural house keeping steps.
>>
>> I've got the Set-ExecutionPolicy set appropriately and I can run scripts 
>> apart from Jenkins through the command line, with PowerShell (i.e. context 
>> menu), etc.
>>
>> Running through the PowerShell task doesn't work at all, it fails. I try 
>> as a Windows Batch Command task, the command is nothing special.
>>
>> powershell.exe -File "" "" "" 
>>
>>
>> However, when I run the Job I get the following error:
>>
>> File  cannot be loaded because the execution of 
>> scripts is disabled on this system. Please see "get-help about_signing" for 
>> more details.
>>
>>
>> Now, is the Jenkins process somehow signing the wrappers it puts around 
>> such scripts? We've got the execution policy set otherwise, which if it's a 
>> conflict, then perhaps we abandon PowerShell altogether for something more 
>> "conventional" like Batch or Command files.
>>
>> We've got the PowerShell scripts today, so obviously if I can get them to 
>> work, I want to do that. But if I need to rewrite them as batch files, then 
>> I'll do that instead.
>>
>> Thanks in advance..
>>
>> Regards,
>>
>> Michael
>>
>

Re: Warnings-Plugin: How to access the path of current workspace?

2012-12-13 Thread Markus Schneider
I have tried it, but the parser throughs an error not knowing "$JenkinsHome"  
string. 

Am 13.12.2012 um 04:04 schrieb "Strausser, Barrett" 
:

> You could probably do $JenkinsHome + "/jobs/" + $WorkSpace
> 
> 
> 
> 
> On Wed, Dec 12, 2012 at 5:58 PM, schneim  wrote:
>> Hello,
>> 
>> 
>> I have created a custom warning parser. This works quite well. However, I 
>> have trouble to display the content of the source files.
>> 
>> I found out the path in the warning is only relative to the workspace path, 
>> e.g.  $WORKSPACE/src/file.c 
>> 
>> But for displaying the source file, the plugin requires the full path.
>> 
>> The question is, how to find the workspace path to concatenate it with the 
>> file path inside the groovy script.
>> 
>> import hudson.plugins.warnings.parser.Warning
>> 
>> String workspace = getWorkspacePath()
>> String fileName = matcher.group(1)
>> String fullPath = workspace+fileName
>> String lineNumber = matcher.group(2)
>> String category = matcher.group(3)
>> String message = matcher.group(4)
>> 
>> return new Warning(fullPath, Integer.parseInt(lineNumber), "Dynamic Parser", 
>> category, message);
>> 
>> 
>> Any way to find out the value for the workspace or some other solution 
>> available?
>> 
>> Thanks
> 


Re: Warnings-Plugin: How to access the path of current workspace?

2012-12-13 Thread Markus Schneider
Hello Ulli,

Yes the relative path  does not work for me. The tmp files are generated, but 
are empty. 

Do I need a special configuration?

Markus


Am 13.12.2012 um 16:02 schrieb Ulli Hafner :

> Actually, a relative path (starting from the workspace root) should be 
> resolved automatically. Does this not work in your case?
> 
> Ulli
> 
> Am 12.12.2012 um 23:58 schrieb schneim :
> 
>> Hello,
>> 
>> 
>> I have created a custom warning parser. This works quite well. However, I 
>> have trouble to display the content of the source files.
>> 
>> I found out the path in the warning is only relative to the workspace path, 
>> e.g.  $WORKSPACE/src/file.c 
>> 
>> But for displaying the source file, the plugin requires the full path.
>> 
>> The question is, how to find the workspace path to concatenate it with the 
>> file path inside the groovy script.
>> 
>> import hudson.plugins.warnings.parser.Warning
>> 
>> String workspace = getWorkspacePath()
>> String fileName = matcher.group(1)
>> String fullPath = workspace+fileName
>> String lineNumber = matcher.group(2)
>> String category = matcher.group(3)
>> String message = matcher.group(4)
>> 
>> return new Warning(fullPath, Integer.parseInt(lineNumber), "Dynamic Parser", 
>> category, message);
>> 
>> 
>> Any way to find out the value for the workspace or some other solution 
>> available?
>> 
>> Thanks
>> 
> 


Re: How to run PowerShell during job

2012-12-13 Thread mwpowellhtx
This is helpful: 
http://jenkins.361315.n4.nabble.com/PowerShell-plug-in-question-td1468725.html

After that it's the usual troubleshooting script issues from different 
runtime contexts.

On Thursday, December 13, 2012 1:06:13 PM UTC-6, mwpowellhtx wrote:
>
> Hello,
>
> We've got some Windows PowerShell scripts I would like to expose 
> throughout our jobs for natural house keeping steps.
>
> I've got the Set-ExecutionPolicy set appropriately and I can run scripts 
> apart from Jenkins through the command line, with PowerShell (i.e. context 
> menu), etc.
>
> Running through the PowerShell task doesn't work at all, it fails. I try 
> as a Windows Batch Command task, the command is nothing special.
>
> powershell.exe -File "" "" "" 
>
>
> However, when I run the Job I get the following error:
>
> File  cannot be loaded because the execution of 
> scripts is disabled on this system. Please see "get-help about_signing" for 
> more details.
>
>
> Now, is the Jenkins process somehow signing the wrappers it puts around 
> such scripts? We've got the execution policy set otherwise, which if it's a 
> conflict, then perhaps we abandon PowerShell altogether for something more 
> "conventional" like Batch or Command files.
>
> We've got the PowerShell scripts today, so obviously if I can get them to 
> work, I want to do that. But if I need to rewrite them as batch files, then 
> I'll do that instead.
>
> Thanks in advance..
>
> Regards,
>
> Michael
>


How to run PowerShell during job

2012-12-13 Thread mwpowellhtx
Hello,

We've got some Windows PowerShell scripts I would like to expose throughout 
our jobs for natural house keeping steps.

I've got the Set-ExecutionPolicy set appropriately and I can run scripts 
apart from Jenkins through the command line, with PowerShell (i.e. context 
menu), etc.

Running through the PowerShell task doesn't work at all, it fails. I try as 
a Windows Batch Command task, the command is nothing special.

powershell.exe -File "" "" "" 


However, when I run the Job I get the following error:

File  cannot be loaded because the execution of 
scripts is disabled on this system. Please see "get-help about_signing" for 
more details.


Now, is the Jenkins process somehow signing the wrappers it puts around 
such scripts? We've got the execution policy set otherwise, which if it's a 
conflict, then perhaps we abandon PowerShell altogether for something more 
"conventional" like Batch or Command files.

We've got the PowerShell scripts today, so obviously if I can get them to 
work, I want to do that. But if I need to rewrite them as batch files, then 
I'll do that instead.

Thanks in advance..

Regards,

Michael


Re: Problems with Windows Slaves: hudson.util.IOException2: remote file operation failed

2012-12-13 Thread Joshua Boyd

On 12/12/2012 5:01 PM, Strausser, Barrett wrote:

Can you not install the Slave as a service on the machine?




If I install the slave as a service (choosing File->Install as Windows 
Service in the Jenkins slave agent), won't it have the same trouble with 
accessing the graphical interface?  Or is the end result of installing 
it as a service on the slave somehow different from starting it as a 
remote service?





Re: Really corrupt build history

2012-12-13 Thread mwpowellhtx
So the corruption is rooted in operator error: I misconfigured the Jenkins 
builds configuration. Did a little more reading and it seems that when you 
set the builds directory in the Jenkins configuration to 
${ITEM_ROOTDIR}/builds, this corrects the problem, is now job-specific. It 
would be better if we could possibly pull these aside from the Jenkins 
install location for easier backup and restore purposes, but this will work 
for now.

On Thursday, December 13, 2012 11:08:21 AM UTC-6, mwpowellhtx wrote:
>
> Hello,
>
> I have half a dozen or so jobs configured to run and I am finding that 
> Jenkins build history is becoming very corrupt. We're running 1.492 in a 
> Windows 7 Ultimate environment.
>
> Here's what I am experiencing:
>
>- From time to time my executor threads will just completely die. It 
>usually takes pulling the build history aside and letting Jenkins start 
>afresh to recover from this. One of the issues appears to be array 
>indexing, frequently thinking it has an invalid array index. Apparently 
>also a known issue for quite some time from other posts I've read.
>- I've started up the system once again and now I am finding that the 
>build history is apparently really confused. I have one disabled job and 
>all the others were building yesterday with valid history.
>
> How can any snafus like this be happening? I mean, did the designers of 
> these systems and subsystems consider that a build environment would have 
> use cases involving multiple independently scheduled jobs?
>
> The other option we can consider is to not keep a running build history at 
> all, particularly in a matrix build environment like we're got running. 
> History is nice and to show a healthy build history track record, but is 
> not as important as long as we can capture artifacts like generated 
> documents, NuGet packages, installers, and the like.
>
> I hate to say it, but if Jenkins is going to be this unstable, I wonder if 
> I don't give Hudson a try (again). Or even spend the energy to configure a 
> CruiseControl.NET. But the first thing I want to consider is 86'ing the 
> build history if it's going to cause that many problems.
>
> Any others with thoughts? Questions, concerns, suggestions?
>
> Regards,
>
> Michael
>


Really corrupt build history

2012-12-13 Thread mwpowellhtx
Hello,

I have half a dozen or so jobs configured to run and I am finding that 
Jenkins build history is becoming very corrupt. We're running 1.492 in a 
Windows 7 Ultimate environment.

Here's what I am experiencing:

   - From time to time my executor threads will just completely die. It 
   usually takes pulling the build history aside and letting Jenkins start 
   afresh to recover from this. One of the issues appears to be array 
   indexing, frequently thinking it has an invalid array index. Apparently 
   also a known issue for quite some time from other posts I've read.
   - I've started up the system once again and now I am finding that the 
   build history is apparently really confused. I have one disabled job and 
   all the others were building yesterday with valid history.
   
How can any snafus like this be happening? I mean, did the designers of 
these systems and subsystems consider that a build environment would have 
use cases involving multiple independently scheduled jobs?

The other option we can consider is to not keep a running build history at 
all, particularly in a matrix build environment like we're got running. 
History is nice and to show a healthy build history track record, but is 
not as important as long as we can capture artifacts like generated 
documents, NuGet packages, installers, and the like.

I hate to say it, but if Jenkins is going to be this unstable, I wonder if 
I don't give Hudson a try (again). Or even spend the energy to configure a 
CruiseControl.NET. But the first thing I want to consider is 86'ing the 
build history if it's going to cause that many problems.

Any others with thoughts? Questions, concerns, suggestions?

Regards,

Michael


Re: Jenkins exception - URI has an authority component

2012-12-13 Thread bearrito
You are going to have nothing but trouble running that from a share.
C# windows service have enough of a problem running from a share. Not too 
mention running a jvm based service that is opinionated about paths.

Do yourself a favor and install it locally.


On Thursday, December 13, 2012 7:04:38 AM UTC-5, zakyn wrote:
>
> Hello,
>  
> I would like to start jenkins from the the remote folder something like 
> \\Jenkins\jenkins.exe and I got the exception bellow.
> I use service for running it on Windows and the service is running with 
> correct credentials.
>  
> Do you have any hint where the problem could be?
>  
> Thanks.
>  
> zakyn
>  
>  
>  
>  
>  
> Status Code: 500Exception: 
> Stacktrace: 
>
> java.lang.IllegalArgumentException: URI has an authority component
>   at java.io.File.(Unknown Source)
>   at org.kohsuke.stapler.Stapler.toFile(Stapler.java:450)
>   at org.kohsuke.stapler.Stapler.openURL(Stapler.java:268)
>   at org.kohsuke.stapler.Stapler.selectResourceByLocale(Stapler.java:217)
>   at 
> org.kohsuke.stapler.Stapler.openResourcePathByLocale(Stapler.java:202)
>   at org.kohsuke.stapler.Stapler.service(Stapler.java:144)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
>   at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
>   at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
>   at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
>   at 
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
>   at 
> hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
>   at 
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
>   at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
>   at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
>   at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
>   at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
>   at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
>   at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
>   at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:162)
>   at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
>   at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
>   at 
> hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
>   at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
>   at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
>   at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
>   at 
> winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
>   at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
>   at java.lang.Thread.run(Unknown Source)
>
>

Re: Warnings-Plugin: How to access the path of current workspace?

2012-12-13 Thread Ulli Hafner
Actually, a relative path (starting from the workspace root) should be resolved 
automatically. Does this not work in your case?

Ulli

Am 12.12.2012 um 23:58 schrieb schneim :

> Hello,
> 
> 
> I have created a custom warning parser. This works quite well. However, I 
> have trouble to display the content of the source files.
> 
> I found out the path in the warning is only relative to the workspace path, 
> e.g.  $WORKSPACE/src/file.c 
> 
> But for displaying the source file, the plugin requires the full path.
> 
> The question is, how to find the workspace path to concatenate it with the 
> file path inside the groovy script.
> 
> import hudson.plugins.warnings.parser.Warning
> 
> String workspace = getWorkspacePath()
> String fileName = matcher.group(1)
> String fullPath = workspace+fileName
> String lineNumber = matcher.group(2)
> String category = matcher.group(3)
> String message = matcher.group(4)
> 
> return new Warning(fullPath, Integer.parseInt(lineNumber), "Dynamic Parser", 
> category, message);
> 
> 
> Any way to find out the value for the workspace or some other solution 
> available?
> 
> Thanks
> 



Jenkins exception with parameterizedtrigger plugin

2012-12-13 Thread alok kumar
Hi All,
I tried using flexible publish plugin in my jenkins setup, but, since the
time of adding that plugin and restarting jenkins, I have been encountering
various exceptions related to the parameterizedtrigger plugin.

When I tried to restart the server, the jenkins webpage fails to come up
and throws the below exception:

org.jvnet.hudson.reactor.ReactorException: java.lang.NoSuchMethodError:
hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getProjectList()Ljava/util/List;

at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246)

at jenkins.InitReactorRunner.run(InitReactorRunner.java:43)

at jenkins.model.Jenkins.executeReactor(Jenkins.java:850)

at jenkins.model.Jenkins.(Jenkins.java:762)

at hudson.model.Hudson.(Hudson.java:81)

at hudson.model.Hudson.(Hudson.java:77)

at hudson.WebAppMain$2.run(WebAppMain.java:217)

Caused by: java.lang.NoSuchMethodError:
hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getProjectList()Ljava/util/List;

at join.JoinTrigger.buildDependencyGraph(JoinTrigger.java:156)

at
hudson.util.DescribableList.buildDependencyGraph(DescribableList.java:194)

at hudson.model.Project.buildDependencyGraph(Project.java:169)

at hudson.model.DependencyGraph.build(DependencyGraph.java:91)

at jenkins.model.Jenkins.rebuildDependencyGraph(Jenkins.java:3415)

at jenkins.model.Jenkins$16.run(Jenkins.java:2448)

at
org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)

at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)

at jenkins.model.Jenkins$6.runTask(Jenkins.java:839)

at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)

at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)

I then removed the flexible publish plugin and tried restarting the server
again, but, it again failed with the same exception.

Then, I removed the build steps related to the usage of
parameterizedtrigger plugin from all the jobs and then tried restarting the
server again. This time, the jenkins web page did come up.

Then, I added back the build steps that I had removed in the previous step
to all the jobs and restarted the jenkins server and again start facing the
same exception.

in addition to the above, whenever, I try to create a new job by copying
from another job or delete a job, I get the below exception on the jenkins
webpage.

This is really urgent as we have our product release lined up in the next
couple of days.
Kindly let me know how to resolve this weird behaviour.

I am using the latest version of the parameterizedtrigger plugin

*Status Code: 500*

Exception:
Stacktrace: 

java.lang.NoSuchMethodError:
hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getProjectList()Ljava/util/List;


at join.JoinTrigger.buildDependencyGraph(JoinTrigger.java:156)

at
hudson.util.DescribableList.buildDependencyGraph(DescribableList.java:194)**
**

at hudson.model.Project.buildDependencyGraph(Project.java:169)

at hudson.model.DependencyGraph.build(DependencyGraph.java:91)

at jenkins.model.Jenkins.rebuildDependencyGraph(Jenkins.java:3415)**
**

at hudson.model.ItemGroupMixIn.copy(ItemGroupMixIn.java:211)

at
hudson.model.ItemGroupMixIn.createTopLevelItem(ItemGroupMixIn.java:164)

at jenkins.model.Jenkins.doCreateItem(Jenkins.java:2752)

at jenkins.model.Jenkins.doCreateItem(Jenkins.java:299)

at hudson.model.ListView.doCreateItem(ListView.java:199)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)


at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)


at java.lang.reflect.Method.invoke(Method.java:616)

at
org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)

at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)

at
org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)


at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)***
*

at
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)


at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)

at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)

at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)***
*

at
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)


at org.kohsuke.stapler.St

Re: artifactory - cannot deselect publish build info

2012-12-13 Thread Baruch Sadogursky
Hi Russ,
I opened a bug , you are more 
than welcome to vote and watch :)

Thanks!
Baruch

On Wednesday, December 12, 2012 1:52:58 AM UTC, Russ Tremain wrote:
>
> Hi, 
>
> I've been experimenting with the Artifactory plugin. 
>
> In the job configuration, I have set the following: 
>
> Section "Build Environment": 
>
> [x] Generic-Artifactory Integration". 
>
> Section "Artifactory Configuration": 
>
> [ ] Capture and publish build info 
>
>
> When I save the config for my trivial job and run it, it fails with 
> the message: 
>
> Deploying build info to: http://artifactory(details 
> deleted)/artifactory/api/build 
> ERROR: Failed to send build info: HTTP response code: 403. HTTP 
> response message: Forbidden 
> java.io.IOException: Failed to send build info: HTTP response code: 
> 403. HTTP response message: Forbidden 
> at 
> org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:642)
>  
>
> at 
> org.jfrog.build.client.ArtifactoryBuildInfoClient.sendBuildInfo(ArtifactoryBuildInfoClient.java:240)
>  
>
> at 
> org.jfrog.hudson.generic.GenericBuildInfoDeployer.deploy(GenericBuildInfoDeployer.java:69)
>  
>
> at 
> org.jfrog.hudson.generic.ArtifactoryGenericConfigurator$1.tearDown(ArtifactoryGenericConfigurator.java:251)
>  
>
> at hudson.model.Build$BuildExecution.doRun(Build.java:171) 
> at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) 
>
> at hudson.model.Run.execute(Run.java:1502) 
> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 
> at 
> hudson.model.ResourceController.execute(ResourceController.java:88) 
> at hudson.model.Executor.run(Executor.java:236) 
>
> Then I go back to the config, and this option is again selected! 
>
> [x] Capture and publish build info 
>
> I cannot turn it off.  When I deselect it and save, it comes back. 
>
> Anyone knows why it does this?  On the artifactory side, I don't see 
> any options to save build info or provide a location to save build 
> info.  Is this something I need to configure? 
>
> BTW, it does publish my fake artifacts, but the build fails because 
> of the above error. 
>
> Here is the entire build script: 
>
> find . 
>
> I have run with jenkins 1.464, and also with 1.480.1.  I am using the 
> latest artifactory plugin, 2.3.1. 
>
> tia, 
> -Russ 
>


Jenkins exception - URI has an authority component

2012-12-13 Thread zakyn
Hello,
 
I would like to start jenkins from the the remote folder something like 
\\Jenkins\jenkins.exe and I got the exception bellow.
I use service for running it on Windows and the service is running with 
correct credentials.
 
Do you have any hint where the problem could be?
 
Thanks.
 
zakyn
 
 
 
 
 
Status Code: 500Exception: 
Stacktrace: 

java.lang.IllegalArgumentException: URI has an authority component
at java.io.File.(Unknown Source)
at org.kohsuke.stapler.Stapler.toFile(Stapler.java:450)
at org.kohsuke.stapler.Stapler.openURL(Stapler.java:268)
at org.kohsuke.stapler.Stapler.selectResourceByLocale(Stapler.java:217)
at 
org.kohsuke.stapler.Stapler.openResourcePathByLocale(Stapler.java:202)
at org.kohsuke.stapler.Stapler.service(Stapler.java:144)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
at 
hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:162)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at 
hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
at 
winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
at java.lang.Thread.run(Unknown Source)



Re: How to publish artifacts which will be still available via links on Jenkins?

2012-12-13 Thread Clemens
Hi,

have you just thought about using "Artifactory" ?


Am Donnerstag, 13. Dezember 2012 07:39:52 UTC+1 schrieb zakyn:
>
> Hello,
>  
> I have this situation. I have limited space on VM so I have to move the 
> results(artifacts) to the another virtual HDD (for example 
> \\file01\jenkins\results) but I need to have 
> the links to these files still available from the Jenkins web pages.
>  
> I went through the plugins but I did not find what I need.
>  
> Could you please help me?
>  
> Thank you.
>  
> Zakyn
>


Re: How to publish artifacts which will be still available via links on Jenkins?

2012-12-13 Thread Pawel Jasinski
hi,

groovy postbuild is your plugin.
Example configuration:

s=manager.createSummary("package.png")
s.appendText( "result.msi", false)
s.appendText( "result.msi", false)

be aware that normal browser by default do not follow such a links. e.g.
firefox - http://kb.mozillazine.org/Links_to_local_pages_do_not_work

cheers,
pawel


On Thu, Dec 13, 2012 at 7:39 AM, zakyn  wrote:

> Hello,
>
> I have this situation. I have limited space on VM so I have to move the
> results(artifacts) to the another virtual HDD (for example
> \\file01\jenkins\results) but I need to have
> the links to these files still available from the Jenkins web pages.
>
> I went through the plugins but I did not find what I need.
>
> Could you please help me?
>
> Thank you.
>
> Zakyn
>