Users in 1.475

2012-07-30 Thread Andi Scharfstein
Hello all, I am setting up a fresh Jenkins install on a new server and have encountered a usage problem. After deploying the WAR and starting Jenkins, there are no links to login or register a new user. I have tried entering the registration URL directly and got a "java.lang.NullPointerException

Re: Working with Mercurial sub-repo

2012-07-30 Thread shanethehat
To further clarify my query: @jenkinsci suggested using the Multi-SCM plugin. This works well in so much as it gets out the parent repo and then grabs the latest sub repo and writes it to the library folder. What I additionally need is that if the library sub repo has been updated, the pare

how to read a slave log into email-ext via groovy script template

2012-07-30 Thread michael chiu
hi ALL , I add the following script in the email-ext groovy for reading the failed_case.html into the mail body. It works if I run job on the master node[linux]. <% def failed_case = new File(build.getWorkspace().getRemote()+ '\\failed_case.html') println f

Can I skip archiving if the build fails

2012-07-30 Thread Matthew.Webber
I have an "Archive the Artifacts" post-build action, and it looks like it will archive artifacts even if the build fails. In my particular case, I don't want that - is there a way to turn off archiving in such a case? (Note: I have -Dhudson.tasks.ArtifactArchiver.warnOnEmpty=true). Thanks Matth

RE: how to read a slave log into email-ext via groovy script

2012-07-30 Thread Alex Earl
template MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_Part_1427_17794027.1343641681717" --=_Part_1427_17794027.1343641681717 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit build.getLog has a couple of versions for different purpose

Re: Users in 1.475

2012-07-30 Thread cjo
This is normal for a fresh installation. To enable the requirement to login you need to enable security. Goto /configure then tick the checkbox for "Enable security" then select the "Security Realm" and "Authorization" that you require. see the wiki for details on these. https://wiki.jenkins-ci.

Re: Users in 1.475

2012-07-30 Thread Andi Scharfstein
Right, works like a charm. Sorry for the stupid question, I thought I remembered not having to do anything like that from a previous installation... should have gone through the docs again instead. Thanks a lot! Am Montag, 30. Juli 2012 12:52:26 UTC+2 schrieb cjo: > > This is normal for a fresh

Permalink to last Maven release builds usable in downstream build?

2012-07-30 Thread Radim Kubacki
Hi, I wanted to create a pipeline with a 1. Maven build that builds project including few of its subprojects and configured settings for Maven release build 2. manually executed downstream build to take deployed artifact(s) from latest Maven release build and push it to our testing enviroment (ins

Re: how to read a slave log into email-ext via groovy script

2012-07-30 Thread michael chiu
hi slide, Can you kindly show me some example about reading files ? I only find some article about build.getLog(100) . Michael Chiu slide於 2012年7月30日星期一UTC+8下午6時15分09秒寫道: > > template > MIME-Version: 1.0 > Content-Type: multipart/alternative; > boundary="=_Part_1427_17

Re: how to read a slave log into email-ext via groovy script

2012-07-30 Thread Slide
Are you trying to read the log, or read a file? On Mon, Jul 30, 2012 at 5:16 AM, michael chiu wrote: > hi slide, > Can you kindly show me some example about reading files ? I only > find some article about build.getLog(100) . > Michael Chiu > > slide於 2012年7月30日星期一UTC+8下午6時15分09秒寫道:

Re: 1 job wait for 2 others completed job before start

2012-07-30 Thread grayaii
You can take a look at the "Join Plugin". That may help you. Also, in the job you want to run, you can examine the status (and all sort of information!) of the other 2 jobs via: http://[YOUR_URL]/jenkins/view/All/job/[YOUR_JOB]/api/xml And parse whatever information you want. But I would take a

Re: psexec from a windows script works but doesn't return

2012-07-30 Thread SA Evans
Try putting a -i in the psexec call. i.e. psexec -i \\ Evidently it needs some sort of interactive privileges to run. When looking on my target server I'm not seeing any specific windows pop up when I run it so I don't know if it actually needs to have a logged in console session on the tar

LTS version 1.466.1 download issue

2012-07-30 Thread Stanley, Jason
Hello I am trying to download the jenkins.war file for LTS version 1.466.1. When I click on the “Older but stable (1.466.1)” link found here, http://jenkins-ci.org/changelog-stable , I recieve the following error below. Any ideas why? Forbidden You don't have permission to access /war-stable/l

Jenkins Server Time

2012-07-30 Thread Tom Denley
Is there any way to determine the current time on a Jenkins instance through its REST API? I make use of the Jenkins REST API, and frequently come across resources containing a timestamp field, from which I would like to calculate a duration -- by subtracting from the current time. Unfortunate

jenkins nodes keep losing connectivity - how to avoid manual restart of node service?

2012-07-30 Thread phil swenson
We have our Jenkins server running in virginia but all the nodes run in germany. Our nodes often lose connectivity briefly and the node gets stuck "offline". I have to manually go the the node and restart the windows service. This always works…. Does anyone have a remedy for this so I don't hav

RE: jenkins nodes keep losing connectivity - how to avoid manual restart of node service?

2012-07-30 Thread Mandeville, Rob
Just off the top of my head, so I could be horribly wrong: If your Virginia server is launching the German nodes, I could easily see this happening. If you launched your nodes from the German sites and simply told them where to find the Virginia server, I wonder if it would respond to a discon

Re: LDAP very slow

2012-07-30 Thread Sorin Ionuț Sbârnea
I am wondering if you've found an workaround, this bug makes AD binding almost useless in Jenkins. On Tuesday, November 22, 2011 6:47:24 PM UTC, Maven User wrote: > > Hi all - > > I think we're having a similar issue to: > > https://issues.jenkins-ci.org/browse/JENKINS-4895 > > >

Re: jenkins nodes keep losing connectivity - how to avoid manual restart of node service?

2012-07-30 Thread phil swenson
Just an FYI: I manually installed the nodes as a service. Jenkins did not install the service (I've never been able to get that functionality to work) On Mon, Jul 30, 2012 at 9:02 AM, Mandeville, Rob wrote: > Just off the top of my head, so I could be horribly wrong: > > If your Virginia serv

Re: Notifying when a job hasn't run for a set period

2012-07-30 Thread Jacob Robertson
This isn't quite what you're asking for, and I don't actually know how the RSS feeds work, but you can create a View that only shows you exactly what you want to see, and then maybe subscribe to that view's RSS feed? If you use View Job Filters you can create a view with exactly the jobs and condi

Re: Permalink to last Maven release builds usable in downstream build?

2012-07-30 Thread domi
Hi Radim, please fill an issue for this. regards Domi On 30.07.2012, at 13:54, Radim Kubacki wrote: > Hi, > > I wanted to create a pipeline with a > 1. Maven build that builds project including few of its subprojects > and configured settings for Maven release build > 2. manually executed downst

RE: Permalink to last Maven release builds usable in downstream build?

2012-07-30 Thread Nord, James
Hi Radim/Domi, It may also be because m2release plugin doesn't work well with Jenkins artifacts archival - see https://issues.jenkins-ci.org/browse/JENKINS-7487? /James > -Original Message- > From: jenkinsci-users@googlegroups.com [mailto:jenkinsci- > us...@googlegroups.com] On Behalf O

Re: Guidelines/best practices building embedded linux

2012-07-30 Thread Rich Pixley
On 7/29/12 09:03 , Sami Tikka wrote: Rich Pixley kirjoitti 28.7.2012 kello 0.28: You just have to understand that jenkins doesn't really do much in the way of work space management so hosed builds mean you'll have to clear the workspace and start all over from scratch. Jenkins does have the

Re: failure setting up slave...

2012-07-30 Thread Rich Pixley
Standard ubuntu-12.04 openjdk: rich@gecko> java --version Unrecognized option: --version Could not create the Java virtual machine. rich@gecko> java -version java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.3) (6b24-1.11.3-1ubuntu0.12.04.1) OpenJDK 64-Bit Server VM (build 20.0-b

Re: failure setting up slave...

2012-07-30 Thread Rich Pixley
I just triple checked and yes, it's all set up and ssh works fine, password free (public key), in both directions. --rich On 7/29/12 12:07 , krishna chaitanya kurnala wrote: Can you normally SSH to the slave machine from Master? I got some weird errors that disappeared after Firewall is relaxe

Is there a way to automatically put working directories elsewhere?

2012-07-30 Thread David Weintraub
I am planning on setting up a new Jenkins server at our company. I want to keep all deployable artifacts in Jenkins for a wide variety of reason (easy access, access control, etc.). The company would prefer if these deployable artifacts were kept on a NAS for backup reasons. I am sure that wouldn

Re: failure setting up slave...

2012-07-30 Thread Rich Pixley
I've gotten this working. The clue for me was here: http://jenkins.361315.n4.nabble.com/Doing-something-else-before-invoking-slave-jar-in-slave-launch-script-td4634608.html There appears to be a bug in the jenkins protocol but adding -n to the earlier ssh commands in my runslave.sh script appe

Re: failure setting up slave...

2012-07-30 Thread Sami Tikka
Doh! Of course! I don't really think it is Jenkins' fault the earlier ssh clients ate the first protocol messages. -- Sami Rich Pixley kirjoitti 30.7.2012 kello 21.40: > I've gotten this working. The clue for me was here: > http://jenkins.361315.n4.nabble.com/Doing-something-else-before-inv

Re: Is there a way to automatically put working directories elsewhere?

2012-07-30 Thread Sami Tikka
Did you try going to global configuration and clicking on the first Advanced button? It reveals two new settings that should do what you want. -- Sami David Weintraub kirjoitti 30.7.2012 kello 20.58: > I am planning on setting up a new Jenkins server at our company. I > want to keep all deploy

Re: Guidelines/best practices building embedded linux

2012-07-30 Thread Sami Tikka
Rich Pixley kirjoitti 30.7.2012 kello 20.13: > On 7/29/12 09:03 , Sami Tikka wrote: >> Rich Pixley kirjoitti 28.7.2012 kello 0.28: >>> You just have to understand that jenkins doesn't really do much in the way >>> of work space management so hosed builds mean you'll have to clear the >>> work

Re: Jenkins Server Time

2012-07-30 Thread Sami Tikka
I couldn't find it in the REST API, but maybe something like: echo 'println new Date()' | java -jar jenkins-cli.jar -s $JENKINS_URL groovy = jenkins-cli.jar is available from your $JENKINS_URL/cli. The equals sign at the end is not a typo. -- Sami Tom Denley kirjoitti 30.7.2012 kello 17.

Re: Problems with JVM Parameters in Freestyle Jobs with Maven Builder

2012-07-30 Thread Sami Tikka
That's not entirely accurate, I think. I have a job that builds Jenkins. The job is a maven job and I have set "-XX:MaxPermSize=256m -Djava.awt.headless=true" into MAVEN_OPTS under the Advanced button (in Build section). The build will fail without the permgen pool resize and also pop up some

Re: Problems with JVM Parameters in Freestyle Jobs with Maven Builder

2012-07-30 Thread Sami Tikka
How exactly are you setting these parameters to your freestyle job? Could you copy-paste your entire build step here? -- Sami Markward Schubert kirjoitti 26.7.2012 kello 14.09: > Hi Group! > > Is there some known issue with JVM Parameters being ignored for Maven build > steps in freestyle jo

Re: failure setting up slave...

2012-07-30 Thread Rich Pixley
I do. The protocol should have a more robust initial negotiation in order to cover exactly this extremely common case. Even reversing the initial protocol message so that it comes from the slave would probably do the job. --rich On 7/30/12 11:50 , Sami Tikka wrote: Doh! Of course! I don't

Re: Guidelines/best practices building embedded linux

2012-07-30 Thread Rich Pixley
I'm not just thinking of using the source code control system to do the cleaning here. I'm coming to jenkins after developing my own automated builder based on btrfs snapshots. With btrfs snapshots, it's possible to both keep an old build, (all artifacts intact), lying around while /also/ cre

Re: Jenkins Server Time

2012-07-30 Thread Tom Denley
Thanks for your efforts sti, but I need a solution that purely uses the REST API, as I have no access to the Jenkins instances in question. I'm a little surprised that there is no way to get this information, as the timestamps are fairly meaningless without some way to qualify them against the

SVN auth cache?

2012-07-30 Thread Jeff
When I first set up Jenkins I configured many of the initial jobs to pull from SVN using my personal user credentials. Once I got it working, I got our IT guys to create me a service account that is used to do the builds and changed all of my jobs to use the service account. This worked great unt

how to read the content of a file in the remote workspace via groovy postbuild plugin

2012-07-30 Thread michael chiu
Hi ALL I am trying to read the content of a file in the remote workspace using the GroovyPostbuild Plugin. It seem i have to use FilePath to access the remote file . does anyone have similar experience on this ? or give me a example ? Thanks in advanced. Michael Chiu

Re: upstream changeset info in the email-ext notify from downstream project

2012-07-30 Thread michael chiu
Hi Chris, I have solve this issue after got the same message from slide. Below is the result . I'm using the slide's script to find out the upstream build then refine the original groovy template if the build has upstream build .

Re: upstream changeset info in the email-ext notify from downstream project

2012-07-30 Thread Varghese Renny
Thanks Chris..this code snippet is very helpful for me...Actually i was searching for this...Thanks again...

Re: Is there a way to automatically put working directories elsewhere?

2012-07-30 Thread Les Mikesell
On Mon, Jul 30, 2012 at 12:58 PM, David Weintraub wrote: > I am planning on setting up a new Jenkins server at our company. I > want to keep all deployable artifacts in Jenkins for a wide variety of > reason (easy access, access control, etc.). > > The company would prefer if these deployable arti

Re: SVN auth cache?

2012-07-30 Thread Jeff
I think I found it... C:\Windows\System32\config\systemprofile\AppData\Roaming\Subversion This is for the LOCALSYSTEM account that is running my tomcat as a service...:-) On Mon, Jul 30, 2012 at 8:00 PM, Jeff wrote: > When I first set up Jenkins I configured many of the initial jobs to pull >