jobs disappeared (Possibly config.xml corrupted )

2012-03-15 Thread Karthik
I tried to run the new version of hudson from a separate jboss instance. It seem to have affected existing hudson. Suddenly the jobs don't appear in GUI. While re-starting Hudson, I notice below error in jbossstart.log 08:25:39,873 ERROR [STDERR] Mar 16, 2012 8:25:39 AM hudson.model.Hudson $5 on

Re: Pipeline Plugin: Use compiled artifact from previous stage

2012-03-15 Thread Nicky Ramone
Actually, even though grabbing the artifact from the Maven repository seems like a good idea, I think it's more coherent that you use the artifact from the upstream job in order to guarantee that the artifact is the one being processed at the current pipeline. Another build might be run in the midd

Re: Set Git's path from Groovy?

2012-03-15 Thread Jesse Farinacci
Greetings, On Thu, Mar 15, 2012 at 10:33 PM, Giro wrote: > I'm finding that upon installation, Hudson's default git path is just > "git" and needs to be fixed. I'd like to do it via Groovy. I've tried > to find the way to set this value with approaches like: > > println > hudson.model.Hudson.inst

Set Git's path from Groovy?

2012-03-15 Thread Giro
I'm finding that upon installation, Hudson's default git path is just "git" and needs to be fixed. I'd like to do it via Groovy. I've tried to find the way to set this value with approaches like: println hudson.model.Hudson.instance.pluginManager.getPlugin('git').metaClass.properties println hudso

Source of urrl and url in the JNLP file

2012-03-15 Thread Joshua J. Kugler
Howdy - Somewhat of a Jenkins newbie here. Trying to figure out a setup for which I recently became responsible. In the JNLP file for a builder, there is this: -urrl http://build.ourdomain.com/ -url http://build.lab.ourdomain.com:8080/ So I know where it gets the first URL (urrl?). That's the

Re: Pipeline Plugin: Use compiled artifact from previous stage

2012-03-15 Thread Jeff
If archiving allows referencing an artifact with a url, why not use the Maven repository URL for the artifact? And as to JAR naming (reponding to a previous post ), maven builds jars with the version and optional SNAPSHOT tag, which is the way it should be in my opinion...because I really dislike

building certain git revision

2012-03-15 Thread Roman Ovchinnikov
Hello! I've tried to search myself, but looks like my google-fu is weak. I want to know how what is proper way to specify certain git revision to be built ? I've found how to specify branch via (parameterized option), but not revision. Trying git-parameter plugin, but it looks to be too smart

Re: email-ext - jelly script example for matrix job

2012-03-15 Thread Slide
Can you post your template for posterity? On Mar 15, 2012 2:51 PM, "dpreilan" wrote: > I decided to code this as a groovy script and invoke in the content > section. For example: > ${SCRIPT,template="my-matrix-build-msg.template"} > > Slide, I looked back on some information you gave me last year

Re: email-ext - jelly script example for matrix job

2012-03-15 Thread dpreilan
I decided to code this as a groovy script and invoke in the content section. For example: ${SCRIPT,template="my-matrix-build-msg.template"} Slide, I looked back on some information you gave me last year. Thanks again! I just had to work my way thru understanding jenkins objects. Doug On Mar 13,

xUnit: Description of xml-file

2012-03-15 Thread Benedikt Rothe
I'd like to use xUnit with jenkins and write custom xslt-files to generate the xUnit-xml-files. I found some examples for these xUnit-xml-files - but I didnt find the complete documentation. Can anybody give me a link? Thank you Benedikt

Re: Pipeline Plugin: Use compiled artifact from previous stage

2012-03-15 Thread Nicky Ramone
Thanks both. I think that could work. There a few other problems with pipelines and Maven. I will probably open another thread for this. Regards. On Wed, Mar 14, 2012 at 10:25 PM, Pete wrote: > We do this but do not rely on the repository manager to pull down the > artifact. We configure the M

Using NAnt builder with Promoted Builds

2012-03-15 Thread aasukisuki
note: Sorry if this message shows up multiple times. I was experiencing issues with joining the group via nabble... I'm trying to use the NAnt builder with the Promoted Builds plugin, but it's now showing up in the list. I imagine there is an interface that need extended within the NAnt code in

Mar 14, 2012; 1:45pm

2012-03-15 Thread aasukisuki
Note: Sorry if this post has shown up multiple times, I was having issues joining the group via nabble... I'm trying to use the NAnt builder with the Promoted Builds plugin, but it's now showing up in the list. I imagine there is an interface that need implemented within the NAnt code in order fo

Re: SVN_REVISION not showing the correct revision

2012-03-15 Thread Jay Flowers
I see this too. Would some other people check to see if this is still happening? On Mon, Nov 14, 2011 at 8:27 PM, Ingo Richter wrote: > Hi, > > I have a Jenkins setup that uses the subversion plugin to determine > changes to my repository. To my surprise, I noticed today that the > SVN_REVISION

Re: stable

2012-03-15 Thread Sami Tikka
Please show us the page $JENKINS_URL/systemInfo -- Sami 2012/3/14 Suri : > Hi Sami, > > Thanks for your reply. > We are using JAVA 1.5, I have installed Jenkins using "rpm -ivh > Jenkins.rpm" command 6months before. > Recently i have replaced war file from 1.411 to LTS 424 version.  i > have upda

Re: Git and Jenkins-- behind master by 55 commits

2012-03-15 Thread Sami Tikka
2012/3/15 KB1JWQ : > I find I have to "git checkout master" or it stays on "no branch." Why is the "no branch" a problem? > What's the "proper" way to get the build operation to happen on the > most current version of master? Do not checkout master in your build step. Trust the git plugin. The g

How to deploy application in JBoss using jenkin

2012-03-15 Thread Dipesh Garg
Hi All, Can anybody tell me the process of deploying web application in JBoss web server using jenkin Thanks in advance Dipesh Garg

Re: Getting Current Build in Groovy

2012-03-15 Thread Jay Flowers
I figured it out... I was not running the Groovy script as the build step type "Execute system Groovy script" On Thu, Mar 15, 2012 at 9:00 AM, Jay Flowers wrote: > This use to work for me: > > def build = Thread.currentThread().executable > > Now I get this error: > > Caught: groovy.lang.Missin

Re: Getting Current Build in Groovy

2012-03-15 Thread Vojtech Juranek
Do you run it withing a Jenkins build in master JVM? For me still works fine > This use to work for me: > > def build = Thread.currentThread().executable > > Now I get this error: > > Caught: groovy.lang.MissingPropertyException: No such property: > executable for class: java.lang.Thread >

Getting Current Build in Groovy

2012-03-15 Thread Jay Flowers
This use to work for me: def build = Thread.currentThread().executable Now I get this error: Caught: groovy.lang.MissingPropertyException: No such property: executable for class: java.lang.Thread at hudson2123325863987208585.run(hudson2123325863987208585.groovy:5) Why oh why is the hap

Re: Hudson 2.1.2 + Subversion 1.6 + behind proxy: "build" doesnt pick credentials

2012-03-15 Thread Jan Seidel
Hiya, looks like the SCM server does either not know your machine/user or the authentication method is not supported. have you tried to access the server via plink and stored the finger print? I assume you are using https. So try this: - install plink (e.g. from PuTTy) - open a shell/DOS box - ent

Re: About an influence range of Jenkins Security Advisory 2012-03-05.

2012-03-15 Thread masato izumiya
Thank you for giving advice to us. We have started to consider updating Jenkins from Jenkins 1.409.1 to Jenkins LTS 1.424.6. However, if you knew what kind of pages has the risk of XSS in Jenkins, please teach us that kind of pages. -- Masato Izumiya On 3月13日, 午後10:05, Jesse Farinacci wrote: >

Hudson 2.1.2 + Subversion 1.6 + behind proxy: "build" doesnt pick credentials

2012-03-15 Thread Javy
Hi.. Posting here after going through similar questions and suggested solutions ( which did not seem to work in my case ). Summary of my problem: - Running Hudson as Windows service ( Hudson 2.1.2, Windows 7 Professional ) - While creating Job, I specify Subversion as the code source --- After sp

Re: Getting files from workspace via URL during a build

2012-03-15 Thread Jan Seidel
Ok, that blows my mind ... I don't see how to achieve this without either pinning the job to a specific server or by composing a tool that keeps track on which machine currently is building. That is an issue I have been cracking my brain on for a while and I did also just see one quick way. I have

Re: custom build environments?

2012-03-15 Thread Ringo De Smet
Hello Dean, On 23 February 2012 02:04, Dean Yu wrote: > 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

Re: Getting files from workspace via URL during a build

2012-03-15 Thread danny staple
Not quite. The job is running and not yet archived any artifacts. I want to pump a file through the tool needing a url as a build step, or in a script in a build step. We've found a crude way using user content dir and taking build number and job names into a path there which works for now, althou

Re: OOM error in submodule build; Jenkins says "SUCCESS"

2012-03-15 Thread Richard Mortimer
Tim, From what you have said there doesn't seem to be any obvious user error and it does look like some form of bug to me. Before reporting it in JIRA it would be a good idea to follow the advice at https://wiki.jenkins-ci.org/display/JENKINS/Build+is+hanging to see if there are any threads

Re: Jenkins and m-failsafe-p

2012-03-15 Thread Asmann, Roland
All jobs are maven type jobs, Jenkins is v1.449. Did you add any special configurations to have them marked accordingly or did it just work out of the box? On 15.03.2012 10:42, Ullrich Hafner wrote: > On 03/15/2012 10:08 AM, Asmann, Roland wrote: > > Hi all, > > > > When will Jenkins fully s

Re: Jenkins and m-failsafe-p

2012-03-15 Thread Ullrich Hafner
On 03/15/2012 10:08 AM, Asmann, Roland wrote: > Hi all, > > When will Jenkins fully support m-failsafe-p? Currently, when a test > with m-surefire-p fails, the build continues and is shown as 'unstable'. > When a test fails in m-failsafe-p, the build will fail and is therefor > shown as 'failed'.

Re: Getting files from workspace via URL during a build

2012-03-15 Thread Jan Seidel
Hi Danny, let me see if I get it right (bit tired and not woken up completely ;) ): - Your tool has to be supplied with an URL to collect one or more files. - It has to access a job result. - This job has finished to run. - It should always be the latest available file you need to access. - There

Jenkins and m-failsafe-p

2012-03-15 Thread Asmann, Roland
Hi all, When will Jenkins fully support m-failsafe-p? Currently, when a test with m-surefire-p fails, the build continues and is shown as 'unstable'. When a test fails in m-failsafe-p, the build will fail and is therefor shown as 'failed'. Imho, this should also be an 'unstable' build. Can this