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
> 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 until this morning when I had to change my password.
> There is something on the Jenkins server that has cached my personal
> credentials which it seems to be attempting to use before it tries the
> Service Account.
>
> By doing this, it keeps locking my account.  I am running on Windows
> server 2008 R2 x64 with Tomcat 7.  I have removed TortoiseSVN and SlikSVN,
> removed all cache folders I could find from my /AppData/
> folders, removed all subversion.credentials files from each job folder and
> reran all jobs, verified that the subversion credentials file has the
> Service Account, but it is STILL attempting to authenticate using my old
> password and I'm missing something.
>
> I fired up WireShark and verified that it is connecting and getting a
> HTTP/401 error for most of my jobs.
>
> Can someone point me to other places to look for SVN credentials?
>
> --
> Jeff Vincent
> predato...@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: 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 artifacts were kept on a
> NAS for backup reasons.
>
> I am sure that wouldn't be an issue with Jenkins. The only issue is
> one of speed. Jenkins would be doing the checkout remotely, and then
> compiling the remote source files. That could slow things down quite a
> bit. Most builds are pretty fast, with in a few minutes, so it's not a
> terrible concern. If a job is really problematic, I could configure it
> to use a local working directory. However, I can see this really
> increasing the maintenance. For example, imagine a job I configure on
> the NAS and use a particular directory for local storage. The
> developers branch the project and now want a Jenkins job for that
> branch. I copy the old Jenkins job, change the checkout URL and a few
> other things, but forget the local working directory. Now, I have two
> jobs using the same local working directory.
>
> It would be nice if Jenkins could be configured, so that the working
> directory is automatically put elsewhere. That way, when I create a
> job, Jenkins would simply put the working directory in local storage
> for me. For example, I configure a job /mnt/nas/jenkins/jobs/foo. All
> directories would be on the NAS, but the working directory would be on
> /opt/local/jenkins/foo or /opt/local/jenkins/jobs/foo. (I really don't
> care as long as local working directories are unique). Is there any
> way to set Jenkins up to do this? Is there a plugin that can do this?

Are you building everything on the jenkins host?Why not do builds
on slaves (even on the same host if necessary), and tell jenkins to
archive the build artifacts you want?   Then you can mount the NAS
storage wherever jenkins puts the artifacts without affecting builds -
or requiring the normally disposable workspaces to be on the NAS.

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


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

  def changeSet = null
   changeSet = build.changeSet
if(upstreamBuild != null) {
   // now do stuff with that upstream build
   changeSet = upstreamBuild.changeSet
   }

michael chiu於 2012年7月23日星期一UTC+8下午7時52分19秒寫道:
>
> Hi ALL,
>I found many article from you about jenkins email-ext . Can you 
> give me some advice about upstream changeset .
> I have 2 projects build and test . I would like to include
> upstream changeset info when downstream is failed  in the email 
> notification
> .
>  I have used the groovy temple [${SCRIPT,
> template="groovy-html.template"}]in email-ext.
>  Any advice will be appreciated.
>
> Mchiu 
>


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


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 until this morning when I had to change my password.
There is something on the Jenkins server that has cached my personal
credentials which it seems to be attempting to use before it tries the
Service Account.

By doing this, it keeps locking my account.  I am running on Windows server
2008 R2 x64 with Tomcat 7.  I have removed TortoiseSVN and SlikSVN, removed
all cache folders I could find from my /AppData/ folders,
removed all subversion.credentials files from each job folder and reran all
jobs, verified that the subversion credentials file has the Service
Account, but it is STILL attempting to authenticate using my old
password and I'm missing something.

I fired up WireShark and verified that it is connecting and getting a
HTTP/401 error for most of my jobs.

Can someone point me to other places to look for SVN credentials?

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


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 Jenkins server time.  I would have thought that the REST API call for 
the root resource should contain this.

On Monday, 30 July 2012 20:30:13 UTC+1, sti wrote:
>
> 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 
>
>
> > 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.  Unfortunately, I am 
> having trouble getting a value for the current timestamp of the Jenkins 
> server, and using local time leaves me open timezone problems. 
> > 
> > Any help/advice gratefully received. 
> > 
> > -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/ creating a 
fresh incremental build on top of it.  The two builds then share files 
in the file system so much as they are common and the file system takes 
care of which ones stay around.


With this approach, you can also automate recovery from failures. When 
an incremental fails, you simply start the next incremental from the 
last successful snapshot.  This also allows for "pre-commit" checking in 
the sense that changes can be built, (as an incremental on the previous 
build), and if successful, the changes can be committed and the work 
space becomes the next successful snapshot.  If it fails, the next build 
starts from the previously successful snapshot.


This doesn't have the static disk allocation of jenkins, (one job, 
maximum one workspace), but you can use the entire disk as a big ring 
buffer - remove the oldest builds until there's enough space for the 
next build, then build.


This is orders of magnitude faster than using the source code control 
system to do the cleaning.  It's also significantly faster in all work 
flows and doesn't require any source code control system hooks at all.  
It's completely source code control system agnostic.


If you put btrfs on root, it also protects your build host by 
effectively running the build in a disk jail.  Builds can muck about 
with the state of the build host and each build will still be completely 
independent with a zero time setup cost.


--rich


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 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-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 appears to work around the bug.

--rich


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 jobs? I have the following parameters set:
> 
> -XX:PermSize=128m -XX:MaxPermSize=512m -Xms512m -Xmx1g
> 
> It seems that these are ignored, because when I put -Xmx8g, the build runs as 
> if i wrote 1g, although the machine has a total of about 4g of ram.
> So I would expect the job to stop with a message, that i assigned more mem, 
> than available.
> The reason for me to investigate in this is, because after activating the 
> checkstyle plugin, I start getting heapspace Exceptions and started to 
> experiment with these settings.
> 
> 



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 extra icons into the dock without the headless 
option. I'm definitely of the opinion Jenkins will launch a new JVM where it 
executes maven.

-- Sami

Kanstantsin Shautsou  kirjoitti 30.7.2012 kello 0.40:

> Does it work for maven based jobs?
> Looks like you can't set more memory for maven then you gave to jenkins 
> process, because maven executes in parent jenkins java process.
> 
> 2012/7/26 Markward Schubert 
> Hi Group!
> 
> Is there some known issue with JVM Parameters being ignored for Maven build 
> steps in freestyle jobs? I have the following parameters set:
> 
> -XX:PermSize=128m -XX:MaxPermSize=512m -Xms512m -Xmx1g
> 
> It seems that these are ignored, because when I put -Xmx8g, the build runs as 
> if i wrote 1g, although the machine has a total of about 4g of ram.
> So I would expect the job to stop with a message, that i assigned more mem, 
> than available.
> The reason for me to investigate in this is, because after activating the 
> checkstyle plugin, I start getting heapspace Exceptions and started to 
> experiment with these settings.
> 
> 
> 



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

> 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.  Unfortunately, I am having trouble 
> getting a value for the current timestamp of the Jenkins server, and using 
> local time leaves me open timezone problems.
> 
> Any help/advice gratefully received.
> 
> -T



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 
>>> workspace and start all over from scratch.
>> Jenkins does have the option of clearing the workspace at the beginning of 
>> the build. It is usually there in the SCM (= version control) settings and 
>> is usually off.
> I haven't found that yet.  Core jenkins apparently doesn't have that ability, 
> although it would seem to be core functionality.

Well, it depends. If you can clean up the workspace by only deleting files that 
are not controlled by version control system, you can save a lot of time in 
checkout of large repositories. But then you need help from the version control 
system => Jenkins implements workspace cleaning in the SCM plugins. 

If you prefer to simply nuke the whole workspace before the build starts, you 
can do that too, but unfortunately you need 
https://wiki.jenkins-ci.org/display/JENKINS/Workspace+Cleanup+Plugin for it.

If you have a large repository, you probably do not want to start every build 
with a checkout from scratch.

If you use Subversion, click on the "Subversion" radiobutton under "Source code 
management" (in a job configuration.) Then click on the Advanced button. (There 
are many Advanced buttons on the page. Click on the Advanced button in the 
Source Code Management section.) for "Checkout Strategy", choose "Emulate clean 
checkout by first deleting unversioned/ignored files, then 'svn update'".

If you use Git, click on "Git" radiobutton under "Source code management". Then 
click on the 2nd Advanced button of the Source Code Management section (yes, 
Jenkins could use a helping hand from a professional UX designer...) Check the 
box "Clean after checkout".

If you use something else, maybe someone else can tell you how to do it.


> 
> And from my perspective, manual clearing is extremely minimal support.
>>> It would appear that jenkins is primarily based around a bunch of much, 
>>> much, much smaller builds than something like oe so there are likely to be 
>>> some scaling issues.  Eg, I'm finding that stuff like clearing the 
>>> workspace take long enough that jenkins thinks they've failed.
>> Interesting. Could you elaborate? I wasn't aware of any time limits in 
>> Jenkins builds. I have a Jenkins which runs 24 hour performance tests and 
>> Jenkins has never failed it because it runs too long.
> I'm not sure what else to say.  I click "clear workspace', it runs for a 
> while, I can see the disk space being cleared, and then it fails with a time 
> out.

Aaah! That's the way you do it. Yes, I have seen that time out on large 
workspaces. I use it so seldom I haven't bothered even making a bug report 
about it.

> A typical oe build directory can run 30gig per device and you may well build 
> for 5 devices.  That's a lot of disk space which takes time to deallocate.

I hope the SCM plugin for your version control system has support for 
intelligent workspace cleaning.

-- Sami

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 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't be an issue with Jenkins. The only issue is
> one of speed. Jenkins would be doing the checkout remotely, and then
> compiling the remote source files. That could slow things down quite a
> bit. Most builds are pretty fast, with in a few minutes, so it's not a
> terrible concern. If a job is really problematic, I could configure it
> to use a local working directory. However, I can see this really
> increasing the maintenance. For example, imagine a job I configure on
> the NAS and use a particular directory for local storage. The
> developers branch the project and now want a Jenkins job for that
> branch. I copy the old Jenkins job, change the checkout URL and a few
> other things, but forget the local working directory. Now, I have two
> jobs using the same local working directory.
> 
> It would be nice if Jenkins could be configured, so that the working
> directory is automatically put elsewhere. That way, when I create a
> job, Jenkins would simply put the working directory in local storage
> for me. For example, I configure a job /mnt/nas/jenkins/jobs/foo. All
> directories would be on the NAS, but the working directory would be on
> /opt/local/jenkins/foo or /opt/local/jenkins/jobs/foo. (I really don't
> care as long as local working directories are unique). Is there any
> way to set Jenkins up to do this? Is there a plugin that can do this?
> 
> -- 
> David Weintraub
> qazw...@gmail.com



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-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 appears to work around the bug.
> 
> --rich



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 appears to work around the 
bug.


--rich


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't be an issue with Jenkins. The only issue is
one of speed. Jenkins would be doing the checkout remotely, and then
compiling the remote source files. That could slow things down quite a
bit. Most builds are pretty fast, with in a few minutes, so it's not a
terrible concern. If a job is really problematic, I could configure it
to use a local working directory. However, I can see this really
increasing the maintenance. For example, imagine a job I configure on
the NAS and use a particular directory for local storage. The
developers branch the project and now want a Jenkins job for that
branch. I copy the old Jenkins job, change the checkout URL and a few
other things, but forget the local working directory. Now, I have two
jobs using the same local working directory.

It would be nice if Jenkins could be configured, so that the working
directory is automatically put elsewhere. That way, when I create a
job, Jenkins would simply put the working directory in local storage
for me. For example, I configure a job /mnt/nas/jenkins/jobs/foo. All
directories would be on the NAS, but the working directory would be on
/opt/local/jenkins/foo or /opt/local/jenkins/jobs/foo. (I really don't
care as long as local working directories are unique). Is there any
way to set Jenkins up to do this? Is there a plugin that can do this?

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


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



Krishna Chaitanya


On Sun, Jul 29, 2012 at 11:55 AM, Sami Tikka > wrote:


From which package does "java" on the slave come from?

-- Sami

Rich Pixley mailto:rich.pix...@palm.com>>
kirjoitti 28.7.2012 kello 0.24:


I'm trying to set up my first slave and I'm running into a
problem I don't understand or know how to debug.

Both machines are ubuntu-12.04, standard ubuntu jenkins install,
configured for " Project-based Matrix Authorization Strategy".

It looks to me as though my script has successfully contacted the
slave, downloaded slave.jar, and launched it, but for reasons
that aren't clear, the jenkins protocol is getting screwed up.

Can anyone tell me what this might mean?

--rich

[07/27/12 14:12:36] Launching slave agent
$ /bin/sh -x /var/lib/jenkins/runslave.shape.palm.com  
+ set -e
+ '[' -nape.palm.com    ']'
+ target=/home/jenkins/slave.jar
+ sshape.palm.com    wget -q --auth-no-challenge 
--no-check-certificate -O 
/home/jenkins/slave.jar-newhttps://slave:pointl...@gecko.palm.com/jenkins/jnlpJars/slave.jar
+ sshape.palm.com    mv /home/jenkins/slave.jar-new 
/home/jenkins/slave.jar
+ sshape.palm.com    /usr/bin/java -jar 
/home/jenkins/slave.jar
<===[JENKINS REMOTING CAPACITY]===>channel started
Ping failed. Terminating
ERROR: Connection terminated
ERROR: Unexpected error in launching a slave. This is probably a bug in 
Jenkins
hudson.remoting.RequestAbortedException  
:
 hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination 
of the channel
java.io.IOException: Unexpected termination of the channel
at hudson.remoting.Channel$ReaderThread.run(Channel.java:1037)
Caused by: java.io.EOFException
at 
java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570)
at hudson.remoting.Request.call(Request.java:149)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314)
at hudson.remoting.Channel.call(Channel.java:668)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368)
at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:333)
at hudson.slaves.CommandLauncher.launch(CommandLauncher.java:121)
at hudson.remoting.Channel$ReaderThread.run(Channel.java:1031)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:198)
ERROR: Process terminated with exit code 255
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
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:679)
Caused by: hudson.remoting.RequestAbortedException: java.io.IOException: 
Unexpected termination of the channel
at hudson.remoting.Request.abort(Request.java:273)
at hudson.remoting.Channel.terminate(Channel.java:719)
at hudson.remoting.Channel$ReaderThread.run(Channel.java:1060)
Caused by: java.io.IOException: Unexpected termination of the channel
at hudson.remoting.Channel$ReaderThread.run(Channel.java:1037)
Caused by  : 
java.io.EOFException

atjava.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570)  

atjava.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314)  

atjava.io.ObjectInputStream.readObject(ObjectInputStream.java:368)  

athudson.remoting.Channel$ReaderThread.run(Channel.java:1031)  






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-b12, mixed mode)
rich@gecko> dpkg -l | grep openjdk
ii  openjdk-6-jre 6b24-1.11.3-1ubuntu0.12.04.1   OpenJDK Java runtime, 
using Hotspot JIT
ii  openjdk-6-jre-headless 6b24-1.11.3-1ubuntu0.12.04.1   OpenJDK Java 
runtime, using Hotspot JIT (headless)
ii  openjdk-6-jre-lib 6b24-1.11.3-1ubuntu0.12.04.1   OpenJDK Java 
runtime (architecture independent libraries)


rich@ape> 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-b12, mixed mode)
rich@ape> dpkg -l | grep openjdk
ii  openjdk-6-jre 6b24-1.11.3-1ubuntu0.12.04.1OpenJDK Java 
runtime, using Hotspot JIT
ii  openjdk-6-jre-headless 6b24-1.11.3-1ubuntu0.12.04.1OpenJDK 
Java runtime, using Hotspot JIT (headless)
ii  openjdk-6-jre-lib 6b24-1.11.3-1ubuntu0.12.04.1OpenJDK Java 
runtime (architecture independent libraries)


--rich

On 7/29/12 11:55 , Sami Tikka wrote:

From which package does "java" on the slave come from?

-- Sami

Rich Pixley mailto:rich.pix...@palm.com>> 
kirjoitti 28.7.2012 kello 0.24:


I'm trying to set up my first slave and I'm running into a problem I 
don't understand or know how to debug.


Both machines are ubuntu-12.04, standard ubuntu jenkins install, 
configured for " Project-based Matrix Authorization Strategy".


It looks to me as though my script has successfully contacted the 
slave, downloaded slave.jar, and launched it, but for reasons that 
aren't clear, the jenkins protocol is getting screwed up.


Can anyone tell me what this might mean?

--rich

[07/27/12 14:12:36] Launching slave agent
$ /bin/sh -x /var/lib/jenkins/runslave.shape.palm.com  
+ set -e
+ '[' -nape.palm.com    ']'
+ target=/home/jenkins/slave.jar
+ sshape.palm.com    wget -q --auth-no-challenge 
--no-check-certificate -O 
/home/jenkins/slave.jar-newhttps://slave:pointl...@gecko.palm.com/jenkins/jnlpJars/slave.jar
+ sshape.palm.com    mv /home/jenkins/slave.jar-new 
/home/jenkins/slave.jar
+ sshape.palm.com    /usr/bin/java -jar 
/home/jenkins/slave.jar
<===[JENKINS REMOTING CAPACITY]===>channel started
Ping failed. Terminating
ERROR: Connection terminated
ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins
hudson.remoting.RequestAbortedException  
:
 hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination 
of the channel
java.io.IOException: Unexpected termination of the channel
at hudson.remoting.Channel$ReaderThread.run(Channel.java:1037)
Caused by: java.io.EOFException
at 
java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570)
at hudson.remoting.Request.call(Request.java:149)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314)
at hudson.remoting.Channel.call(Channel.java:668)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368)
at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:333)
at hudson.slaves.CommandLauncher.launch(CommandLauncher.java:121)
at hudson.remoting.Channel$ReaderThread.run(Channel.java:1031)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:198)
ERROR: Process terminated with exit code 255
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
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:679)
Caused by: hudson.remoting.RequestAbortedException: java.io.IOException: 
Unexpected termination of the channel
at hudson.remoting.Request.abort(Request.java:273)
at hudson.remoting.Channel.terminate(Channel.java:719)
at hudson.remoting.Channel$ReaderThread.run(Channel.java:1060)
Caused by: java.io.IOException: Unexpected termination of the channel
at hudson.remoting.Channel$ReaderThread.run(Channel.java:1037)
Caused by  : 
java.io.EOFException

atjava.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570)  

atjava.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314)  


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 option of clearing the workspace at the beginning of the 
build. It is usually there in the SCM (= version control) settings and is 
usually off.
I haven't found that yet.  Core jenkins apparently doesn't have that 
ability, although it would seem to be core functionality.


And from my perspective, manual clearing is extremely minimal support.

It would appear that jenkins is primarily based around a bunch of much, much, 
much smaller builds than something like oe so there are likely to be some 
scaling issues.  Eg, I'm finding that stuff like clearing the workspace take 
long enough that jenkins thinks they've failed.

Interesting. Could you elaborate? I wasn't aware of any time limits in Jenkins 
builds. I have a Jenkins which runs 24 hour performance tests and Jenkins has 
never failed it because it runs too long.
I'm not sure what else to say.  I click "clear workspace', it runs for a 
while, I can see the disk space being cleared, and then it fails with a 
time out.


A typical oe build directory can run 30gig per device and you may well 
build for 5 devices.  That's a lot of disk space which takes time to 
deallocate.


--rich


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 Of domi
> Sent: 30 July 2012 17:32
> To: jenkinsci-users@googlegroups.com
> Subject: Re: Permalink to last Maven release builds usable in downstream
> build?
>
> 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
> > downstream build to take deployed artifact(s) from latest Maven
> > release build and push it to our testing enviroment (install RPM or
> > deploy web application).
> >
> > I can do (2.) as a promotion but I do not like it. (I'd like to run
> > some integration tests when the build is is deployed. Also there can
> > be more staging levels so deployment pipeline looks like a better
> > solution than a set of promotions.)
> >
> > I am almost there with the help of Maven Deployment Linker plugin
> > (http://wiki.hudson-ci.org/display/HUDSON/Maven+Deployment+Linker) but
> > I can only choose to select last {|stable|successfull|failed} build as
> > a source of my artifacts in this downstream build. Why isn't release
> > build here when Maven plugin creates a permalink for lastRelease job?
> > Configuring it to lastStable build is not an option: there can be some
> > manual test between build and deployment build and even without the
> > release build initiates new non-release build called from an SCM
> > trigger when version update is pushed as a result of maven release.
> >
> > So is there a way how to access last release build data from some
> > downstream build? If there is not how difficult it would be to add it?
> >
> > -Radim





**
This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
postmas...@nds.com and delete it from your system as well as any copies. The 
content of e-mails as well as traffic data may be monitored by NDS for 
employment and security purposes. To protect the environment please do not 
print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales. Registered no. 
3080780. VAT no. GB 603 8808 40-00
**


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 downstream build to take deployed artifact(s)
> from latest Maven release build and push it to our testing enviroment
> (install RPM or deploy web application).
> 
> I can do (2.) as a promotion but I do not like it. (I'd like to run
> some integration tests when the build is is deployed. Also there can
> be more staging levels so deployment pipeline looks like a better
> solution than a set of promotions.)
> 
> I am almost there with the help of Maven Deployment Linker plugin
> (http://wiki.hudson-ci.org/display/HUDSON/Maven+Deployment+Linker) but
> I can only choose to select last {|stable|successfull|failed} build as
> a source of my artifacts in this downstream build. Why isn't release
> build here when Maven plugin creates a permalink for lastRelease job?
> Configuring it to lastStable build is not an option: there can be some
> manual test between build and deployment build and even without the
> release build initiates new non-release build called from an SCM
> trigger when version update is pushed as a result of maven release.
> 
> So is there a way how to access last release build data from some
> downstream build? If there is not how difficult it would be to add it?
> 
> -Radim



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
conditions you want.  We have a view for all jobs that haven't run in a
certain amount of time, and that helps us to know which jobs have fallen
off the wagon and need some attention.

On Fri, Jul 27, 2012 at 7:16 AM, Mark Waite  wrote:

> Maybe you could use the XML API to query the time stamp of the build in an
> external script?
>
> For example, I can see the time stamps (in XML) of all the builds for the
> job named "MyJenkinsJob" job with this syntax:
>
> http://localhost:8080/job/MyJenkinsJob/api/xml?tree=builds[timestamp]
>
> You can learn more about the API by appending /api to most Jenkins URLs.
>
> Mark Waite
>
>   --
> *From:* Chemmo 
> *To:* jenkinsci-users@googlegroups.com
> *Sent:* Friday, July 27, 2012 1:46 AM
> *Subject:* Notifying when a job hasn't run for a set period
>
> Hey,
>
> Is there a plugin/other way to detect if a job hasn't run for (say) a day.
> We have a remote trigger on one of our jobs which would be handy to know if
> it hasn't run recently.
>
> Thanks
>
>
>


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 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 disconnect by trying to reconnect.
>
> Then again, you mention that you are restarting the Windows service, which 
> implies that you're already doing this.  If that is the case (that your 
> German Windows boxes are launching slaves as a service independently and 
> auto-connecting to Virginia), there might be a way in Windows to make a 
> service auto-restart.  That way, when you lose connectivity, Windows itself 
> will try to restart the slave node.
>
> --Rob
>
> -Original Message-
> From: jenkinsci-users@googlegroups.com 
> [mailto:jenkinsci-users@googlegroups.com] On Behalf Of phil swenson
> Sent: Monday, July 30, 2012 10:48 AM
> To: jenkinsci-users
> Subject: jenkins nodes keep losing connectivity - how to avoid manual restart 
> of node service?
>
> 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 have to go thru this manual 
> step (we have 16 nodes, so it's a pain).??
>
> thanks
> phil
>
> The information in this message is for the intended recipient(s) only and may 
> be the proprietary and/or confidential property of Litle & Co., LLC, and thus 
> protected from disclosure. If you are not the intended recipient(s), or an 
> employee or agent responsible for delivering this message to the intended 
> recipient, you are hereby notified that any use, dissemination, distribution 
> or copying of this communication is prohibited. If you have received this 
> communication in error, please notify Litle & Co. immediately by replying to 
> this message and then promptly deleting it and your reply permanently from 
> your computer.


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 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 
disconnect by trying to reconnect.

Then again, you mention that you are restarting the Windows service, which 
implies that you're already doing this.  If that is the case (that your German 
Windows boxes are launching slaves as a service independently and 
auto-connecting to Virginia), there might be a way in Windows to make a service 
auto-restart.  That way, when you lose connectivity, Windows itself will try to 
restart the slave node.

--Rob

-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of phil swenson
Sent: Monday, July 30, 2012 10:48 AM
To: jenkinsci-users
Subject: jenkins nodes keep losing connectivity - how to avoid manual restart 
of node service?

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 have to go thru this manual step 
(we have 16 nodes, so it's a pain).??

thanks
phil

The information in this message is for the intended recipient(s) only and may 
be the proprietary and/or confidential property of Litle & Co., LLC, and thus 
protected from disclosure. If you are not the intended recipient(s), or an 
employee or agent responsible for delivering this message to the intended 
recipient, you are hereby notified that any use, dissemination, distribution or 
copying of this communication is prohibited. If you have received this 
communication in error, please notify Litle & Co. immediately by replying to 
this message and then promptly deleting it and your reply permanently from your 
computer.


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 have to go thru this
manual step (we have 16 nodes, so it's a pain).??

thanks
phil


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.  Unfortunately, I am 
having trouble getting a value for the current timestamp of the Jenkins 
server, and using local time leaves me open timezone problems.

Any help/advice gratefully received.

-T


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/latest/jenkins.war on this 
server.

Apache/2.2.14 (Ubuntu) Server at mirrors.jenkins-ci.org Port 80

Thanks
Jason


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 target machine or not, but I was banging my head against a 
wall for several hours until I came across this solution that worked for 
someone else.

SA



On Thursday, July 19, 2012 3:25:06 AM UTC-5, Eyal wrote:
>
> I'm having the same problem? Any suggestions?
>
> On Wednesday, January 11, 2012 10:42:42 PM UTC+2, had4 wrote:
>>
>> I am running a Jenkins build on windows that calls a script from the 
>> workspace which uses psexec.exe to remotely run an installation on 
>> another server. I have the -accepteula option so it doesn't hang 
>> waiting for that. It actually runs the job on the remote server but 
>> when the remote script exits the Jenkins build doesn't get the message 
>> and hangs (until I kill the psexec service process on the remote 
>> server or the psexec process on the Jenkins server. Has anyone tried 
>> this successfully? Below is the output from the end of the jenkins job 
>> where it is running the script. 
>>
>> Is this something I should be using a Jenkins slave for? I suppose I 
>> should look into that. 
>>
>> Thanks. 
>>
>>
>> [workspace] $ cmd /c call D:\tomcat6\temp 
>> \hudson7618064618623105909.bat 
>>
>> d:\opt\hudson\jobs\Deploy XXX to Dev\workspace>installdevportal.bat 
>>
>> d:\opt\hudson\jobs\Deploy XXX to Dev\workspace>set SERVER=10.99.99.56 
>>
>> d:\opt\hudson\jobs\Deploy XXX to Dev\workspace>copy target\portal.war \ 
>> \10.217.6.56\D$\temp 
>> 1 file(s) copied. 
>>
>> d:\opt\hudson\jobs\Deploy XXX to Dev\workspace>tools\psexec.exe - 
>> accepteula \\10.99.99.56 -u techboss -p PASSWORD -w d:\temp d:\temp 
>> \installportal.bat 10.99.99.56 weblogic 
>>
>> PsExec v1.98 - Execute processes remotely 
>> Copyright (C) 2001-2010 Mark Russinovich 
>> Sysinternals - www.sysinternals.com 
>>
>>  HANGS HERE UNTIL I KILL PROCESSES, NO OUTPUT RETURNED FROM REMOTE 
>> SCRIPT 
>>
>> Build was aborted 
>> Aborted by hal.deadman 
>> Finished: ABORTED 
>>
>

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 look at the "Join Plugin".  It may help you out.
Good luck!



--
View this message in context: 
http://jenkins.361315.n4.nabble.com/1-job-wait-for-2-others-completed-job-before-start-tp4636466p4636474.html
Sent from the Jenkins users mailing list archive at Nabble.com.


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秒寫道:
>>
>> 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 purposes.
>>
>> Sent from my Windows Phone
>> From: michael chiu
>> Sent: 7/30/2012 2:48 AM
>> To: jenkinsci-users@googlegroups.com
>> Subject: how to read a slave log into email-ext via groovy script
>> template
>> 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 failed_case.text%>
>> if failed ,if the job is running on the slave [windows version ] . I
>> always
>> got "Exception: javax.script.ScriptException:
>> java.io.FileNotFoundException: d:\jenkins\workspace\x\failed_case.html
>> (No such file or directory) "
>>
>>
>> Do you know how to access the log in the slave node ?
>>
>> --=_Part_1427_17794027.1343641681717
>> Content-Type: text/html; charset="utf-8"
>> Content-Transfer-Encoding: quoted-printable
>>
>> > http-equiv=3D"Cont=
>> ent-Type">> =
>> font-size: 11pt;">build.getLog has a couple of versions for different
>> purpo=
>> ses.Sent from my Windows Phone> style=3D"fo=
>> nt-family: Tahoma,sans-serif; font-size: 10pt; font-weight: bold;">From:
>> > span>> 10pt;">micha=
>> el chiu> font-size:=
>>  10pt; font-weight: bold;">Sent: > Tahoma,=
>> sans-serif; font-size: 10pt;">7/30/2012 2:48 AM> style=3D"fo=
>> nt-family: Tahoma,sans-serif; font-size: 10pt; font-weight: bold;">To:
>> > an>> 10pt;">jenkins=
>> ci-us...@googlegroups.com> Tahoma,sans=
>> -serif; font-size: 10pt; font-weight: bold;">Subject: > style=3D=
>> "font-family: Tahoma,sans-serif; font-size: 10pt;">how to read a slave log
>> =
>> into email-ext via groovy script
>> template>  style=3D"font-family: arial, sans-serif; font-size: 14.39618530273px;
>> =
>> ">hi ALL ,> 1=
>> 4.39618530273px; ">             
>> &nb=
>> sp; I add the following script in the email-ext groovy for reading the
>> fail=
>> ed_case.html into the mail body. It works if I run job on the master
>> node[l=
>> inux]. > =
>> 14.39618530273px; "><% def failed_case =3D new
>> File(build.getWo=
>> rkspace().getRemote()+ '\\failed_case.html')   
>> &=
>> nbsp;                 println
>> faile=
>> d_case.text    %>if failed ,if the job is running
>> o=
>> n the slave [windows version ] . I always got "> =
>> 'Times New Roman', serif; font-size: 12pt; ">Exception:
>> javax.script.Script=
>> Exception: java.io.FileNotFoundException:
>> d:\jenkins\workspace\x\failed=
>> _case.html (No such file or directory) "> class=3D"MsoNo=
>> rmal" style=3D"margin-bottom: 0px; ">> font-f=
>> amily: 'Times New Roman', serif; "> Do you know
>> ho=
>> w to access the log in the slave node ?
>> --=_Part_1427_17794027.1343641681717--



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


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_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 purposes. 
>
> Sent from my Windows Phone 
> From: michael chiu 
> Sent: 7/30/2012 2:48 AM 
> To: jenkinsci-users@googlegroups.com 
> Subject: how to read a slave log into email-ext via groovy script 
> template 
> 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 failed_case.text%> 
> if failed ,if the job is running on the slave [windows version ] . I 
> always 
> got "Exception: javax.script.ScriptException: 
> java.io.FileNotFoundException: d:\jenkins\workspace\x\failed_case.html 
> (No such file or directory) " 
>
>
> Do you know how to access the log in the slave node ? 
>
> --=_Part_1427_17794027.1343641681717 
> Content-Type: text/html; charset="utf-8" 
> Content-Transfer-Encoding: quoted-printable 
>
>  http-equiv=3D"Cont= 
> ent-Type"> = 
> font-size: 11pt;">build.getLog has a couple of versions for different 
> purpo= 
> ses.Sent from my Windows Phone style=3D"fo= 
> nt-family: Tahoma,sans-serif; font-size: 10pt; font-weight: bold;">From: 
>  span> 10pt;">micha= 
> el chiu font-size:= 
>  10pt; font-weight: bold;">Sent:  Tahoma,= 
> sans-serif; font-size: 10pt;">7/30/2012 2:48 AM style=3D"fo= 
> nt-family: Tahoma,sans-serif; font-size: 10pt; font-weight: bold;">To: 
>  an> 10pt;">jenkins= 
> ci-us...@googlegroups.com Tahoma,sans= 
> -serif; font-size: 10pt; font-weight: bold;">Subject:  style=3D= 
> "font-family: Tahoma,sans-serif; font-size: 10pt;">how to read a slave log 
> = 
> into email-ext via groovy script 
> template  style=3D"font-family: arial, sans-serif; font-size: 14.39618530273px; 
> = 
> ">hi ALL , 1= 
> 4.39618530273px; ">              
> &nb= 
> sp; I add the following script in the email-ext groovy for reading the 
> fail= 
> ed_case.html into the mail body. It works if I run job on the master 
> node[l= 
> inux].  = 
> 14.39618530273px; "><% def failed_case =3D new 
> File(build.getWo= 
> rkspace().getRemote()+ '\\failed_case.html')    
> &= 
> nbsp;                 println 
> faile= 
> d_case.text    %>if failed ,if the job is running 
> o= 
> n the slave [windows version ] . I always got " = 
> 'Times New Roman', serif; font-size: 12pt; ">Exception: 
> javax.script.Script= 
> Exception: java.io.FileNotFoundException: 
> d:\jenkins\workspace\x\failed= 
> _case.html (No such file or directory) " class=3D"MsoNo= 
> rmal" style=3D"margin-bottom: 0px; "> font-f= 
> amily: 'Times New Roman', serif; "> Do you know 
> ho= 
> w to access the log in the slave node ? 
> --=_Part_1427_17794027.1343641681717-- 
>


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
(install RPM or deploy web application).

I can do (2.) as a promotion but I do not like it. (I'd like to run
some integration tests when the build is is deployed. Also there can
be more staging levels so deployment pipeline looks like a better
solution than a set of promotions.)

I am almost there with the help of Maven Deployment Linker plugin
(http://wiki.hudson-ci.org/display/HUDSON/Maven+Deployment+Linker) but
I can only choose to select last {|stable|successfull|failed} build as
a source of my artifacts in this downstream build. Why isn't release
build here when Maven plugin creates a permalink for lastRelease job?
Configuring it to lastStable build is not an option: there can be some
manual test between build and deployment build and even without the
release build initiates new non-release build called from an SCM
trigger when version update is pushed as a result of maven release.

So is there a way how to access last release build data from some
downstream build? If there is not how difficult it would be to add it?

-Radim


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 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.org/display/JENKINS/Securing+Jenkins
>
> Chris
>
>
>
> On Monday, July 30, 2012 9:54:38 AM UTC+1, Andi Scharfstein wrote:
>>
>> 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 at 
>> jenkins.model.Jenkins.doSignup(Jenkins.java:3329)". Is this a known bug or 
>> is it just me? This is a completely fresh installation just out of the box 
>> using the current release version 1.475, I don't know if I even had a 
>> chance to break anything. Tomcat logs are clean without showing any 
>> suspicious behaviour. Thanks in advance for any replies!
>>
>

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.org/display/JENKINS/Securing+Jenkins

Chris



On Monday, July 30, 2012 9:54:38 AM UTC+1, Andi Scharfstein wrote:
>
> 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 at 
> jenkins.model.Jenkins.doSignup(Jenkins.java:3329)". Is this a known bug or 
> is it just me? This is a completely fresh installation just out of the box 
> using the current release version 1.475, I don't know if I even had a 
> chance to break anything. Tomcat logs are clean without showing any 
> suspicious behaviour. Thanks in advance for any replies!
>


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

Sent from my Windows Phone
From: michael chiu
Sent: 7/30/2012 2:48 AM
To: jenkinsci-users@googlegroups.com
Subject: how to read a slave log into email-ext via groovy script
template
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 failed_case.text%>
if failed ,if the job is running on the slave [windows version ] . I always
got "Exception: javax.script.ScriptException:
java.io.FileNotFoundException: d:\jenkins\workspace\x\failed_case.html
(No such file or directory) "


Do you know how to access the log in the slave node ?

--=_Part_1427_17794027.1343641681717
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

build.getLog has a couple of versions for different purpo=
ses.Sent from my Windows PhoneFrom: micha=
el chiuSent: 7/30/2012 2:48 AMTo: jenkins=
ci-us...@googlegroups.comSubject: how to read a slave log =
into email-ext via groovy script template              &nb=
sp; I add the following script in the email-ext groovy for reading the fail=
ed_case.html into the mail body. It works if I run job on the master node[l=
inux]. <% def failed_case =3D new File(build.getWo=
rkspace().getRemote()+ '\\failed_case.html')    &=
nbsp;                 println faile=
d_case.text    %>if failed ,if the job is running o=
n the slave [windows version ] . I always got "Exception: javax.script.Script=
Exception: java.io.FileNotFoundException: d:\jenkins\workspace\x\failed=
_case.html (No such file or directory) " Do you know ho=
w to access the log in the slave node ?
--=_Part_1427_17794027.1343641681717--


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
Matthew


--
This e-mail and any attachments may contain confidential, copyright and or 
privileged material, and are for the use of the intended addressee only. If you 
are not the intended addressee or an authorised recipient of the addressee 
please notify us of receipt by returning the e-mail and do not use, copy, 
retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not 
necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments 
are free from viruses and we cannot accept liability for any damage which you 
may sustain as a result of software viruses which may be transmitted in or with 
the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and 
Wales with its registered office at Diamond House, Harwell Science and 
Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom






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 failed_case.text%>
if failed ,if the job is running on the slave [windows version ] . I always 
got "Exception: javax.script.ScriptException: 
java.io.FileNotFoundException: d:\jenkins\workspace\x\failed_case.html 
(No such file or directory) "

 
Do you know how to access the log in the slave node ?


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 
parent .hgsubstate file needs to be updated, committed and pushed into the 
upstream repo.  Is there plugin out there to handle this kind of behaviour?


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 at 
jenkins.model.Jenkins.doSignup(Jenkins.java:3329)". Is this a known bug or 
is it just me? This is a completely fresh installation just out of the box 
using the current release version 1.475, I don't know if I even had a 
chance to break anything. Tomcat logs are clean without showing any 
suspicious behaviour. Thanks in advance for any replies!