RE: Avoid script shell build failure

2013-07-24 Thread Stanley, Jason
Good explanation here.

http://thingsyoudidntknowaboutjenkins.tumblr.com/post/30255425955/why-does-jenkins-think-my-build-succeeded



-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Dirk Heinrichs
Sent: Wednesday, July 24, 2013 5:50 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: Avoid script shell build failure

Am Mittwoch, 24. Juli 2013, 11:25:10 schrieb Adrien Ruffié:

> Do you have an idea, how I can avoid this failure and continu other build
> step and enter into else statement ?

It's because the script is started with -xe. -e lets the script fail as soon 
as any command exits with non-zero return code. Try adding "set +e" at the top 
of your script.

HTH...

Dirk


http://www.recommind.com

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




RE: hover menus no longer working

2013-04-25 Thread Stanley, Jason
https://issues.jenkins-ci.org/browse/JENKINS-13995

Changed in 1.510

-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Haszlakiewicz, Eric
Sent: Thursday, April 25, 2013 1:23 PM
To: jenkinsci-users@googlegroups.com
Subject: hover menus no longer working


Hi,
I recently upgraded my copy of Jenkins from 1.502 to 1.511 and it seems that 
the hover menus are no longer working.
Was this an intentional change?

Instead, there seems to be a little arrow that sometimes shows up to the right 
of various links.  It's really hard to click on that, and it often takes 
several tries because it disappears when my mouse moves, even if my mouse 
pointer is still over the link.  :( Also, the menu that I get when I do manage 
to click on that is different.  It's missing things like the console output 
link, which I used all the time to see what was going on with a build. 

Eric

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




RE: How to pass multiple parameters to jenkins cli build

2013-04-22 Thread Stanley, Jason
--username   --password-file /path/to/file/Password.txt

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of mallikarjunece
Sent: Friday, April 19, 2013 6:31 AM
To: jenkinsci-users@googlegroups.com
Subject: RE: How to pass multiple parameters to jenkins cli build


Hi,

How to supply build started by user for jenkins cli build ???


Is there any provision for this ???


Please let me know..

Thanks in advance ...
Mallikarjuna
 On Thu, 18 Apr 2013 20:11:03 +0530 Jason [via Jenkins] Stanley <[hidden 
email]> wrote 


Yes.



java -jar Jenkins-cli.jar -s JENKINS_URL build JOB_NAME -p KEY1=VAL1 -p 
KEY2=VAL2 -p KEY3=VAL3



From: [hidden email] [mailto:[hidden email]] On Behalf Of mallikarjunece
Sent: Thursday, April 18, 2013 8:53 AM
To: [hidden email]
Subject: How to pass multiple parameters to jenkins cli build


Hi, I want to trigger jenkins build from remote server using jenkins-cli with 
multiple parameters , like java -jar jenkins-cli.jar -s JENKINS_URL build 
JOB_NAME -p KEY1=VAL1 KEY2=VAL2 ... Is it possible ? please let me know. Thanks 
in advance... Mallikarjuna



View this message in context: click here.
NAML



View this message in context: RE: How to pass multiple parameters to jenkins 
cli 
build
Sent from the Jenkins users mailing list 
archive at 
Nabble.com.
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




RE: How to pass multiple parameters to jenkins cli build

2013-04-18 Thread Stanley, Jason
Yes.

java -jar Jenkins-cli.jar -s JENKINS_URL build JOB_NAME -p KEY1=VAL1 -p 
KEY2=VAL2 -p KEY3=VAL3

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of mallikarjunece
Sent: Thursday, April 18, 2013 8:53 AM
To: jenkinsci-users@googlegroups.com
Subject: How to pass multiple parameters to jenkins cli build

Hi, I want to trigger jenkins build from remote server using jenkins-cli with 
multiple parameters , like java -jar jenkins-cli.jar -s JENKINS_URL build 
JOB_NAME -p KEY1=VAL1 KEY2=VAL2 ... Is it possible ? please let me know. Thanks 
in advance... Mallikarjuna

View this message in context: How to pass multiple parameters to jenkins cli 
build
Sent from the Jenkins users mailing list 
archive at 
Nabble.com.
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




RE: Cleanup after job abort?

2013-04-18 Thread Stanley, Jason
Correct, if you cancel a job in Jenkins, I will still run a post-build task.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Mandeville, Rob
Sent: Thursday, April 18, 2013 7:19 AM
To: 'jenkinsci-users@googlegroups.com'
Subject: RE: Cleanup after job abort?

In other words, aborting a job still allows post-build tasks to run?  So I'm 
wrong below?

If you're right, that solves my whole problem.  Thanks.

--Rob

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Stanley, Jason
Sent: Wednesday, April 17, 2013 4:02 PM
To: jenkinsci-users@googlegroups.com
Subject: RE: Cleanup after job abort?

Rob

In my environment, if a job gets aborted, I have a "Post Build Task" based on 
the log text of "Build was aborted" which will execute then execute the post 
build task script.

Jason

From: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Mandeville, Rob
Sent: Wednesday, April 17, 2013 3:48 PM
To: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>
Subject: Cleanup after job abort?

I've started running into problems where a job gets aborted (with a timeout, I 
think) while in the middle of a database transaction.  This left the 
transaction open, which eventually locked up the database server, causing a 
bunch of builds to fail.  I have a way to shut down stale connections, but need 
a way to run it when this happens.  IIRC, when a job gets aborted, its 
post-build tasks don't get a chance to run.

Is there a Jenkins idiom for "Run this to clean up after this executor"?

Thanks in advance,

--Rob

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.
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.


--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.


--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




RE: Cleanup after job abort?

2013-04-17 Thread Stanley, Jason
Rob

In my environment, if a job gets aborted, I have a "Post Build Task" based on 
the log text of "Build was aborted" which will execute then execute the post 
build task script.

Jason

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Mandeville, Rob
Sent: Wednesday, April 17, 2013 3:48 PM
To: jenkinsci-users@googlegroups.com
Subject: Cleanup after job abort?

I've started running into problems where a job gets aborted (with a timeout, I 
think) while in the middle of a database transaction.  This left the 
transaction open, which eventually locked up the database server, causing a 
bunch of builds to fail.  I have a way to shut down stale connections, but need 
a way to run it when this happens.  IIRC, when a job gets aborted, its 
post-build tasks don't get a chance to run.

Is there a Jenkins idiom for "Run this to clean up after this executor"?

Thanks in advance,

--Rob

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.
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




RE: Jenkins Build Failure

2013-04-09 Thread Stanley, Jason
Could the problem be you installed jre-1.6.0 and its looking for jdk-1.6.0?



From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Scott Hoenigman
Sent: Tuesday, April 09, 2013 2:53 PM
To: jenkinsci-users@googlegroups.com
Subject: Jenkins Build Failure


I am running Jenkins (v1.435) on CentOS and am running into the following issue 
while attempting to build one of my projects:

Executing Maven:  -B -f /var/lib/jenkins/jobs/NewProject/workspace/pom.xml 
install

[INFO] Scanning for projects...

[INFO] 

[INFO] Building Unnamed - com.NewProject:jar:0.0.1-SNAPSHOT

[INFO]task-segment: [install]

[INFO] 

[INFO] [cxf-codegen:wsdl2java {execution: generate-sources}]

log4j:WARN No appenders could be found for logger 
(org.apache.commons.beanutils.converters.BooleanConverter).

log4j:WARN Please initialize the log4j system properly.

[INFO] [resources:resources {execution: default-resources}]

[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, 
i.e. build is platform dependent!

[INFO] Copying 24 resources

[INFO] [compiler:compile {execution: default-compile}]

[INFO] Compiling 41 source files to 
/var/lib/jenkins/jobs/NewProject/workspace/target/classes

[JENKINS] Archiving /var/lib/jenkins/jobs/NewProject/workspace/pom.xml to 
/var/lib/jenkins/jobs/NewProject/modules/com/NewProject/builds/2013-04-09_13-18-25/archive/com/NewProject/0.0.1-SNAPSHOT/NewProject-0.0.1-SNAPSHOT.pom

[INFO] 

[ERROR] BUILD FAILURE

[INFO] 

[INFO] Compilation failure

Unable to locate the Javac Compiler in:

  /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/tools.jar

Please ensure you are using JDK 1.4 or above and

not a JRE (the com.sun.tools.javac.Main class is required).

In most cases you can change the location of your Java

installation by setting the JAVA_HOME environment variable.



[INFO] 

[INFO] For more information, run Maven with the -e switch

[INFO] 

[INFO] Total time: 19 seconds

[INFO] Finished at: Tue Apr 09 13:18:52 EDT 2013

[INFO] Final Memory: 29M/69M

[INFO] 

Waiting for Jenkins to finish collecting data

channel stopped

Finished: FAILURE


I am not sure why this build is failing. I have installed OpenJDK as specified 
here
 which created the the following symbolic links:

[root@dtis-jenkins ~]# ls -lah /usr/bin/java
lrwxrwxrwx. 1 root root 22 Apr  9 13:17 /usr/bin/java -> /etc/alternatives/java
[root@dtis-jenkins ~]# ls -lah /etc/alternatives/java
lrwxrwxrwx. 1 root root 46 Apr  9 13:17 /etc/alternatives/java -> 
/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java

Does anyone have any idea what is going on here? Thanks in advance!
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




RE: Problem Publishing HTML Report

2013-02-21 Thread Stanley, Jason

Is this the first time you are configuring this action?

Are you using the "Publish HTML reports" the Post-build Actions section of the 
job?



From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Trevor Hodde
Sent: Thursday, February 21, 2013 10:31 AM
To: jenkinsci-users@googlegroups.com
Cc: trevor.ho...@emc.com
Subject: Problem Publishing HTML Report

I have a script that is kicked off through Jenkins which generates an html file 
and drops it in a directory located in the Jenkins project workspace. I have 
specified the location in the job configuration for publishing html reports, 
however the link to the published report only appears when viewing the build 
log output and not on the project page where other reports are published.

Does this sound like anything obvious may have been overlooked, or has anyone 
else run into a similar problem?

Please let me know if you need any more information.

Thanks,
Trevor
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




RE: Test results disappeared since upgrade to 1.500

2013-02-07 Thread Stanley, Jason
Sounds like this perhaps?

https://issues.jenkins-ci.org/browse/JENKINS-15156

If you stop/start Jenkins.  Do the results appear?


Thanks
Jason

Jason Stanley
Release Engineer/AccuRev Administrator
Tekelec

Office - 1 508 804 7038
200 Nickerson Road
Marlborough, MA
01752

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Guillaume Bilodeau
Sent: Thursday, February 07, 2013 9:34 AM
To: jenkinsci-users@googlegroups.com
Subject: Test results disappeared since upgrade to 1.500

Hi all,

We've been running Jenkins happily since a year now.  One of our jobs runs a 
Maven build that in turn executes a series of Selenium-based acceptance tests 
through its FailSafe plugin.  Until version 1.500, test reports have been 
displayed on the individual build page, with the ability to drill down to 
individual test results.  Somehow since upgrading to 1.500 these test reports 
have disappeared from the build page.  Also, hovering over the job weather icon 
on the main dashboard used to show test stability; it doesn't anymore.

I have verified that the tests are still executed and that the job workspace 
still contains the FailSafe reports.  Something else is amiss.

Any ideas?

Thanks!
GB

--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




RE: How to pass parameters between jobs - quick question

2013-01-11 Thread Stanley, Jason
I ran into this very same problem.

It appears (at least with my experience) the only variables passed from Job A 
-> Job B are the variables predefined by Jenkins.

To work around the issue,  in my build shell for Job A, I wrote the 
variable=value into a file and used the “Parameters from properties file”  
Parameter in the “Trigger parameterized build on other projects” when running 
Job B.

Jason

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of zw
Sent: Friday, January 11, 2013 2:50 PM
To: jenkinsci-users@googlegroups.com
Subject: How to pass parameters between jobs - quick question

Hi All

We have job A to kick off Job B
Job A uses in build section execute shell to get a svn revision number and sets 
SVN_REVISION.
(We understand that there's the option to use "This build is parameterized" 
String Parameter and set SVN_REVISION value as HEAD, but we have our reasons to 
not use that)
echo ${SVN_REVISION_NUM}
export SVN_REVISION=${SVN_REVISION_NUM}
echo ${SVN_REVISION}


output

+ SVN_REVISION_NUM=47337

:

+ echo 47337

47337

+ export SVN_REVISION=47337

+ SVN_REVISION=47337



In Post-build Actions section

we have Trigger parameterized build on other projects, and predefined parameter 
set to SVN_REVISION=${SVN_REVISION_NUM}



But in Job B console, it dosent see the revision number and Job B's SCM could 
retrieve the revision number

Location 'https://jobBhost.com/svn/src@${SVN_REVISION_NUM}' does not exist



What did we do wrong ?



Thanks




RE: calling perl scripts from jenkins

2012-10-25 Thread Stanley, Jason
What user account do you have Jenkins running as?

If it’s running as “Local System” change it to an actual user account.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Levin, Ilya
Sent: Thursday, October 25, 2012 8:20 AM
To: jenkinsci-users@googlegroups.com
Subject: RE: calling perl scripts from jenkins

That is exactly what I did.
The problem is that Jenkins doesn’t recognize the perl command.
I have Perl on my machine, i can run the command via command line.
Somehow I need to show Jenkins where perl is.
(tried with Env Variables – doesn’t work).

Thanks again.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of mitesh makhija
Sent: יום ה 25 אוקטובר 2012 14:12
To: jenkinsci-users@googlegroups.com
Subject: Re: calling perl scripts from jenkins

Hi,

Create a job.
Through build, add build step, you can use either Execute windows batch command 
or Execute Shell.
If I select Execute Windows Batch Command, In command I can call perl script.

perl c:/test.pl

Thanks,
Mitesh
On Thu, Oct 25, 2012 at 5:35 PM, Levin, Ilya 
mailto:ilya.le...@hp.com>> wrote:
Hi,

Seems to be quite a simple task but still unable to achieve this.
How can I call a perl script from inside Jenkins?

Thanks



RE: The inner workflows of a build steps, post-build actions and nodes

2012-09-18 Thread Stanley, Jason
I encountered the same problem when I was deploying my setup.

I got around this by using the “Post build task” feature and triggered a build 
B script to run based on parsing the build log for a certain string.

This way, build A will complete including the post build actions included in 
build B

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of krikar
Sent: Tuesday, September 18, 2012 11:59 AM
To: jenkinsci-users@googlegroups.com
Subject: The inner workflows of a build steps, post-build actions and nodes

Hi,

I have a problem, were my node/slave is 'hijacked' by another job prematurely. 
But this may very well be by design. This is what happens:

 *   I have a job A that runs all the build steps successfully.
 *   In the post-build actions, I have a "Trigger parameterized build" B.
Now, my problem is that Jenkins can launch a next build on Job A, before build 
B is done on the previous job A.

 *   I cannot run B as a build step in A, only as a post-build action in A.
 *   But this will cause me problems if a next instance of A is launched before 
B is done in the previous one, on the same node.
 *   And this happens...
Is this a bug, or is this a desired behavior of Jenkins.
I'm running version 1.481

/Kristian


RE: workspace deletion

2012-08-03 Thread Stanley, Jason
Install the "Workspace Cleanup Plugin"

-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of phil swenson
Sent: Friday, August 03, 2012 12:23 PM
To: jenkinsci-users
Subject: workspace deletion

Is there an easy way to delete all the workspaces on all nodes?

I looked at the CLI - doesn't appear to help.

thanks



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


Keep this slave on-line as much as possible

2012-07-26 Thread Stanley, Jason
Hello

I have the following option set for the availability of my slaves.

Keep this slave on-line as much as possible
This is the default and normal setting. In this mode, Jenkins uses tries to 
keep the slave on-line. If Jenkins can start the slave without user assistance, 
it will periodically attempt to restart the slave if it is unavailable. Jenkins 
will not take the slave off-line.

Is there a way to configure the time in which Jenkins will attempt to restart 
the slave if it is unavailable?

Thanks
Jason


RE: Fingerprint database

2012-07-20 Thread Stanley, Jason
Click on your Job -> Click on Configure -> Scroll down to "Post-build Actions" 
-> Select "Record fingerprints of files to track usage"



From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Varghese Renny
Sent: Friday, July 20, 2012 7:43 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: Fingerprint database

Can you please tell how you implemented fingerprint and artifacts, i been 
searching this from morning?

Not able to make it workable..
Please explain the proc in detail?


Thanks in Advance
varghese


RE: Fingerprint database

2012-07-20 Thread Stanley, Jason
Richard

I just restarted, and that cleared the reference to the removed build/job.

Thanks
Jason



From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Richard Lavoie
Sent: Friday, July 20, 2012 7:27 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: Fingerprint database

Have you tried restarting jenkins ?

It might still be an in memory issue and the reload configuration from disk 
doesn't clear some "cache" for that plugin.

regards,
Richard


On 2012-07-20, at 07:16, "Stanley, Jason" 
mailto:jason.stan...@tekelec.com>> wrote:
Hello

I have enabled the “Record fingerprints of files to track usage” feature.

After my build completed, I can see a set of fingerprints for the archived 
files.

I saved an archive onto my desktop and then in Jenkins ran the “Check File 
Fingerprint<http://10.15.2.104:8080/fingerprintCheck>” feature, and it reported 
the build/job which created the archive.

Next, I deleted the job in Jenkins.

I ran the “Check File Fingerprint<http://10.15.2.104:8080/fingerprintCheck>” 
feature again and selected this archive, and again, it told me the build/job 
which created the archive.

Since the job was deleted, I would have thought this reference would have been 
removed.

When I looked under the fingerprints directory in the Jenkins 
(/var/lib/Jenkins/fingerprints), I did not see any reference to this archive or 
job.

Can someone tell me where the “Check File 
Fingerprint<http://10.15.2.104:8080/fingerprintCheck>” feature is pulling the 
information from?

NOTE:
I thought at first this info was stored in memory, so I ran the operation 
“Reload Configuration from Disk<http://10.15.2.104:8080/reload>” .  This still 
reported build/job of the deleted job.

Thanks
Jason


Fingerprint database

2012-07-20 Thread Stanley, Jason
Hello

I have enabled the "Record fingerprints of files to track usage" feature.

After my build completed, I can see a set of fingerprints for the archived 
files.

I saved an archive onto my desktop and then in Jenkins ran the "Check File 
Fingerprint" feature, and it reported 
the build/job which created the archive.

Next, I deleted the job in Jenkins.

I ran the "Check File Fingerprint" 
feature again and selected this archive, and again, it told me the build/job 
which created the archive.

Since the job was deleted, I would have thought this reference would have been 
removed.

When I looked under the fingerprints directory in the Jenkins 
(/var/lib/Jenkins/fingerprints), I did not see any reference to this archive or 
job.

Can someone tell me where the "Check File 
Fingerprint" feature is pulling the 
information from?

NOTE:
I thought at first this info was stored in memory, so I ran the operation 
"Reload Configuration from Disk" .  This still 
reported build/job of the deleted job.

Thanks
Jason


RE: jenkins java.outofmemory:permGen space error

2012-06-26 Thread Stanley, Jason
In your Jenkins job...enter the following in the script section and then run 
the job.

/path/to/script/killpostgres.sh


Change /path/to/script to reflect your project directory.


From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Varghese Renny
Sent: Tuesday, June 26, 2012 9:05 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: jenkins java.outofmemory:permGen space error


Actually i am calling like bash -ex killpostgres.sh
killpostgres.sh is in my project directory.
sudo is inside the shell script
sudo kill $pid



RE: jenkins java.outofmemory:permGen space error

2012-06-26 Thread Stanley, Jason
The problem is with sudo being called in Jenkins.

You don’t need a slave to workaround this problem…..just call the script 
located on the master from your Jenkins job.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Varghese Renny
Sent: Tuesday, June 26, 2012 9:01 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: jenkins java.outofmemory:permGen space error



Ok..but i don't have any slave. i am doing it in master only.
i will start it as a new thread..


RE: Re: Re: jenkins java.outofmemory:permGen space error

2012-06-26 Thread Stanley, Jason
Ah...I encountered this same problem.

In my environment, I have the master/slave configuration.

For a workaround, I had Jenkins call this script on the slave machine.

For example, let's call your script pg_cluster.sh

I would place this script on the slave machine and in my Jenkins job, I issued 
the following command:

ssh  pg_cluster.sh



From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Varghese Renny
Sent: Tuesday, June 26, 2012 8:16 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: Re: Re: jenkins java.outofmemory:permGen space error

#!/bin/sh
pid=$(pidof postgres)
echo $pid
kill $pid
pg_ctlcluster 8.4 main start

 Actually this shell script is working if i execute like bash killpostgres.sh
But inside the jenkins it's showing error like



sudo: no tty present and no askpass program specified

sudo: no tty present and no askpass program specified

Sorry, try again.

sudo: no tty present and no askpass program specified

sudo: no tty present and no askpass program specified

Sorry, try again.

sudo: no tty present and no askpass program specified

sudo: no tty present and no askpass program specified

Sorry, try again.

sudo: 3 incorrect password attempts


Thanks



RE: Re: Re: jenkins java.outofmemory:permGen space error

2012-06-26 Thread Stanley, Jason
I am assuming the kill command is failing.

Outside of your script, if you have sudo setup correctly, the user who is 
running the script should be able to run the command:

sudo kill 

If that fails, you need to fix the sudoers configuration.

In your script, just add 'sudo' to the kill command.

#!/bin/sh
pid=$(pidof postgres)
echo $pid
sudo kill $pid
pg_ctlcluster 8.4 main start

Same goes for the pg_ctlcluster command if sudo needs to get called for that.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Varghese Renny
Sent: Tuesday, June 26, 2012 8:04 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: Re: Re: jenkins java.outofmemory:permGen space error


#!/bin/sh
pid=$(pidof postgres)
echo $pid
kill $pid
pg_ctlcluster 8.4 main start


I am doing only this much of thing ...in command prompt i used sudo kill 
manullay...
but in shell while i executing it's saying operation not permitted
kill : 4 : operation not permitted..
i assume this is some permission problem..How can i resolve that?


RE: Re: Re: jenkins java.outofmemory:permGen space error

2012-06-26 Thread Stanley, Jason
Inside your shell script, just enter the following:

sudo 

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Varghese Renny
Sent: Tuesday, June 26, 2012 7:45 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: Re: Re: jenkins java.outofmemory:permGen space error



Thank you so much vjuranek..At last my build is successful..As you are a redhat 
engineer one doubt.. Usually we can run kill as sudo kill -9 pid
But inside the shell script while running it's saying operation not 
permited..how can simulate sudo inside a shell script?
i started shell for continous integration yesterday...



Thanks,
Regards


RE: Simple Execute Shell fails to execute, Jenkins reports success

2012-06-18 Thread Stanley, Jason
Silly question.

Are you looking on the correct node that ran the job for the tmp.txt file?



From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Chris Mitchell
Sent: Monday, June 18, 2012 3:30 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: Simple Execute Shell fails to execute, Jenkins reports success

Hi Jason,
I've tried that with no success.  Permissions are not an issue.  It appears it 
is not executing any of the shell command and claiming it does.  If it was 
executing the shell script, I would expect the console log output to look 
something like this:

Started by timer
Building remotely on node in workspace /u/auser/jenkins_bc/workspace/Test Job
[Test Job] $ /bin/csh -xe /var/tmp/hudson59733.sh
+ echo "hello" > /var/tmp/tmp.txt
Finished: SUCCESS

On Monday, June 18, 2012 1:23:40 PM UTC-6, Stanley, Jason wrote:
Try running the echo command but define the actual path to the tmp.txt file.

Example:
echo "Hello" > /var/tmp/tmp.txt


From: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> 
[mailto:jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>]
 On Behalf Of Chris Mitchell
Sent: Monday, June 18, 2012 3:18 PM
To: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>
Subject: Simple Execute Shell fails to execute, Jenkins reports success

Hi,
I am having getting Jenkins to communicate with the nodes.  I am using Jenkins 
1.466 on a linux machine. It is capable of logging in (notes from the web gui, 
as well as monitoring the connection via another SSH session), but when I try 
to execute the following shell script:
echo "Hello" > ~/tmp.txt

Jenkins reports it is as a success:
Started by timer
Building remotely on node in workspace /u/auser/jenkins_bc/workspace/Test Job
[Test Job] $ /bin/csh -xe /var/tmp/hudson59733.sh
Finished: SUCCESS

But when I check, ~/tmp.txt does not exist, nor do any other simple Linux 
commands (echo "Hello"; ls -l, etc) print any output to the console.  They 
simply don't appear to be being executed.

Is there any place I can look to find more information about why this test is 
not being executed or what exactly is going on?

Thanks for the help,
Chris


RE: Simple Execute Shell fails to execute, Jenkins reports success

2012-06-18 Thread Stanley, Jason
Try running the echo command but define the actual path to the tmp.txt file.

Example:
echo "Hello" > /var/tmp/tmp.txt


From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Chris Mitchell
Sent: Monday, June 18, 2012 3:18 PM
To: jenkinsci-users@googlegroups.com
Subject: Simple Execute Shell fails to execute, Jenkins reports success

Hi,
I am having getting Jenkins to communicate with the nodes.  I am using Jenkins 
1.466 on a linux machine. It is capable of logging in (notes from the web gui, 
as well as monitoring the connection via another SSH session), but when I try 
to execute the following shell script:
echo "Hello" > ~/tmp.txt

Jenkins reports it is as a success:
Started by timer
Building remotely on node in workspace /u/auser/jenkins_bc/workspace/Test Job
[Test Job] $ /bin/csh -xe /var/tmp/hudson59733.sh
Finished: SUCCESS

But when I check, ~/tmp.txt does not exist, nor do any other simple Linux 
commands (echo "Hello"; ls -l, etc) print any output to the console.  They 
simply don't appear to be being executed.

Is there any place I can look to find more information about why this test is 
not being executed or what exactly is going on?

Thanks for the help,
Chris


RE: user data in hudson

2012-06-15 Thread Stanley, Jason
Did you check out the config.xml file under the job directory?

/var/lib/Jenkins/jobs/



From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of tcendrowski
Sent: Friday, June 15, 2012 9:44 AM
To: jenkinsci-users@googlegroups.com
Subject: user data in hudson

Hi

I'd like to ask where users data are stored in hudson? I need information where 
can I find files which contain information about users and their powers, i.e. 
in matrix based security I need file which include information which users can 
read, delete, configure etc. I've found catalog 'users' but it doesn't provide 
such a informations.

Thanks in advance.


RE: How to update node description via a script?

2012-06-14 Thread Stanley, Jason
You are correct.

I am only changing the description of the node, not the name.

-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Mandeville, Rob
Sent: Thursday, June 14, 2012 10:03 AM
To: 'jenkinsci-users@googlegroups.com'
Subject: RE: How to update node description via a script?

You might not want to change the name of the node, but rather a label, like 
db_ver_1 or db_ver_2.  Changing node names may be confusing, and using labels 
allows you to specify jobs that only run on one or the other database.

--Rob

-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Stanley, Jason
Sent: Thursday, June 14, 2012 9:59 AM
To: jenkinsci-users@googlegroups.com
Subject: RE: How to update node description via a script?

Thanks

I want to update the description of the node to reflect the database version 
that is installed.

Example:
Description: DB Version1

Run my job to upgrade the DB to version2.  After job runs, DB is now version2 
but description of node still says 1.  I need to manually change this to 2.





-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of grayaii
Sent: Thursday, June 14, 2012 9:53 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: How to update node description via a script?

There is a way to *get *the node description:
http://javadoc.jenkins-ci.org/hudson/model/Slave.html#getNodeDescription%28%29
http://javadoc.jenkins-ci.org/hudson/model/Slave.html#getNodeDescription%28%29 

Here is a wiki page that I created that has a code snippet on how to get node 
information.
(just to get your feet wet with groovy)
https://wiki.jenkins-ci.org/display/JENKINS/Display+Information+About+Nodes

But I don't know a way to *set *the description programatically after a node 
has been created.

If you find out, please post. 
Out of curiosity, why do you want to update the description of the node? You 
can figure out where a particular job ran, and not only that, you can query the 
node to figure out what jobs it ran.

--
View this message in context: 
http://jenkins.361315.n4.nabble.com/How-to-update-node-description-via-a-script-tp4631236p4631537.html
Sent from the Jenkins users mailing list archive at Nabble.com.

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: How to update node description via a script?

2012-06-14 Thread Stanley, Jason
Thanks

I want to update the description of the node to reflect the database version 
that is installed.

Example:
Description: DB Version1

Run my job to upgrade the DB to version2.  After job runs, DB is now version2 
but description of node still says 1.  I need to manually change this to 2.





-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of grayaii
Sent: Thursday, June 14, 2012 9:53 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: How to update node description via a script?

There is a way to *get *the node description:
http://javadoc.jenkins-ci.org/hudson/model/Slave.html#getNodeDescription%28%29
http://javadoc.jenkins-ci.org/hudson/model/Slave.html#getNodeDescription%28%29 

Here is a wiki page that I created that has a code snippet on how to get
node information.
(just to get your feet wet with groovy)
https://wiki.jenkins-ci.org/display/JENKINS/Display+Information+About+Nodes

But I don't know a way to *set *the description programatically after a node
has been created.

If you find out, please post. 
Out of curiosity, why do you want to update the description of the node? You
can figure out where a particular job ran, and not only that, you can query
the node to figure out what jobs it ran.

--
View this message in context: 
http://jenkins.361315.n4.nabble.com/How-to-update-node-description-via-a-script-tp4631236p4631537.html
Sent from the Jenkins users mailing list archive at Nabble.com.



How to update node description via a script?

2012-06-14 Thread Stanley, Jason
Hello

I have automated a build process to update a database on my build nodes.

The one last step I am trying to do is update the node description in Jenkins.

There is no CLI operation to change the description of the Node.

Does anyone have a simple script or idea of how I can update the description in 
Jenkins outside of editing the config.xml file and running the "Reload 
Configuration from Disk" operation.

The reason for not using the "Reload Configuration from Disk" operation is I 
found if any existing jobs are running, they are stopped.

Thanks
Jason