AW: AW: Findbugs Plugin doesn't find report

2012-02-22 Thread Lewis, Eric
Hm... I'm using the Maven2/3 job type, and I can't configure it.
Do I have to use the freestyle build and lose the nice features of the Maven2/3 
job type?

Best regards,
Eric

-Ursprüngliche Nachricht-
Von: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] 
Im Auftrag von Ullrich Hafner
Gesendet: Dienstag, 21. Februar 2012 21:53
An: jenkinsci-users@googlegroups.com
Betreff: Re: AW: Findbugs Plugin doesn't find report

You need to set the pattern to

**/findbugsXml.xml

Ulli

On 02/21/2012 04:28 PM, Lewis, Eric wrote:
 Here's my configuration (the version is defined in pluginManagement):

   plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdfindbugs-maven-plugin/artifactId
 executions
   execution
 phasepackage/phase
 goals
   goalfindbugs/goal
 /goals
   /execution
 /executions
 configuration
   xmlOutputtrue/xmlOutput
   effortMax/effort
   
 excludeFilterFile${build.home}findbugs/findbugs-exclude.xml/excludeFilterFile
   failOnErrorfalse/failOnError
   sourceEncoding${file.encoding}/sourceEncoding
 /configuration
   /plugin

 As for the configuration you mention, according to 
 http://mojo.codehaus.org/findbugs-maven-plugin-2.4.0/findbugs-mojo.html 
 findbugsXmlOutput is deprecated and defaults to true
 findbugsXmlWithMessages doesn't exist

 The files I have in my target directory are:
 findbugs.xml
 findbugs-exclude.xml
 findbugsXml.xml

 Best regards,
 Eric

 -Ursprüngliche Nachricht-
 Von: jenkinsci-users@googlegroups.com 
 [mailto:jenkinsci-users@googlegroups.com] Im Auftrag von Ullrich Hafner
 Gesendet: Dienstag, 21. Februar 2012 16:16
 An: jenkinsci-users@googlegroups.com
 Betreff: Re: Findbugs Plugin doesn't find report

 Seems that the report is found, but the warnings are not reported...

 [FINDBUGS] Successfully parsed file 
 /ige/jenkins/work/jobs/base/workspace/base-impl/target/findbugs.xml of module 
 Implementation of Base Services with 0 warnings.


 What looks suspicious is the filename, did you use the following options?

   findbugsXmlOutputtrue/findbugsXmlOutput
   findbugsXmlWithMessagestrue/findbugsXmlWithMessages
   xmlOutputtrue/xmlOutput


 Normally the filename is findbugsXml.xml when used with maven...

 Ulli

 On 02/21/2012 03:53 PM, Lewis, Eric wrote:
 Hi

 I'm migrating our old build to the latest and greatest of everything, 
 including Maven 3.0.4, the latest Maven plugins (Findbugs 2.4.0), Jenkins 
 1.451 and Jenkins Findbugs plugin 4.33

 Now, while the Checkstyle and PMD reports are found, the Jenkins Findbugs 
 plugin doesn't see its report.

 Here's my log:
 [INFO] --- findbugs-maven-plugin:2.4.0:findbugs (default) @ base-impl ---
 [INFO] Fork Value is true
  [java] Warnings generated: 4
 [INFO] Done FindBugs Analysis
 [FINDBUGS] Parsing 1 files in 
 /ige/jenkins/work/jobs/base/workspace/base-impl/target
 [FINDBUGS] Successfully parsed file 
 /ige/jenkins/work/jobs/base/workspace/base-impl/target/findbugs.xml of 
 module Implementation of Base Services with 0 warnings.
 [FINDBUGS] Ignore new warnings since this is the first valid build
 [FINDBUGS] Not changing build status, since no threshold has been exceeded
 [FINDBUGS] Computing warning deltas based on reference build #2

 The findbugs.xml looks like this:
 ?xml version=1.0 encoding=UTF-8?
 BugCollection version='2.0.0' threshold='medium' effort='max'file 
 classname='ch.ipi.esv.base.impl.mgmt.MgmtServiceBean$RunTestsCallable'BugInstance
  type='SIC_INNER_SHOULD_BE_STATIC' priority='Normal' category='PERFORMANCE' 
 message='Should ch.ipi.esv.base.impl.mgmt.MgmtServiceBean$RunTestsCallable 
 be a _static_ inner class?' lineNumber='1'//filefile 
 classname='ch.ipi.esv.base.impl.mgmt.jmx.MailManagementService$SendTestMailCall'BugInstance
  type='DM_DEFAULT_ENCODING' priority='High' category='I18N' message='Found 
 reliance on default encoding in 
 ch.ipi.esv.base.impl.mgmt.jmx.MailManagementService$SendTestMailCall.call(): 
 new java.io.PrintStream(OutputStream)' lineNumber='149'/BugInstance 
 type='DM_DEFAULT_ENCODING' priority='High' category='I18N' message='Found 
 reliance on default encoding in 
 ch.ipi.esv.base.impl.mgmt.jmx.MailManagementService$SendTestMailCall.call(): 
 new java.io.PrintStream(OutputStream)' lineNumber='155'//filefile 
 classname='ch.ipi.esv.base.persistence.api.entity.BaseClass'BugInstance 
 type='EQ_UNUSUAL' priority='Normal' category='STYLE' 
 message='ch.ipi.esv.base.persistence.api.entity.BaseClass.equals(Object) is 
 unusual' 
 

Why any plugins is not at available plugin page and some month ago were there?

2012-02-22 Thread zakyn
Why any plugins is not at available plugin page and some month ago
were there?

THe problem is or example with Cppcheck plugin and others.

Thanks.

Vladimir


choosing maven as a paramater for a job

2012-02-22 Thread Eyal Edri
Hi,

Is there any way i can set the maven version as a param in job?
so who ever runs the job, can choose if to run it with mvn 2.2.1 or 3.0.3?  
(currently optional only from the dropbox in the maven top level build option).

thanks,

Eyal.


AW: AW: AW: Findbugs Plugin doesn't find report

2012-02-22 Thread Lewis, Eric
Ok, with this POM modification it works, thanks!

I also filed the issue https://issues.jenkins-ci.org/browse/JENKINS-12853 

Best regards,
Eric

-Ursprüngliche Nachricht-
Von: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] 
Im Auftrag von Ullrich Hafner
Gesendet: Mittwoch, 22. Februar 2012 11:34
An: jenkinsci-users@googlegroups.com
Betreff: Re: AW: AW: Findbugs Plugin doesn't find report

Ah, you are using the maven job type.

Here, Jenkins detects automatically which file is created. Since you did
not specify

findbugsXmlOutputtrue/findbugsXmlOutput

my plug-in thinks that only the old findbugs.xml file is created. Can
you please add that to your pom and retry?

Also, please file an issue in our Jira. I need to improve the detecting
of the correct file when using findbugs-maven-plugin 2.4.0 .

Ulli


 
On 02/22/2012 09:59 AM, Lewis, Eric wrote:
 Hm... I'm using the Maven2/3 job type, and I can't configure it.
 Do I have to use the freestyle build and lose the nice features of the 
 Maven2/3 job type?

 Best regards,
 Eric

 -Ursprüngliche Nachricht-
 Von: jenkinsci-users@googlegroups.com 
 [mailto:jenkinsci-users@googlegroups.com] Im Auftrag von Ullrich Hafner
 Gesendet: Dienstag, 21. Februar 2012 21:53
 An: jenkinsci-users@googlegroups.com
 Betreff: Re: AW: Findbugs Plugin doesn't find report

 You need to set the pattern to

 **/findbugsXml.xml

 Ulli

 On 02/21/2012 04:28 PM, Lewis, Eric wrote:
 Here's my configuration (the version is defined in pluginManagement):

   plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdfindbugs-maven-plugin/artifactId
 executions
   execution
 phasepackage/phase
 goals
   goalfindbugs/goal
 /goals
   /execution
 /executions
 configuration
   xmlOutputtrue/xmlOutput
   effortMax/effort
   
 excludeFilterFile${build.home}findbugs/findbugs-exclude.xml/excludeFilterFile
   failOnErrorfalse/failOnError
   sourceEncoding${file.encoding}/sourceEncoding
 /configuration
   /plugin

 As for the configuration you mention, according to 
 http://mojo.codehaus.org/findbugs-maven-plugin-2.4.0/findbugs-mojo.html 
 findbugsXmlOutput is deprecated and defaults to true
 findbugsXmlWithMessages doesn't exist

 The files I have in my target directory are:
 findbugs.xml
 findbugs-exclude.xml
 findbugsXml.xml

 Best regards,
 Eric

 -Ursprüngliche Nachricht-
 Von: jenkinsci-users@googlegroups.com 
 [mailto:jenkinsci-users@googlegroups.com] Im Auftrag von Ullrich Hafner
 Gesendet: Dienstag, 21. Februar 2012 16:16
 An: jenkinsci-users@googlegroups.com
 Betreff: Re: Findbugs Plugin doesn't find report

 Seems that the report is found, but the warnings are not reported...

 [FINDBUGS] Successfully parsed file 
 /ige/jenkins/work/jobs/base/workspace/base-impl/target/findbugs.xml of 
 module Implementation of Base Services with 0 warnings.


 What looks suspicious is the filename, did you use the following options?

   findbugsXmlOutputtrue/findbugsXmlOutput
   findbugsXmlWithMessagestrue/findbugsXmlWithMessages
   xmlOutputtrue/xmlOutput


 Normally the filename is findbugsXml.xml when used with maven...

 Ulli

 On 02/21/2012 03:53 PM, Lewis, Eric wrote:
 Hi

 I'm migrating our old build to the latest and greatest of everything, 
 including Maven 3.0.4, the latest Maven plugins (Findbugs 2.4.0), Jenkins 
 1.451 and Jenkins Findbugs plugin 4.33

 Now, while the Checkstyle and PMD reports are found, the Jenkins Findbugs 
 plugin doesn't see its report.

 Here's my log:
 [INFO] --- findbugs-maven-plugin:2.4.0:findbugs (default) @ base-impl ---
 [INFO] Fork Value is true
  [java] Warnings generated: 4
 [INFO] Done FindBugs Analysis
 [FINDBUGS] Parsing 1 files in 
 /ige/jenkins/work/jobs/base/workspace/base-impl/target
 [FINDBUGS] Successfully parsed file 
 /ige/jenkins/work/jobs/base/workspace/base-impl/target/findbugs.xml of 
 module Implementation of Base Services with 0 warnings.
 [FINDBUGS] Ignore new warnings since this is the first valid build
 [FINDBUGS] Not changing build status, since no threshold has been exceeded
 [FINDBUGS] Computing warning deltas based on reference build #2

 The findbugs.xml looks like this:
 ?xml version=1.0 encoding=UTF-8?
 BugCollection version='2.0.0' threshold='medium' effort='max'file 
 classname='ch.ipi.esv.base.impl.mgmt.MgmtServiceBean$RunTestsCallable'BugInstance
  type='SIC_INNER_SHOULD_BE_STATIC' priority='Normal' category='PERFORMANCE' 
 message='Should ch.ipi.esv.base.impl.mgmt.MgmtServiceBean$RunTestsCallable 
 be a _static_ inner class?' lineNumber='1'//filefile 
 classname='ch.ipi.esv.base.impl.mgmt.jmx.MailManagementService$SendTestMailCall'BugInstance
  type='DM_DEFAULT_ENCODING' priority='High' category='I18N' message='Found 
 reliance on 

Re: older format and/or unreadable data

2012-02-22 Thread danny staple
Although it may be good to examine them and figure out which plugin they
were depending on and if you still need it first...

On 21 February 2012 23:52, Michael Higgins mhigg...@puppetlabs.com wrote:

 On Tue, 21 Feb 2012 13:59:11 -0800 (PST)
 mete meteba...@gmail.com wrote:

 
  Hello,
 
  I am using the LTS version (1.424.2). When I click on manage jenkins,
  I see a warning saying You have data stored in an older format and/or
  unreadable data. with two buttons manage and dismiss. Last time I
  saw this on non-LTS version of jenkins, and I clicked dismiss, and I
  experienced some problems (which can be related to this or something
  else because I was also changing other things)
 
  My question is what is the reason for this warning, and how should I
  proceed ?
 
  Mete

 I've seen it when we've configured a plugin that is now disabled. The
 data is still in config.xml but has no purpose without the plugin.

 If I remember correctly, 'manage' just deletes the keys that have no
 purpose in the current context.

 HTH.

 Cheers,

 --
 Michael Higgins
 QA Intern, PuppetLabs
 mhigg...@puppetlabs.com




-- 
Danny Staple

Director, ODM Solutions Ltd
w: http://www.odmsolutions.co.uk
Blog: http://orionrobots.co.uk/blog1-Danny-Staple


Re: non-recursively checkout out an svn tree

2012-02-22 Thread Chris Withers

On 22/02/2012 10:46, danny staple wrote:

Can you use the included regions setting on the subversion config


Which subversion config are you referring to?

cheers,

Chris

--
Simplistix - Content Management, Batch Processing  Python Consulting
- http://www.simplistix.co.uk


Re: Jenkins running Python website functional tests

2012-02-22 Thread Jminne
can you run it from the command line on the slave?  I usually do that
to troubleshoot config issues like this.

On Feb 21, 3:00 pm, Steve Barnette stevebarne...@kossresource.com
wrote:
 Here's the config's and error messages I get when testing.

 FYI: The python source is the selenium's example from thier doc.

 In first two cases appears source code is found, but the selenium
 isn't.
 Selenium is installed and from command line any account can run the
 program,
 only except is under the Jenkins account. I can't re-install selenium
 under
 Jenkins because it is passworded.

 Errors below were from build setup
 Advanced Project Options
         Use custom workspace - /home/steveb/QA-project/Python
  This was done so Jenkins could find the source since not using any at
  this time.

 Build  Virtual Builder
         Python version - System
         Nature - Shell
         Command - /usr/bin/python2.7 selePy2.py
         Advanced - System site packages checked

 Error

 Started by user anonymous
 Building in workspace /home/steveb/QA-project/Python
 [Python] $ /bin/bash -xe /tmp/shiningpanda602526163731452384.sh
 + /usr/bin/python2.7 selePy2.py
 Traceback (most recent call last):
   File selePy2.py, line 6, in module
     browser = webdriver.Firefox() # Get local session of firefox
   File /usr/local/lib/python2.7/dist-packages/selenium/webdriver/
 firefox/webdriver.py, line 45, in __init__
     self.binary, timeout),
   File /usr/local/lib/python2.7/dist-packages/selenium/webdriver/
 firefox/extension_connection.py, line 46, in __init__
     self.binary.launch_browser(self.profile)
   File /usr/local/lib/python2.7/dist-packages/selenium/webdriver/
 firefox/firefox_binary.py, line 44, in launch_browser
     self._wait_until_connectable()
   File /usr/local/lib/python2.7/dist-packages/selenium/webdriver/
 firefox/firefox_binary.py, line 81, in _wait_until_connectable
     self._get_firefox_output())
 selenium.common.exceptions.WebDriverException: Message: 'The browser
 appears to have exited before we could connect. The output was: Error:
 no display specified\n'
 Build step 'Virtualenv Builder' marked build as failure
 Finished: FAILURE

 Switched to XShell and same errors as above.

 Switched to Python and removed path to python, just the source
 filename.

 In  this case it can't seem to find the source file.

 Started by user anonymous
 Building in workspace /home/steveb/QA-project/Python
 [Python] $ /var/lib/jenkins/shiningpanda/jobs/86790f80/virtualenvs/
 d41d8cd9/bin/python /tmp/shiningpanda3316563476659644939.py
 Traceback (most recent call last):
   File /tmp/shiningpanda3316563476659644939.py, line 1, in module
     selePy2.py
 NameError: name 'selePy2' is not defined
 Build step 'Virtualenv Builder' marked build as failure
 Finished: FAILURE

 
 Switched the build step  to Python Builder

 I put in full path to python and source file.

 Same error of can't find selenium libs.

 Only other error that sometimes pops up in trying all the various
 Python
 build variation is: invalid interpter and that appear to be a path
 issue.

 On Feb 20, 8:23 am, SteveB doc...@gmail.com wrote:







  It's a  holiday here and all the files are at work.   I can post info
  tomorrow.

  As to the selenium lib I used the pip install -U selenium like 
  thepython/selenium doc page says.

  Steve B.

  On Feb 19, 5:06 am, Chris Withers ch...@simplistix.co.uk wrote:

   On 17/02/2012 19:02, SteveB wrote:

Trying to useJenkinsto runpython-selenium-testng scripts to do
website functional testing and haveJenkinscollect the testng
result.   (FYI this is on a ubuntu system)

   Can you please include full examples of the tracebacks you're seeing?

   (It'd also be good to know how you've configurepython, how you've
   installed the seleniumpythonlibrary you refer to, etc)

   cheers,

   Chris

   --
   Simplistix - Content Management, Batch Processing PythonConsulting
               -http://www.simplistix.co.uk


Jenkins Server and Ports

2012-02-22 Thread David Weintraub
Our new Jenkins server has had all of its ports locked down. I mean
practically every single one. I had to create a ticket to our techs to
open the required ports.

Unfortunately, I'm not 100% sure what I should ask for. I bet other
people have been in this position too. So, what ports would you
recommend must remain open on a Jenkins server. Here's a few I listed:

Port 8080 and 8001: These are the default ports Jenkins uses. The 8001
is a control port.
Port 2368: Subversion's svnserve port. We normally use http:, but it's
nice to have the option. I can use svnserve with different permissions
than httpd. and it's a bit faster.

Port 25: SMTP Mail Server

Ports 53, 389, 636, 2368, and 2369: These are required for Active
Directory (maybe others might be required too). If you can't use
Active Directory, you might be able to use LDAP over port 389 or port
2368, or LDAPS over 636 or 2369.

Port 123: This is for the Network Time Protocol (NTP). Useful to sync
the clocks between Jenkins, your users, and the source repositories.

Port 4560: Used by Log4J

Port: 8000-8999: For future services. Maybe Sventon, JNLP used by
Jenkins for slave control, etc.

Any other ports you feel might be important? For example, maybe I
should have something for a SQL database.

-- 
David Weintraub
qazw...@gmail.com


Re: Jenkins Server and Ports

2012-02-22 Thread Les Mikesell
On Wed, Feb 22, 2012 at 1:37 PM, David Weintraub qazw...@gmail.com wrote:
 Our new Jenkins server has had all of its ports locked down. I mean
 practically every single one. I had to create a ticket to our techs to
 open the required ports.

 Unfortunately, I'm not 100% sure what I should ask for. I bet other
 people have been in this position too. So, what ports would you
 recommend must remain open on a Jenkins server. Here's a few I listed:

 Port 8080 and 8001: These are the default ports Jenkins uses. The 8001
 is a control port.
 Port 2368: Subversion's svnserve port. We normally use http:, but it's
 nice to have the option. I can use svnserve with different permissions
 than httpd. and it's a bit faster.

 Port 25: SMTP Mail Server

 Ports 53, 389, 636, 2368, and 2369: These are required for Active
 Directory (maybe others might be required too). If you can't use
 Active Directory, you might be able to use LDAP over port 389 or port
 2368, or LDAPS over 636 or 2369.

 Port 123: This is for the Network Time Protocol (NTP). Useful to sync
 the clocks between Jenkins, your users, and the source repositories.

 Port 4560: Used by Log4J

 Port: 8000-8999: For future services. Maybe Sventon, JNLP used by
 Jenkins for slave control, etc.

 Any other ports you feel might be important? For example, maybe I
 should have something for a SQL database.


I always run it via apache's ajp proxy (as /jenkins)  so you only need
port 80 open from most locations and it can co-exist with other web
services on that port.   If it is a linux box, you'll want port 22 for
ssh but maybe that goes without saying.  And ssh outbound to the
slaves if you start them that way.

-- 
   Les Mikesell
 lesmikes...@gmail.com


Re: To kick off a build on all slaves

2012-02-22 Thread Patrick Renaud
You are right, the Matrix Projects configuration does the trick. Tx for the 
hint! :-)

The only drawback with that approach is that I cannot just specify the 
slave label that needs to be traversed. Instead I have to explicitly list 
all the slaves that need to be visited by the admin task. This should be 
fine for most occasions but in the event that a slave went down then the 
top job will never complete as it cannot reach the specified slave. Also, 
if a new slave is added in that category then I must remember to add it to 
this admin job

Not perfect but it will do for now. Again, tx for the hint. If you happen 
to have a better idea then please drop it by! ;-)


custom build environments?

2012-02-22 Thread Les Mikesell
Does anyone have suggestions for how to get Jenkins to make Linux
builds that don't match the stock system environment that
autoconf/configure would find?  For example, if you want to have
multiple versions of boost installed and compile jobs that each need
some specific version.

-- 
   Les Mikesell
 lesmikes...@gmail.com


Re: svn revision policy

2012-02-22 Thread Les Mikesell
On Wed, Feb 22, 2012 at 2:16 PM, Sami Tikka sjti...@gmail.com wrote:

 When a build actually starts, it will check out whatever is the latest
 version at that moment in your version control.


I thought someone said this was different for parametrized builds but
I didn't understand it well enough to know it the parameter expansion
had to specify the revision, or if a job having any parameters would
stick in the queue with the revision of the time it was invoked.

-- 
   Les Mikesell
 lesmikes...@gmail.com


Re: constant building from svn - no change

2012-02-22 Thread Sami Tikka
Sorry, but I am not able to check your servers clocks for you. You
really need to do it yourself.

-- Sami

2012/2/21 fiona bingxue0...@hotmail.com:
 jenkins and svn repo server are in the same domain, the clock should
 be in sync, is it?

 On 2月21日, 下午1时37分, Sami Tikka sjti...@gmail.com wrote:
 The fist thing you need to check with svn, possibly others too, is that 
 Jenkins server's and svn repo server's clocks are in sync. Not almost, but 
 exactly. Run ntpd on both of them.

 -- Sami

 terry.rank...@csiro.au kirjoitti 17.2.2012 kello 7.03:



  Hi Guys

  I have a multi repo project, both checkouts are from svn servers, and I 
  have a ‘poll scm’ every 15 mins to build it.

  However, in the subversion changes, I can’t see any changes, and the repos 
  version numbers are not changing either, but it just keeps building my 
  project

  500 builds later (oops �C should have turned that off), I still can’t work 
  out what is triggering a build and why.

  I am running Jenkins 1.450 and subversion 1.37. Do you have any 
  suggestions?

  Terry- 隐藏被引用文字 -

 - 显示引用的文字 -


SSH plugin Can't connect to server problem

2012-02-22 Thread Anthony Ho
I am not able to configure the SSH plugin to connect to an ESXi 5.0
server (as well as some other hosts) as root user with the error
message “Can’t connect to server”.

There are some hosts that I am able to connect to without any
problems.

Is there something I need to configure in the ESXi server or in the
hosts which I cannot connect to?

I have no problems running ssh as root user to any of these hosts from
the system hosting Jenkins and running as user “jenkins”.

Thank you for your help.

--Anthony


Re: svn revision policy

2012-02-22 Thread Sami Tikka
2012/2/22 Les Mikesell lesmikes...@gmail.com:
 On Wed, Feb 22, 2012 at 2:16 PM, Sami Tikka sjti...@gmail.com wrote:

 When a build actually starts, it will check out whatever is the latest
 version at that moment in your version control.


 I thought someone said this was different for parametrized builds but
 I didn't understand it well enough to know it the parameter expansion
 had to specify the revision, or if a job having any parameters would
 stick in the queue with the revision of the time it was invoked.

Indeed, with some SCM plugins you can specify the version to be
checked out as a variable and then set this variable from build
parameter.

-- Sami


Re: svn revision policy

2012-02-22 Thread Christoph Kutzinski
AFAIK with the svn plugin it will checkout the revision from the date when the 
build was started (or queued - not sure). If you want the latest revision, you 
have to append @head to the repo url.



Am 22.02.2012 um 21:40 schrieb Sami Tikka sjti...@gmail.com:

 2012/2/22 Les Mikesell lesmikes...@gmail.com:
 On Wed, Feb 22, 2012 at 2:16 PM, Sami Tikka sjti...@gmail.com wrote:
 
 When a build actually starts, it will check out whatever is the latest
 version at that moment in your version control.
 
 
 I thought someone said this was different for parametrized builds but
 I didn't understand it well enough to know it the parameter expansion
 had to specify the revision, or if a job having any parameters would
 stick in the queue with the revision of the time it was invoked.
 
 Indeed, with some SCM plugins you can specify the version to be
 checked out as a variable and then set this variable from build
 parameter.
 
 -- Sami


Re: Environment variable referencing to remote fs root

2012-02-22 Thread Sami Tikka
AFAIK such a variable does not exist but you can cd .. starting from
$WORKSPACE and eventually you should get to the directory that has
slave.jar. I think that should be the directory that was configured as
remote root directory.

-- Sami

2012/2/16 Ringo De Smet ringo.des...@gmail.com:


 On 8 August 2011 23:54, John Vacz mailing.list.collect...@googlemail.com
 wrote:

 can anybody tell me what is the environment variable referencing to slave
 remote fs root?


 I need the same. Does such a variable exist pointing to the slave remote fs
 root?

 Ringo


Re: FSTrigger plugin issues

2012-02-22 Thread Grégory Boissinot
Could you raise a bug report for the envinject component and attach your
job configuration file (config.xml)?

On Wed, Feb 22, 2012 at 9:37 PM, Brad bhugg...@gmail.com wrote:

 I am having trouble getting the FSTrigger plugin to work.  I am
 getting the following error:

 [FSTrigger] - Monitor files

 Polling for the job Output-ICA
 Polling remotely on **
 Polling started on Feb 22, 2012 2:30:09 PM
 [ERROR] - SEVERE - Polling error Current Project is null

 All I have is a specific file I'm looking for an update on.  I thought
 maybe it was a slash issue but I've tried forward slashes and back
 slashes with no change.  The current setting is just the file name and
 I'm still getting the error.

 Any clues???


Re: Block Build when downstream project is *queued*

2012-02-22 Thread Sami Tikka
2012/2/15 Dirk Kuypers kuypers.d...@googlemail.com:
 Running everything in one job is no alternative
 because it would take more than 2 hours until all the tests are ready.

OK. But you do know it is possible to run several builds of one job
concurrently? Check the Execute concurrent builds if necessary on
job configuration page.

 But I just implemented a pilot job with copy artifact. Unfortunately I
 have two new problems with that:
 1. Why is copying the files taking that much time (about 16 minutes)?

 09:05:06  Started by upstream project ContestContinuous build number 3456
 09:05:06  Building remotely on 1SP1-SLAVE1 in workspace
 C:\Jenkins-Slave\workspace\ClimateChamberTest
 09:05:06  No emails were triggered.
 09:21:43  Copied 813 artifacts from ContestContinuous build number 3456
 10:02:58  [ClimateChamberTest] $ cmd /c call
 C:\Users\KUYPER~1.1SP\AppData\Local\Temp\hudson662483330654974304.bat

That's quite a lot of artifacts. How much data is that? I wonder if
the author of the Copy Artifacts plugin is reading this?

Another possibility is to not use Copy Artifacts plugin and do things
the old-fashioned way: use wget or curl to download the artifacts.

In your case, I probably would not download 813 files individually. I
would download the link that provides all artifacts as one
archive.zip package.


 Here is an old build with copy-workspace-scm plugin (same file set, I did just
 copy and paste for copy artifacts):

 15:25:03  Started by upstream project ContestContinuous build number 3447
 15:25:03  Building remotely on 1SP1-SLAVE1 in workspace
 C:\Jenkins-Slave\workspace\ClimateChamberTest
 15:26:54  No emails were triggered.
 15:26:54  [ClimateChamberTest] $ cmd /c call
 C:\Users\KUYPER~1.1SP\AppData\Local\Temp\hudson356075031990640251.bat

Strange. I would have thought it takes much longer to copy a full
workspace than some artifacts. I admit I haven't used the Copy
Workspace SCM plugin a lot. I did some testing with it but found it
slow and did not use it any more.

 2. I loose the changes from the compile job in the test job. With the
 old setup I fingerprinted one certain file in the compile and in the
 test job and with that due to some magic the unit test job now knew
 about the changes of the upstream job. Now this relation is somehow
 gone, although the compile job automatically fingerprints the same
 file (and many others) and I din't change the fingerprinting in the
 test job.

You need to fingerprint and archive one unique build artifact in the
upstream job, then copy that artifact into the downstream job and
fingerprint it in there too. When Jenkins sees the same fingerprint in
two builds, it knows they are connected.

-- Sami


Re: The network name cannot be found

2012-02-22 Thread Sami Tikka
What type of slave is this? There are some tips and troubleshooting
advice in Jenkins wiki. Did you read them?

https://wiki.jenkins-ci.org/display/JENKINS/Windows+slaves+fail+to+start+via+DCOM
https://wiki.jenkins-ci.org/display/JENKINS/Windows+slaves+fail+to+start+via+JNLP

-- Sami

2012/2/15 Vinod messagetoleg...@gmail.com:
 Hi All,
 I am running master on linux machine and slave on Windows machine.
 While running node job I get this message
 where xx.xxx.xx.xxx is IP Address for slave jenkins

 Connecting to xx.xxx.xx.xxx
 ERROR: The network name cannot be found.
 jcifs.smb.SmbException: The network name cannot be found.
        at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:545)
        at jcifs.smb.SmbTransport.send(SmbTransport.java:646)
        at jcifs.smb.SmbSession.send(SmbSession.java:244)
        at jcifs.smb.SmbTree.treeConnect(SmbTree.java:176)
        at jcifs.smb.SmbFile.doConnect(SmbFile.java:906)
        at jcifs.smb.SmbFile.connect(SmbFile.java:949)
        at jcifs.smb.SmbFile.connect0(SmbFile.java:875)
        at jcifs.smb.SmbFile.queryPath(SmbFile.java:1328)
        at jcifs.smb.SmbFile.exists(SmbFile.java:1410)
        at
 hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:
 235)
        at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:200)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor
 $Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor
 $Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)

 Please Help and suggest some Solution if some one can Help Me.

 Thanks In Advance
 Vinod Kumar


Re: xUnit - failed test did not set yellow ball

2012-02-22 Thread Grégory Boissinot
Not issue.
Closed.

On Mon, Feb 20, 2012 at 6:07 PM, Thomas Fürer tfuerer.java...@gmail.comwrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 please vote for
 https://issues.jenkins-ci.org/browse/JENKINS-12616

 I think you are running in the same issue as I do.

 thomas

 Am 20.02.2012 15:59, schrieb za...@centrum.cz:
  Hello,
 
  I have upgraded Jenkins and xUnit plugin to the newest ones and
  now when my cpp unit tests failed I see there are problems in
  results but the yellow ball is not set next to the build name.
 
  The config file is totally the same.
 
  Do you have any idea what I could do to fix this?
 
  Thanks
 
  Vladimir
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iQEcBAEBAgAGBQJPQn27AAoJEMIrIJt+IWii40YH/3A7TSUI05jltUGt2b4+ackf
 68h5n4HVWcwHHu6m2jYakZXmDFX4b78+QpC0aj88ZY7IrK2rN4Z8tPz2JHdyu7at
 kZcczLnmg0CzPEGCRjvr/Vz6qUmJPRfQlKFZcaJBeqk3k7PRvKUn28Ga/Kr8zvS6
 pqpHdgaPdAs5e4zokPxZspJp8pzktf8jujsMYvH4Qj30yUccFDQtP3SsKKs4BwUi
 v8MHEaFq5rLmK02QiPH6rcIMrteCfDZxJLhEBiEW7GWY4eq4Ef5A5wYDG+ESGzHO
 yD/G+5v218Qi7I8zWEnTwTWIFihKRHXS4JKItWELZ07up+OR8b41S5IRcTUPoxU=
 =i9OM
 -END PGP SIGNATURE-



Re: FSTrigger plugin issues

2012-02-22 Thread Brad Huggins
Done. Let me know if you need any additional information.
https://issues.jenkins-ci.org/browse/JENKINS-12865

On Wed, Feb 22, 2012 at 4:39 PM, Grégory Boissinot 
gregory.boissi...@gmail.com wrote:

 Could you raise a bug report for the envinject component and attach your
 job configuration file (config.xml)?


 On Wed, Feb 22, 2012 at 9:37 PM, Brad bhugg...@gmail.com wrote:

 I am having trouble getting the FSTrigger plugin to work.  I am
 getting the following error:

 [FSTrigger] - Monitor files

 Polling for the job Output-ICA
 Polling remotely on **
 Polling started on Feb 22, 2012 2:30:09 PM
 [ERROR] - SEVERE - Polling error Current Project is null

 All I have is a specific file I'm looking for an update on.  I thought
 maybe it was a slash issue but I've tried forward slashes and back
 slashes with no change.  The current setting is just the file name and
 I'm still getting the error.

 Any clues???





RE: email coming to everyone instead of build breakers (culprits)

2012-02-22 Thread Sampath.Rajagopal
Send to Recipient List is not checked for any trigger.

Include Culprits is checked for Failure trigger. In here Recipient
List is empty.

send to Committers is not checked for any trigger.

From: jenkinsci-users@googlegroups.com
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Slide
Sent: Wednesday, February 22, 2012 4:27 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: email coming to everyone instead of build breakers
(culprits)

 

Do you also have send to recipients checked?

On Feb 22, 2012 4:40 PM, sampath.rajago...@vce.com wrote:

Using Jenkins 1.4.51 and mail-ext-plug in / 2.1.8

 

The build failure notification goes to everyone instead of culprits.

The question is - when you enable Include Culprits, should it have
Recipient List filled in ? or it can be left blank ??

 

What should be done to have the mail sent to the breaker only. ?

 

thanks

 



Re: custom build environments?

2012-02-22 Thread Dean Yu
We have an internal plugin that manages chroots for exactly this scenario. We 
set up the chroot through a BuildWrapper, and we override the launch method so 
that each build step enters the chroot before it executes. There’s a lot of 
internal-only code in here, so it’s not something we can open source. However, 
if you want more information, I can sketch out some more detail for you.

  -- Dean


On 2/22/12 2:57 PM , Mark Waite markwa...@yahoo.com wrote:

I experimented once with a chroot environment as a way to have different 
configurations on the same Linux machine.  I found chroot to be more 
complicated than I was ready to use at the time, but I believe it can be used 
to provide different executable versions hosted over the same Linux kernel.

If you need different Linux kernels in addition to different libraries and 
tools, then I think you'll need separate machines (physical or virtual).

Mark Waite





 From: Les Mikesell lesmikes...@gmail.com
 To: jenkinsci-users jenkinsci-users@googlegroups.com
 Sent: Wednesday, February 22, 2012 1:19 PM
 Subject: custom build environments?


Does anyone have suggestions for how to get Jenkins to make Linux
builds that don't match the stock system environment that
autoconf/configure would find?  For example, if you want to have
multiple versions of boost installed and compile jobs that each need
some specific version.


RE: email coming to everyone instead of build breakers (culprits)

2012-02-22 Thread Slide
This may be a known bug, I don't have JIRA available right now, but you
could check.
On Feb 22, 2012 6:03 PM, sampath.rajago...@vce.com wrote:

 Send to Recipient List is not checked for any trigger.

 Include Culprits is checked for Failure trigger. In here Recipient
 List is empty.

 “send to Committers” is not checked for any trigger.

 *From:* jenkinsci-users@googlegroups.com [mailto:
 jenkinsci-users@googlegroups.com] *On Behalf Of *Slide
 *Sent:* Wednesday, February 22, 2012 4:27 PM
 *To:* jenkinsci-users@googlegroups.com
 *Subject:* Re: email coming to everyone instead of build breakers
 (culprits)

 ** **

 Do you also have send to recipients checked?

 On Feb 22, 2012 4:40 PM, sampath.rajago...@vce.com wrote:

 Using Jenkins 1.4.51 and mail-ext-plug in / 2.1.8

  

 The build failure notification goes to everyone instead of culprits.

 The question is - when you enable Include Culprits, should it have
 Recipient List filled in ? or it can be left blank ??

  

 What should be done to have the mail sent to the breaker only. ?

  

 thanks

  



RE: email coming to everyone instead of build breakers (culprits)

2012-02-22 Thread Sampath.Rajagopal
Sounds like https://issues.jenkins-ci.org/browse/JENKINS-12421

 

From: jenkinsci-users@googlegroups.com
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Slide
Sent: Wednesday, February 22, 2012 5:34 PM
To: jenkinsci-users@googlegroups.com
Subject: RE: email coming to everyone instead of build breakers
(culprits)

 

This may be a known bug, I don't have JIRA available right now, but you
could check.

On Feb 22, 2012 6:03 PM, sampath.rajago...@vce.com wrote:

Send to Recipient List is not checked for any trigger.

Include Culprits is checked for Failure trigger. In here Recipient
List is empty.

send to Committers is not checked for any trigger.

From: jenkinsci-users@googlegroups.com
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Slide
Sent: Wednesday, February 22, 2012 4:27 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: email coming to everyone instead of build breakers
(culprits)

 

Do you also have send to recipients checked?

On Feb 22, 2012 4:40 PM, sampath.rajago...@vce.com wrote:

Using Jenkins 1.4.51 and mail-ext-plug in / 2.1.8

 

The build failure notification goes to everyone instead of culprits.

The question is - when you enable Include Culprits, should it have
Recipient List filled in ? or it can be left blank ??

 

What should be done to have the mail sent to the breaker only. ?

 

thanks

 



Re: email coming to everyone instead of build breakers (culprits)

2012-02-22 Thread Slide
I think its actually similar to this one:
https://issues.jenkins-ci.org/browse/JENKINS-11309

On Wed, Feb 22, 2012 at 6:57 PM, sampath.rajago...@vce.com wrote:

 Sounds like https://issues.jenkins-ci.org/browse/JENKINS-12421

 ** **

 *From:* jenkinsci-users@googlegroups.com [mailto:
 jenkinsci-users@googlegroups.com] *On Behalf Of *Slide
 *Sent:* Wednesday, February 22, 2012 5:34 PM
 *To:* jenkinsci-users@googlegroups.com
 *Subject:* RE: email coming to everyone instead of build breakers
 (culprits)

 ** **

 This may be a known bug, I don't have JIRA available right now, but you
 could check.

 On Feb 22, 2012 6:03 PM, sampath.rajago...@vce.com wrote:

 Send to Recipient List is not checked for any trigger.

 Include Culprits is checked for Failure trigger. In here Recipient
 List is empty.

 “send to Committers” is not checked for any trigger.

 *From:* jenkinsci-users@googlegroups.com [mailto:
 jenkinsci-users@googlegroups.com] *On Behalf Of *Slide
 *Sent:* Wednesday, February 22, 2012 4:27 PM
 *To:* jenkinsci-users@googlegroups.com
 *Subject:* Re: email coming to everyone instead of build breakers
 (culprits)

  

 Do you also have send to recipients checked?

 On Feb 22, 2012 4:40 PM, sampath.rajago...@vce.com wrote:

 Using Jenkins 1.4.51 and mail-ext-plug in / 2.1.8

  

 The build failure notification goes to everyone instead of culprits.

 The question is - when you enable Include Culprits, should it have
 Recipient List filled in ? or it can be left blank ??

  

 What should be done to have the mail sent to the breaker only. ?

  

 thanks

  




-- 
Website: http://earl-of-code.com


Mixing automatic and scheduled builds

2012-02-22 Thread Sason
Hi there,

I'd like to set up two dependent build projects for the same software
product as follows:
- have a quick build run every time a developer commits changes,
i.e. using the SCM polling trigger. This will only be an incremental
build, followed by unit tests.
- run a scheduled full nightly build using the full test suite,
setup creation etc. once a day using the same SCM revision number as
the last successful/stable quick build (if there is one, and if that
revision number has increased since last time the nightly build
ran).

I wonder how this could be archived? My current understanding is that
it's hard to mix these two concepts in Jenkins. I know about the
Parameterized Trigger plugin which covers the use the same SCM
revision number requirement, but not the requirement of running only
once a day.

Thanks!