Re: Customizing behavior of "Wipe out current workspace"

2014-01-14 Thread Baptiste Mathus
Hi,
I doubt it's currently possible, though I didn't check the plugin option.
I guess you'all have to propose a look-request for that evolution.
Cheers
Le 14 janv. 2014 23:31, "Craig Rodrigues"  a écrit :

> Hi,
>
> Is it possible to customize the behavior of "wipe out current worksptace"?
>
>
> I have a build under FreeBSD which sets the
> "noschg" flag on certain binaries,
> so even as root you cannot do "rm -fr" on the workspace
> to delete things unless you do "chflags -R schg *" on the workspace.
>
>
> --
> Craig
>
> --
> 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: Full build history via JSON API

2014-01-14 Thread Waky
Hi,

Thanks, I was a bit guessing I need to use the plugin. I need to look if I 
have time to dig out the place to change to provide JSON API to main 
Jenkins, as definitely there is existing functionality on UI level to 
provide the information.

-Kalle

tiistai, 14. tammikuuta 2014 17.16.13 UTC+2 Frédéric Camblor kirjoitti:
>
> Hi Kalle,
>
> I'm the creator of Global build stats plugin, and I can tell you it should 
> fit your needs either with the JSON API or the Global build 
> search
>  screen
>
> Note that even if you "discard old builds", build result data will be kept 
> inside the global build stats data.
> The only data I can't get is the data tied to builds discarded *before* 
> initial initialization of global build stats.
>
> Hope it helps,
>
> Cheers,
>
> Frédéric Camblor   
> 
> Bordeaux JUG  Leader
> Restx  commiter
> Jenkins  community member & plugin commiter
>
>
>
> On Tue, Jan 14, 2014 at 1:56 PM, Waky  >wrote:
>
>> Hi,
>>
>> You can access the full build history via expand link on the bottom left 
>> of the job view. However I have not been able to find a URL that provides 
>> the full job history data, using: > URL>/api/json?tree=builds[number,timestamp,actions[failCount,skipCount,totalCount]]
>>  
>> I will get the latest build information, but not the full list of builds. 
>> Any ideas or is 
>> https://wiki.jenkins-ci.org/display/JENKINS/Global+Build+Stats+Plugin plugin 
>> the answer?
>>
>> Thanks!
>> Kalle
>>
>>  -- 
>> 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-use...@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: EXTERNAL: Clearcase integration with Jenkins to schedule jobs

2014-01-14 Thread Palanilkunnathil Melemuriyil, Vinod P
Thanks a lot Jeff for your valuable guidance.

Thank You

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Ng, Jeff
Sent: Wednesday, January 15, 2014 2:53 AM
To: jenkinsci-users@googlegroups.com
Subject: RE: EXTERNAL: Clearcase integration with Jenkins to schedule jobs

I have one of my UCM projects setup to do exactly what you are requesting.  
Whenever a dev completes a delivery to the project integration stream, a 
"postop deliver_complete" trigger kicks off a build job using a URL (trigger 
builds remotely).  Here's what you'll need:

1.  Configure your Jenkins job to "Trigger builds remotely" (under Build 
Triggers).
   - I named my token "BUILD_AFTER_DELIVER_COMPLETE".

2.  Make a ClearCase attribute used to enable or disable the automatic build 
triggering on a build stream.
   - Create the attribute type in the PVOB (I named mine 
"TriggerBuildAfterDelivery).
   - Scope:  ordinary
   - Enumeration values:  "ON", "OFF"
   - Default value:  "ON"
   - Apply the attribute to any build stream that you wish to trigger a build.

3.  Make a UCM trigger type that fires after a delivery has been completed.
   - Create the trigger type in the PVOB (I named mine 
"JENKINS_BUILD_AFTER_DELIVERY").
   - all UCM object trigger
   - post-op deliver_complete
   - Executes corresponding trigger script

4.  Write a trigger script, executed by the UCM trigger type, which constructs 
and executes the Jenkins URL.
   - I wrote mine in Perl and named it "jenkinsBuildAfterDelivery.tgr".
   - My Jenkins build job name matches the name of the UCM stream being built 
(you'll see why when you construct the URL).
   - If you use Perl, use the LWP::Simple module for the get() subroutine.
   - First get the value of the TriggerBuildAfterDelivery attribute (ct desc -s 
-attr $attr stream:$stream).
   - If the value == "ON", construct your URL and `get` it.
   - Hint:  $jobName = $buildStream = $ENV{CLEARCASE_STREAM};

I also serialized UCM deliveries on these specific build streams to prevent 
multiple devs from delivering concurrently, thus interfering with the build 
triggering.  I'll let you google for how to serialize UCM deliveries.  It's 
easy and essentially requires the same things:  An attribute, a trigger type 
and a trigger script.

I've had this setup on my project for over a year now and it works great.

-Jeff Ng

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Vinod P
Sent: Monday, January 13, 2014 8:50 PM
To: jenkinsci-users@googlegroups.com
Subject: EXTERNAL: Clearcase integration with Jenkins to schedule jobs

Hello all,

I am a newbie to Jenkins and Clearcase and have been going through the various 
options of Jenkins to facilitate CI.

However, I am not sure on how to configure Jenkins with UCM Clearcase in such a 
way that when a developer delivers his code to the Integration Stream in 
Clearcase (after having tested his code in the Development Stream where he 
makes changes to the code), Jenkins should start the build of the application.

In short, the requirement is that whenever any changes are delivered to the 
Integration stream in clearcase (UCM) , a build job should be automatically 
triggered in Jenkins.

Appreciate any help/guidance on this.

Regards
T.S
--
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.

-- 
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: Looking for solution on Jenkins Email Plugin feature

2014-01-14 Thread Slide
You can use the substText which is passed to Matcher.appendReplacement [1],
you can see how to use that in the Javadoc. You can use $0 through $9 to be
the matched groups.

slide

1 -
http://docs.oracle.com/javase/6/docs/api/java/util/regex/Matcher.html#appendReplacement(java.lang.StringBuffer,
java.lang.String)


On Tue, Jan 14, 2014 at 6:47 PM, devanand  wrote:

> Hi,
>
> I have this value configured to send out email, Under editable email
> configuration section of the JOB.
>
>
>
> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?\\))",showTruncatedLines=false}
>
> As i result of this LINE i am getting this value as part of my Email.
>
> *[java] Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0 Manual
> Verification:0) *
>
>
> *But i don't want [java] to be printed as part of my email, How can i
> avoid this ?? I am looking to resolve this issue. *
>
> *Thanks.*
>
> --
> 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.
>



-- 
Website: http://earl-of-code.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.


Looking for solution on Jenkins Email Plugin feature

2014-01-14 Thread devanand
Hi,

I have this value configured to send out email, Under editable email 
configuration section of the JOB. 


${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?\\))",showTruncatedLines=false}

As i result of this LINE i am getting this value as part of my Email. 

*[java] Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0 Manual 
Verification:0) *


*But i don't want [java] to be printed as part of my email, How can i avoid 
this ?? I am looking to resolve this issue. *

*Thanks.*

-- 
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: The apache http client post request fails on jenkins swarm slave

2014-01-14 Thread Mark Waite
I've sent it to you directly so that I don't waste list bandwidth sending
it to everyone.

Let me know if it helps (or not).

Thanks,
Mark Waite


On Tue, Jan 14, 2014 at 4:50 PM, Shoujin Wang  wrote:

> Thanks Mark!
> Please send me your jar and let me give it a try. Thanks so much for the
> help!
>
>
> Regards,
> Autumn Wang
>
>
> On Tue, Jan 14, 2014 at 3:06 PM, Mark Waite wrote:
>
>> I'm not sure if your swam slave related failure is the same as mine, but
>> mine was similar to the problem described in:
>>
>> https://issues.jenkins-ci.org/browse/JENKINS-21155
>>
>> There was an incompatibility between one or more components on the server
>> and the needed components in the slave jar file.
>>
>> I submitted a pull request with my proposed change.
>>
>> https://github.com/jenkinsci/swarm-plugin/pull/8
>>
>> I'm not sure it is the correct change.  There are several other pull
>> requests submitted which seem to be attempting to fix the same root
>> problem.  If you're feeling adventurous, you could build from the source
>> code of the swarm plugin and add that pull request to see if it fixes your
>> problem.  Alternately, if you're willing to trust a jar file directly from
>> me, I can send you an updated swarm jar file to try.
>>
>> Mark Waite
>>
>>
>> On Sat, Jan 11, 2014 at 7:41 PM, Shoujin Wang wrote:
>>
>>> Hi,
>>>
>>> I wrote a jenkins plugin to upload RPM artifact to nexus. When the job
>>> is run on swarm slave, it always fails on http post request.
>>> I also attached the source code for the whole project for reference. The
>>> failure happens on NexusResfulClient.java as the following:
>>> Any comments are welcomed!
>>>
>>>  HttpPost httpPost = new HttpPost(this.nexusUrl+
>>> "/service/local/artifact/maven/content");
>>>
>>>  String pkgName = file.getName();
>>>
>>>  RpmPackageInfo pkgInfo = new RpmPackageInfo(pkgName);
>>>
>>>   MultipartEntityBuilder entityBuilder =
>>> MultipartEntityBuilder.create();
>>>
>>>  entityBuilder.addTextBody("r", this.repoName);
>>>
>>>  entityBuilder.addTextBody("g", this.repoGroup);
>>>
>>>  entityBuilder.addTextBody("e", "rpm");
>>>
>>>  entityBuilder.addTextBody("hasPom", "false");
>>>
>>>  entityBuilder.addTextBody("a", pkgInfo.getName());
>>>
>>>  entityBuilder.addTextBody("p", "rpm");
>>>
>>>  entityBuilder.addTextBody("v", pkgInfo.getVersion()+"-"
>>> +pkgInfo.getTimeStamp()+"."+pkgInfo.getArch());
>>>
>>>   FileBody uploadFilePart = new FileBody(file );
>>>
>>>  entityBuilder.addPart("upload_file", uploadFilePart);
>>>
>>>   httpPost.setEntity(entityBuilder.build());
>>>
>>>
>>>  try {
>>>
>>>  System.out.println("Start uploading file : " + file.getName());
>>>
>>> * HttpResponse response = httpclient.execute(httpPost);  -- always fails
>>> here.*
>>>
>>>  try {
>>>
>>> HttpEntity entity = response.getEntity();
>>> The error message on jenkins.
>>>
>>> IOException for fp.act(new UploadRpm())
>>> 
>>> = traceback
>>> hudson.FilePath.act(FilePath.java:912)
>>> hudson.FilePath.act(FilePath.java:889)
>>> com.sfdc.jenkinsnexusartifact.NexusRpmBuilder.perform(NexusRpmBuilder.java:155)
>>> hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
>>> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:781)
>>> hudson.model.Build$BuildExecution.build(Build.java:199)
>>> hudson.model.Build$BuildExecution.doRun(Build.java:160)
>>> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562)
>>> hudson.model.Run.execute(Run.java:1665)
>>> hudson.matrix.MatrixRun.run(MatrixRun.java:146)
>>> hudson.model.ResourceController.execute(ResourceController.java:88)
>>> hudson.model.Executor.run(Executor.java:246)
>>> hudson.util.IOException2: remote file operation failed: 
>>> /home/jenkins-slave/workspace/00_packages/idlc/latest/idlc-puppet-modules-1.0.0-14083208_devtest.noarch.rpm
>>>  at hudson.remoting.Channel@5590eab2:jenkin-slave.sf.com
>>> IOException for fp.act(new UploadRpm())
>>>
>>>
>>> Best regards,
>>>
>>> Shoujin Wang
>>>
>>>  --
>>> 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.
>>>
>>
>>
>>
>> --
>> Thanks!
>> Mark Waite
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Jenkins Users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/jenkinsci-users/UnQlZV6-dus/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, 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

Re: The apache http client post request fails on jenkins swarm slave

2014-01-14 Thread Shoujin Wang
Thanks Mark!
Please send me your jar and let me give it a try. Thanks so much for the
help!


Regards,
Autumn Wang


On Tue, Jan 14, 2014 at 3:06 PM, Mark Waite wrote:

> I'm not sure if your swam slave related failure is the same as mine, but
> mine was similar to the problem described in:
>
> https://issues.jenkins-ci.org/browse/JENKINS-21155
>
> There was an incompatibility between one or more components on the server
> and the needed components in the slave jar file.
>
> I submitted a pull request with my proposed change.
>
> https://github.com/jenkinsci/swarm-plugin/pull/8
>
> I'm not sure it is the correct change.  There are several other pull
> requests submitted which seem to be attempting to fix the same root
> problem.  If you're feeling adventurous, you could build from the source
> code of the swarm plugin and add that pull request to see if it fixes your
> problem.  Alternately, if you're willing to trust a jar file directly from
> me, I can send you an updated swarm jar file to try.
>
> Mark Waite
>
>
> On Sat, Jan 11, 2014 at 7:41 PM, Shoujin Wang wrote:
>
>> Hi,
>>
>> I wrote a jenkins plugin to upload RPM artifact to nexus. When the job is
>> run on swarm slave, it always fails on http post request.
>> I also attached the source code for the whole project for reference. The
>> failure happens on NexusResfulClient.java as the following:
>> Any comments are welcomed!
>>
>>  HttpPost httpPost = new HttpPost(this.nexusUrl+
>> "/service/local/artifact/maven/content");
>>
>>  String pkgName = file.getName();
>>
>>  RpmPackageInfo pkgInfo = new RpmPackageInfo(pkgName);
>>
>>   MultipartEntityBuilder entityBuilder = MultipartEntityBuilder.create();
>>
>>  entityBuilder.addTextBody("r", this.repoName);
>>
>>  entityBuilder.addTextBody("g", this.repoGroup);
>>
>>  entityBuilder.addTextBody("e", "rpm");
>>
>>  entityBuilder.addTextBody("hasPom", "false");
>>
>>  entityBuilder.addTextBody("a", pkgInfo.getName());
>>
>>  entityBuilder.addTextBody("p", "rpm");
>>
>>  entityBuilder.addTextBody("v", pkgInfo.getVersion()+"-"
>> +pkgInfo.getTimeStamp()+"."+pkgInfo.getArch());
>>
>>   FileBody uploadFilePart = new FileBody(file );
>>
>>  entityBuilder.addPart("upload_file", uploadFilePart);
>>
>>   httpPost.setEntity(entityBuilder.build());
>>
>>
>>  try {
>>
>>  System.out.println("Start uploading file : " + file.getName());
>>
>> * HttpResponse response = httpclient.execute(httpPost);  -- always fails
>> here.*
>>
>>  try {
>>
>> HttpEntity entity = response.getEntity();
>> The error message on jenkins.
>>
>> IOException for fp.act(new UploadRpm())
>> 
>> = traceback
>> hudson.FilePath.act(FilePath.java:912)
>> hudson.FilePath.act(FilePath.java:889)
>> com.sfdc.jenkinsnexusartifact.NexusRpmBuilder.perform(NexusRpmBuilder.java:155)
>> hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
>> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:781)
>> hudson.model.Build$BuildExecution.build(Build.java:199)
>> hudson.model.Build$BuildExecution.doRun(Build.java:160)
>> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562)
>> hudson.model.Run.execute(Run.java:1665)
>> hudson.matrix.MatrixRun.run(MatrixRun.java:146)
>> hudson.model.ResourceController.execute(ResourceController.java:88)
>> hudson.model.Executor.run(Executor.java:246)
>> hudson.util.IOException2: remote file operation failed: 
>> /home/jenkins-slave/workspace/00_packages/idlc/latest/idlc-puppet-modules-1.0.0-14083208_devtest.noarch.rpm
>>  at hudson.remoting.Channel@5590eab2:jenkin-slave.sf.com
>> IOException for fp.act(new UploadRpm())
>>
>>
>> Best regards,
>>
>> Shoujin Wang
>>
>>  --
>> 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.
>>
>
>
>
> --
> Thanks!
> Mark Waite
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/UnQlZV6-dus/unsubscribe.
> To unsubscribe from this group and all its topics, 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: The apache http client post request fails on jenkins swarm slave

2014-01-14 Thread Mark Waite
I'm not sure if your swam slave related failure is the same as mine, but
mine was similar to the problem described in:

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

There was an incompatibility between one or more components on the server
and the needed components in the slave jar file.

I submitted a pull request with my proposed change.

https://github.com/jenkinsci/swarm-plugin/pull/8

I'm not sure it is the correct change.  There are several other pull
requests submitted which seem to be attempting to fix the same root
problem.  If you're feeling adventurous, you could build from the source
code of the swarm plugin and add that pull request to see if it fixes your
problem.  Alternately, if you're willing to trust a jar file directly from
me, I can send you an updated swarm jar file to try.

Mark Waite


On Sat, Jan 11, 2014 at 7:41 PM, Shoujin Wang  wrote:

> Hi,
>
> I wrote a jenkins plugin to upload RPM artifact to nexus. When the job is
> run on swarm slave, it always fails on http post request.
> I also attached the source code for the whole project for reference. The
> failure happens on NexusResfulClient.java as the following:
> Any comments are welcomed!
>
>  HttpPost httpPost = new HttpPost(this.nexusUrl+
> "/service/local/artifact/maven/content");
>
>  String pkgName = file.getName();
>
>  RpmPackageInfo pkgInfo = new RpmPackageInfo(pkgName);
>
>   MultipartEntityBuilder entityBuilder = MultipartEntityBuilder.create();
>
>  entityBuilder.addTextBody("r", this.repoName);
>
>  entityBuilder.addTextBody("g", this.repoGroup);
>
>  entityBuilder.addTextBody("e", "rpm");
>
>  entityBuilder.addTextBody("hasPom", "false");
>
>  entityBuilder.addTextBody("a", pkgInfo.getName());
>
>  entityBuilder.addTextBody("p", "rpm");
>
>  entityBuilder.addTextBody("v", pkgInfo.getVersion()+"-"
> +pkgInfo.getTimeStamp()+"."+pkgInfo.getArch());
>
>   FileBody uploadFilePart = new FileBody(file );
>
>  entityBuilder.addPart("upload_file", uploadFilePart);
>
>   httpPost.setEntity(entityBuilder.build());
>
>
>  try {
>
>  System.out.println("Start uploading file : " + file.getName());
>
> * HttpResponse response = httpclient.execute(httpPost);  -- always fails
> here.*
>
>  try {
>
> HttpEntity entity = response.getEntity();
> The error message on jenkins.
>
> IOException for fp.act(new UploadRpm())
> 
> = traceback
> hudson.FilePath.act(FilePath.java:912)
> hudson.FilePath.act(FilePath.java:889)
> com.sfdc.jenkinsnexusartifact.NexusRpmBuilder.perform(NexusRpmBuilder.java:155)
> hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:781)
> hudson.model.Build$BuildExecution.build(Build.java:199)
> hudson.model.Build$BuildExecution.doRun(Build.java:160)
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562)
> hudson.model.Run.execute(Run.java:1665)
> hudson.matrix.MatrixRun.run(MatrixRun.java:146)
> hudson.model.ResourceController.execute(ResourceController.java:88)
> hudson.model.Executor.run(Executor.java:246)
> hudson.util.IOException2: remote file operation failed: 
> /home/jenkins-slave/workspace/00_packages/idlc/latest/idlc-puppet-modules-1.0.0-14083208_devtest.noarch.rpm
>  at hudson.remoting.Channel@5590eab2:jenkin-slave.sf.com
> IOException for fp.act(new UploadRpm())
>
>
> Best regards,
>
> Shoujin Wang
>
>  --
> 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.
>



-- 
Thanks!
Mark Waite

-- 
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: git plugin: get a list of changed file names?

2014-01-14 Thread Mark Waite
If you're willing to call the REST API, I think the SHA1 of each of the
jobs is available from the REST API.

For my job "git-client-plugin", I queried with:

http://localhost:8080/job/git-client-plugin/api/xml?depth=1

and saw that each build included the SHA1 for that build.

You could then use those SHA1 values for the diff calculation.

Mark Waite


On Tue, Jan 14, 2014 at 2:47 PM, Sam Lee  wrote:

> Hello,
>
> I have a build set up to use git plugin.
> The build is paramatized to take any git revision (commit, branch, ..etc).
>
> During the build, I need to get a list of changed files since last build.
> I could do this if the current build is on the same branch of git by
> looking at GIT_COMMIT and GIT_PREVIOUS_COMMIT environment variables in my
> script.
>
> But, if the current build is not on the same branch, GIT_PREVIOUS_COMMIT
> isn't set.
> So, I can't do  git diff --name-only $GIT_PREVIOUS_COMMIT $GIT_COMMIT  to
> get the list of changed files  if I'm building a new branch.
>
> Is it better to use jenkins REST API to get previous build info?
>
> *tl;tr  How do I get a list of changed files since the last build (from a
> git project)?*
>
> --
> 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.
>



-- 
Thanks!
Mark Waite

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


Customizing behavior of "Wipe out current workspace"

2014-01-14 Thread Craig Rodrigues
Hi,

Is it possible to customize the behavior of "wipe out current worksptace"?


I have a build under FreeBSD which sets the
"noschg" flag on certain binaries,
so even as root you cannot do "rm -fr" on the workspace
to delete things unless you do "chflags -R schg *" on the workspace.


--
Craig

-- 
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: A way to get rid of useless local workspace?

2014-01-14 Thread Daniel Beck
If there's a workspace for these jobs on Jenkins master, but they're running on 
slaves nodes due to a label expression in the job configuration, you should be 
able to just delete the workspace on the Jenkins master. It's probably left 
over from when the job was still running on the master.

On 14.01.2014, at 12:58, Gilles Kacki  wrote:

> 
> From my jenkins server, builds are triggered with Ant remotely on building 
> machines.  
> 
> I inserted a "Build Trigger" with "Poll SCM" to listen to changes in my SVN 
> repository, 
> 
> But as all my builds are run remotely i do not need a checkout of my repo 
> locally on my jenkins server. 
> 
> How can i avoid this useless & space-consuming workspace? Any option?
> 
> 
> 
> 
> -- 
> 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.


git plugin: get a list of changed file names?

2014-01-14 Thread Sam Lee
Hello,

I have a build set up to use git plugin.
The build is paramatized to take any git revision (commit, branch, ..etc).

During the build, I need to get a list of changed files since last build.
I could do this if the current build is on the same branch of git by
looking at GIT_COMMIT and GIT_PREVIOUS_COMMIT environment variables in my
script.

But, if the current build is not on the same branch, GIT_PREVIOUS_COMMIT
isn't set.
So, I can't do  git diff --name-only $GIT_PREVIOUS_COMMIT $GIT_COMMIT  to
get the list of changed files  if I'm building a new branch.

Is it better to use jenkins REST API to get previous build info?

*tl;tr  How do I get a list of changed files since the last build (from a
git project)?*

-- 
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: EXTERNAL: Clearcase integration with Jenkins to schedule jobs

2014-01-14 Thread Ng, Jeff
I have one of my UCM projects setup to do exactly what you are requesting.  
Whenever a dev completes a delivery to the project integration stream, a 
"postop deliver_complete" trigger kicks off a build job using a URL (trigger 
builds remotely).  Here's what you'll need:

1.  Configure your Jenkins job to "Trigger builds remotely" (under Build 
Triggers).
   - I named my token "BUILD_AFTER_DELIVER_COMPLETE".

2.  Make a ClearCase attribute used to enable or disable the automatic build 
triggering on a build stream.
   - Create the attribute type in the PVOB (I named mine 
"TriggerBuildAfterDelivery).
   - Scope:  ordinary
   - Enumeration values:  "ON", "OFF"
   - Default value:  "ON"
   - Apply the attribute to any build stream that you wish to trigger a build.

3.  Make a UCM trigger type that fires after a delivery has been completed.
   - Create the trigger type in the PVOB (I named mine 
"JENKINS_BUILD_AFTER_DELIVERY").
   - all UCM object trigger
   - post-op deliver_complete
   - Executes corresponding trigger script

4.  Write a trigger script, executed by the UCM trigger type, which constructs 
and executes the Jenkins URL.
   - I wrote mine in Perl and named it "jenkinsBuildAfterDelivery.tgr".
   - My Jenkins build job name matches the name of the UCM stream being built 
(you'll see why when you construct the URL).
   - If you use Perl, use the LWP::Simple module for the get() subroutine.
   - First get the value of the TriggerBuildAfterDelivery attribute (ct desc -s 
-attr $attr stream:$stream).
   - If the value == "ON", construct your URL and `get` it.
   - Hint:  $jobName = $buildStream = $ENV{CLEARCASE_STREAM};

I also serialized UCM deliveries on these specific build streams to prevent 
multiple devs from delivering concurrently, thus interfering with the build 
triggering.  I'll let you google for how to serialize UCM deliveries.  It's 
easy and essentially requires the same things:  An attribute, a trigger type 
and a trigger script.

I've had this setup on my project for over a year now and it works great.

-Jeff Ng

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Vinod P
Sent: Monday, January 13, 2014 8:50 PM
To: jenkinsci-users@googlegroups.com
Subject: EXTERNAL: Clearcase integration with Jenkins to schedule jobs

Hello all,

I am a newbie to Jenkins and Clearcase and have been going through the various 
options of Jenkins to facilitate CI.

However, I am not sure on how to configure Jenkins with UCM Clearcase in such a 
way that when a developer delivers his code to the Integration Stream in 
Clearcase (after having tested his code in the Development Stream where he 
makes changes to the code), Jenkins should start the build of the application.

In short, the requirement is that whenever any changes are delivered to the 
Integration stream in clearcase (UCM) , a build job should be automatically 
triggered in Jenkins.

Appreciate any help/guidance on this.

Regards
T.S
--
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: Problems adding jobs using Radiator View plugin

2014-01-14 Thread Maureen Barger
Good to know. Thank you!

On Tue, Jan 14, 2014 at 2:56 PM, David Resnick  wrote:
> I'm sorry to say that the problem is in Jenkins core, version 1.532.1. The
> bug is JENKINS-20415. This is fixed in the next (unreleased) LTS version
> 1.532.2. I added a compatibility section to the wiki describing this problem
> as well.
>
> - David
>
>
> On Tuesday, January 14, 2014 12:58:09 PM UTC+2, MoBarger wrote:
>>
>> Running Jenkins under Centos 6 x64
>> Oracle jvm 1.6
>> Jenkins 1.5.32.1
>>
>> When I try to add a job to a view, it does not get saved. Throws this
>> error:
>>
>> Jan 14, 2014 5:46:46 AM hudson.ExpressionFactory2$JexlExpression evaluate
>>
>> WARNING: Caught exception evaluating: it.contains(job) in
>> /jenkins/view/Feedback/configure. Reason:
>> java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast
>> to hudson.model.TopLevelItem
>>
>> java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast
>> to hudson.model.TopLevelItem
>>
>>
>> I see this has been reported before but I do not see a resolution. At
>> this point all I want to do is remove the view entirely but because it
>> does not render fully, I have no access to the lefthand navigation
>> with the "delete view" link.
>
> --
> 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: Problems adding jobs using Radiator View plugin

2014-01-14 Thread David Resnick
I'm sorry to say that the problem is in Jenkins core, version 1.532.1. The 
bug is JENKINS-20415. This is fixed in the next (unreleased) LTS version 
1.532.2. I added a compatibility section to the wiki describing this 
problem as well.

- David

On Tuesday, January 14, 2014 12:58:09 PM UTC+2, MoBarger wrote:
>
> Running Jenkins under Centos 6 x64 
> Oracle jvm 1.6 
> Jenkins 1.5.32.1 
>
> When I try to add a job to a view, it does not get saved. Throws this 
> error: 
>
> Jan 14, 2014 5:46:46 AM hudson.ExpressionFactory2$JexlExpression evaluate 
>
> WARNING: Caught exception evaluating: it.contains(job) in 
> /jenkins/view/Feedback/configure. Reason: 
> java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast 
> to hudson.model.TopLevelItem 
>
> java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast 
> to hudson.model.TopLevelItem 
>
>
> I see this has been reported before but I do not see a resolution. At 
> this point all I want to do is remove the view entirely but because it 
> does not render fully, I have no access to the lefthand navigation 
> with the "delete view" link. 
>

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


libpam4j problem under FreeBSD 10

2014-01-14 Thread Craig Rodrigues
Hi,

I installed jenkins-1.545, under FreeBSD-10.0RC5.

For this installation, I enabled a feature which I don't
normally use.  In the configuration setup,
I enabled security, and used Unix security.  This uses the
PAM plugin for Jenkins.

I enabled "Matrix security", and created one user "jenkins"
and gave the user all the permissions.

The "jenkins" user was already created in /etc/passwd.

I validated that I could login as "jenkins" from the command-line.

When I tried to login via the jenkins web interface as "jenkins",
I saw this error traceback in /var/log/jenkins.log:

JNA: Callback org.jvnet.libpam.PAM$1@
66732173 threw the following exception:
valid file format
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:166)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:239)
at com.sun.jna.Library$Handler.(Library.java:140)
at com.sun.jna.Native.loadLibrary(Native.java:366)
at com.sun.jna.Native.loadLibrary(Native.java:351)
at org.jvnet.libpam.impl.CLibrary$Instance.init(CLibrary.java:127)
at org.jvnet.libpam
.impl.CLibrary$Instance.access$000(CLibrary.java:124)
at org.jvnet.libpam.impl.CLibrary.(CLibrary.java:122)
at org.jvnet.libpam.PAM$1.callback(PAM.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:239)
at com.sun.jna.Library$Handler.(Library.java:140)
at com.sun.jna.Native.loadLibrary(Native.java:366)
at com.sun.jna.Native.loadLibrary(Native.java:351)
at org.jvnet.libpam.impl.CLibrary$Instance.init(CLibrary.java:127)
at org.jvnet.libpam
.impl.CLibrary$Instance.access$000(CLibrary.java:124)
at org.jvnet.libpam.impl.CLibrary.(CLibrary.java:122)
at org.jvnet.libpam.PAM$1.callback(PAM.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java:57)
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
lbackReference.java:394)
eference.java:424)
at com.sun.jna.Native.invokeInt(Native Method)
at com.sun.jna.Function.invoke(Function.java:344)
at com.sun.jna.Function.invoke(Function.java:276)
at com.sun.jna.Library$Handler.invoke(Library.java:216)

and the login failed.

After further investigation of the source code, it looks like in Jenkins,
one of the modules
used in PAM authentication is this one:
http://libpam4j.kohsuke.org/

libpam4j has some hardcoded logic about the size
of certain C data structures such as "struct passwd" gets the logic
wrong, becaue in FreeBSD, those structures have changed since
this code was written.

I am a little less familiar with this module.
Can someone give me advice for how I can
build libpamj, test it, and submit fixes back upstream?

Thanks.

--
Craig

-- 
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: Multiple SCM Plugin: commit trigger notify upon change, but do Jenkins should not update sources?

2014-01-14 Thread Craig Rodrigues
On Mon, Jan 13, 2014 at 4:35 PM, Mark Waite wrote:

If your git server is allowed to use "curl" to read a URL on your Jenkins
> server, then you can use a git commit hook to notify the top level project
> on any submission to all of the repos you listed.  Each repo would have a
> hook to the same URL (the URL for your top level job) so that any time a
> change was submitted to any one of the projects, the project will build.
>
> Refer to Kohsuke Kawaguchi's "Polling Must Die" blog posting for hints on
> how to configure it.
>
>
> http://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/
>
> The multiple SCM plugin may also be able to do that, and would probably
> allow you to see the commits in the "Recent Changes" portion of the job
> definition.  However, that will probably be more complicated than adding a
> hook to each of your git repositories.
>
> Mark Waite
>
>
Mark,

Thanks for the hint.  I have read Kohsuke's blog posting before, and
already make
extensive use of curl to poke Jenkins to trigger builds.

I have this:
  repo1 -> contains the main repo, with the Makefile
that has the "make checkout" target
  repo2
  repo3
  repo4

Based on what you have suggested, in the commit hooks for repo2, repo3, and
repo4, I will
put an invocation of curl that notifies repo1.

Thanks!

--
Craig

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


External Scheduler plugin questions

2014-01-14 Thread Wright, Clark
Started looking at the external scheduler plugin as a way to help solve a few 
issues we have.

https://wiki.jenkins-ci.org/display/JENKINS/External+scheduler+plugin

We are particularly interested in the ability to use groovy scripting.

Downloaded it, installed it.

On the Jenkins main configuration screen,  there is now an "External scheduler 
plugin" section.

However, it only wants a url for a REST server.

No drop down to select other options, no hint of grails support.

It doesn't, in fact, look at all like the screen cap in the wiki for "Choose 
custom scheduler"

What did we miss?

Thank you,
-Clark.

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.


ChromeDriver and Slave

2014-01-14 Thread Ci-Ci Thomson
 

Jenkins ver 1.546 -- I successfully created and connected to a Jenkins 
Slave; however, after it connected it tried to instantiate the ChromeDriver 
and failed:

[] 
SSHChecking
 java version of java
[] 
SSHjava
 -version returned 1.6.0_27.
[] 
SSHStarting
 sftp client.
[] 
SSHCopying
 latest slave.jar...
[] 
SSHCopied
 346,845 bytes.
Expanded the channel window size to 4MB
[] 
SSHStarting
 slave process: cd '/home/webapp' && java -jar slave.jar
<===JENKINS REMOTING 
CAPACITY===>channel
 
started
Slave.jar version: 2.33
This is a Unix slave
Evacuated stdout
Installing chromedriver to /home/webapp/tools/chromedriver
ERROR: Unexpected error in launching a slave. This is probably a bug in 
Jenkins.
java.lang.NullPointerException
at 
org.jenkinsci.plugins.chromedriver.DownloadableImpl.getType(DownloadableImpl.java:91)
at 
org.jenkinsci.plugins.chromedriver.DownloadableImpl.select(DownloadableImpl.java:78)
at 
org.jenkinsci.plugins.chromedriver.DownloadableImpl.resolve(DownloadableImpl.java:35)
at 
org.jenkinsci.plugins.chromedriver.ComputerListenerImpl.process(ComputerListenerImpl.java:43)
at 
org.jenkinsci.plugins.chromedriver.ComputerListenerImpl.preOnline(ComputerListenerImpl.java:34)
at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:471)
at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:345)
at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:695)
at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:489)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:228)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
[] 
SSHConnection
 closed.
ERROR: Connection terminated
java.io.IOException: Unexpected termination of the channel
at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50)
Caused by: java.io.EOFException
at 
java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2598)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1318)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at hudson.remoting.Command.readFrom(Command.java:92)
at 
hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:71)
at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
ERROR: [] slave agent was terminated
java.io.IOException: Unexpected termination of the channel
at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50)
Caused by: java.io.EOFException
at 
java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2598)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1318)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at hudson.remoting.Command.readFrom(Command.java:92)
at 
hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:71)
at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

-- 
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: email not sent by jenkins

2014-01-14 Thread Slide
Please enable debug mode in the global configuration. Also, check your spam
folder, if there is no error displayed, then the email is being sent
correctly to the mailserver.


On Wed, Jan 8, 2014 at 11:35 AM, pras.sawant  wrote:

> Hi
> I am using jenkins-core-1.541 on Ubuntu with email-ext v 2.36. facing some
> strange issue , when I am sending using "Test configuration by sending test
> e-mail" it's successful , but when I run job I get following message but no
> mail
> Sonar analysis completed: SUCCESS
> Email was triggered for: Always
> Sending email for trigger: Always
> Sending email to: x...@.com
> below is my config.xml
> 
> 
>   
>   false
>   true
> 
> 
>   x...@xxx.com
>   
> 
>
> 
> $PROJECT_DEFAULT_SUBJECT
> $PROJECT_DEFAULT_CONTENT
> false
> false
> false
> true
> 
> false
> false
> $PROJECT_DEFAULT_REPLYTO
> project
>
> Can somebody help , I tried increasing logging level by modifying
> /etc/default/Jenkins JENKINS_DEBUG_LEVEL="9" but I still not able to
> capture
> hudson.plugins.emailext.ExtendedEmailPublisher error
>
>
>
>
> --
> View this message in context:
> http://jenkins-ci.361315.n4.nabble.com/email-not-sent-by-jenkins-tp4686607.html
> 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.
>



-- 
Website: http://earl-of-code.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.


email not sent by jenkins

2014-01-14 Thread pras.sawant
Hi 
I am using jenkins-core-1.541 on Ubuntu with email-ext v 2.36. facing some
strange issue , when I am sending using "Test configuration by sending test
e-mail" it's successful , but when I run job I get following message but no
mail
Sonar analysis completed: SUCCESS
Email was triggered for: Always
Sending email for trigger: Always
Sending email to: x...@.com
below is my config.xml


  
  false
  true


  x...@xxx.com
  

  

$PROJECT_DEFAULT_SUBJECT
$PROJECT_DEFAULT_CONTENT
false
false
false
true

false
false
$PROJECT_DEFAULT_REPLYTO
project

Can somebody help , I tried increasing logging level by modifying
/etc/default/Jenkins JENKINS_DEBUG_LEVEL="9" but I still not able to capture
hudson.plugins.emailext.ExtendedEmailPublisher error




--
View this message in context: 
http://jenkins-ci.361315.n4.nabble.com/email-not-sent-by-jenkins-tp4686607.html
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.


Re: Intermediate state until async notification

2014-01-14 Thread bvamos
Federico,

Have you managed this task?

Balazs



--
View this message in context: 
http://jenkins-ci.361315.n4.nabble.com/Intermediate-state-until-async-notification-tp2252586p4686557.html
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.


Log parser plugin output viewable on dashboard top level ?

2014-01-14 Thread andy marr
Is there a way to get the errors and warnings numbers from the log parser 
plugin to be display on the top level dashboard for a job ?

Regards
Andy

-- 
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: Full build history via JSON API

2014-01-14 Thread Frédéric Camblor
Hi Kalle,

I'm the creator of Global build stats plugin, and I can tell you it should
fit your needs either with the JSON API or the Global build
search
 screen

Note that even if you "discard old builds", build result data will be kept
inside the global build stats data.
The only data I can't get is the data tied to builds discarded *before*
initial initialization of global build stats.

Hope it helps,

Cheers,

Frédéric Camblor  

Bordeaux JUG  Leader
Restx  commiter
Jenkins  community member & plugin commiter



On Tue, Jan 14, 2014 at 1:56 PM, Waky  wrote:

> Hi,
>
> You can access the full build history via expand link on the bottom left
> of the job view. However I have not been able to find a URL that provides
> the full job history data, using:  URL>/api/json?tree=builds[number,timestamp,actions[failCount,skipCount,totalCount]]
> I will get the latest build information, but not the full list of builds.
> Any ideas or is
> https://wiki.jenkins-ci.org/display/JENKINS/Global+Build+Stats+Plugin plugin
> the answer?
>
> Thanks!
> Kalle
>
>  --
> 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.


browser

2014-01-14 Thread Brosh, Yossi
Hi to all,

I am looking for a way to bowering file in Jenkins job.
Like the explorer in Windows.
The selected file will be a parameter .

BR
Yossi

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


no plugins available?

2014-01-14 Thread tom-e
Hello 

The 'available' tab for plugins is saying, "No updates" in 1.544. 

When I push the "check now" button on tab "advanced" nothing happend, it 
still says "Update information obtained: 14 days ago"!

Kind regards,
tom

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


Multiconfig and log parser

2014-01-14 Thread fabian
Hello

I have a multiconfig project where I run an additional code checker after 
compiling.
The output from this tool is saved in a file. The problem is now that the 
parser
needs a file path where I can't use the config variable. So it's not 
possible to
use

path\to\%CONFIG%_file.log  or  %CONFIG%\logfile.log

However if I name the output always the same and put it
outside the %CONFIG% folder then one file (config) overwrites
the others (configs).

Is there a solution to this? How do other people handle multiconfig jobs
with file output and parsers?

Thanks

bye  Fabi

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


Full build history via JSON API

2014-01-14 Thread Waky
Hi,

You can access the full build history via expand link on the bottom left of 
the job view. However I have not been able to find a URL that provides the 
full job history data, using: /api/json?tree=builds[number,timestamp,actions[failCount,skipCount,totalCount]]
 
I will get the latest build information, but not the full list of builds. 
Any ideas or is 
https://wiki.jenkins-ci.org/display/JENKINS/Global+Build+Stats+Plugin plugin 
the answer?

Thanks!
Kalle

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


A way to get rid of useless local workspace?

2014-01-14 Thread Gilles Kacki

>From my jenkins server, builds are triggered with Ant remotely on building 
machines.  

I inserted a "Build Trigger" with "Poll SCM" to listen to changes in my SVN 
repository, 

But as all my builds are run remotely i do not need a checkout of my repo 
locally on my jenkins server. 

How can i avoid this useless & space-consuming workspace? Any option?



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


Problems adding jobs using Radiator View plugin

2014-01-14 Thread Maureen Barger
Running Jenkins under Centos 6 x64
Oracle jvm 1.6
Jenkins 1.5.32.1

When I try to add a job to a view, it does not get saved. Throws this error:

Jan 14, 2014 5:46:46 AM hudson.ExpressionFactory2$JexlExpression evaluate

WARNING: Caught exception evaluating: it.contains(job) in
/jenkins/view/Feedback/configure. Reason:
java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast
to hudson.model.TopLevelItem

java.lang.ClassCastException: hudson.maven.MavenModule cannot be cast
to hudson.model.TopLevelItem


I see this has been reported before but I do not see a resolution. At
this point all I want to do is remove the view entirely but because it
does not render fully, I have no access to the lefthand navigation
with the "delete view" link.

-- 
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: jshint_cli command failing in Jenkins

2014-01-14 Thread Simona Avornicesei
Hi Daniel,

It works if using CALL jshint --verbose --reporter=checkstyle 
./MyProject/app 1> checkstyle-jshint.xml && exit 0

You really put me on the right track! It never crossed my mind that jshint 
errors if it finds violations.

Thanks!

-- 
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: Run sequential jobs on SCM change in jenkins

2014-01-14 Thread Tushanka hak
No they are not using same URL's.
I have a masterjob which contains job1 job2 job3 job4..All these jobs have
separate SCM URL's ..When I click run on masterjob ..it should trigger only
those jobs which have SCM changes..
so its when masterjob triggers job1 only if it has SCM changes,and then if
job2 has SCM changes it should trigger ,and so on..
Kindly help.

Thanks


On Tue, Jan 14, 2014 at 1:01 AM, Daniel Beck  wrote:

> Are they using the same SCM URLs, so that whatever triggers job2 should
> also trigger the others?
>
> If so, use SCM Trigger for job1, and select to build job2 after job1 is
> finished. Do the same with job3 after job2, and job4 after job3.
>
> On 13.01.2014, at 20:24, Tushanka hak  wrote:
>
> > Hi All,
> >
> >
> > I have a requirement where i need to run Job1 ,Job2 ,Job3 ,Job 4 in a
> sequential way and these jobs should only be triggered on SCM change
> >
> >
> > 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 a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/czfqvgJ8-1E/unsubscribe.
> To unsubscribe from this group and all its topics, 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: Run sequential jobs on SCM change in jenkins

2014-01-14 Thread Tushanka hak
Thanks for your reply.
I tried with buildflow plugin where we define DSL i.e we can define jobs in
sequential way but there i am not able to define SCM changes ..Please let
me know if i am missing something.
I have a masterjob which contains job1 job2 job3 job4..All these jobs have
separate SCM URL's ..When i click run on masterjob ..it should trigger only
those jobs which have SCM changes..

Kindly help.
Thanks


On Tue, Jan 14, 2014 at 1:00 AM, Slide  wrote:

> build-flow would be very easy for this.
>
>
> On Mon, Jan 13, 2014 at 12:24 PM, Tushanka hak wrote:
>
>> Hi All,
>>
>>
>> I have a requirement where i need to run Job1 ,Job2 ,Job3 ,Job 4 in a
>> sequential way and these jobs should only be triggered on SCM change
>>
>>
>> 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.
>>
>
>
>
> --
> Website: http://earl-of-code.com
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/czfqvgJ8-1E/unsubscribe.
> To unsubscribe from this group and all its topics, 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: Clearcase integration with Jenkins to schedule jobs

2014-01-14 Thread jes Struck
Please have a look at
https://wiki.jenkins-ci.org/display/JENKINS/ClearCase+UCM+Plugin
which where designed for exactly your work-flow.

This supports both poll when putting code to the integration stream but
also if you create a baseline on you dev. stream you could poll that
configuration and if build succeed push it too integration stream!...




  *Jes Struck*
Consultant
Praqma A/S

Tel:+45 22 71 82 46

Mail: j...@praqma.net

web: www.praqma.net






On 14 January 2014 06:24, Palanilkunnathil Melemuriyil, Vinod P <
v.palanilkunnathilmelemuri...@cgi.com> wrote:

>  Thanks Slide.
>
>
>
> With the Clearcase plug-in installed in Jenkins, wouldn’t it be possible
> to poll SCM (i.e Clearcase) for any changes that are delivered to
> Integration Stream by the developers.
>
>
>
> If any changes are found in Integration Stream then Jenkins runs the
> particular build job.
>
>
>
> Regards
>
> T.S
>
>
>
> *From:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *On Behalf Of *Slide
> *Sent:* Tuesday, January 14, 2014 9:39 AM
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: Clearcase integration with Jenkins to schedule jobs
>
>
>
> I think for the automatic triggering, you would need to implement a
> trigger in Clearcase that would initiate a build via URL. There really
> isn't a native way for Clearcase to notify Jenkins that someone delivered
> something, you would need to roll your own.
>
>
>
> slide
>
>
>
> On Mon, Jan 13, 2014 at 8:49 PM, Vinod P  wrote:
>
> Hello all,
>
>
>
> I am a newbie to Jenkins and Clearcase and have been going through the
> various options of Jenkins to facilitate CI.
>
>
>
> However, I am not sure on how to configure Jenkins with UCM Clearcase in
> such a way that when a developer delivers his code to the Integration
> Stream in Clearcase (after having tested his code in the Development Stream
> where he makes changes to the code), Jenkins should start the build of the
> application.
>
>
>
> In short, the requirement is that whenever any changes are delivered to
> the Integration stream in clearcase (UCM) , a build job should be
> automatically triggered in Jenkins.
>
>
>
> Appreciate any help/guidance on this.
>
>
>
> Regards
>
> T.S
>
> --
> 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.
>
>
>
>
>
> --
> Website: http://earl-of-code.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.
>

-- 
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: jshint_cli command failing in Jenkins

2014-01-14 Thread Daniel Beck
By convention, an exit code that is not 0 is considered an error. jshint uses 
this to indicate that not all files passed.

Try adding an 'echo.' after the jshint call. IIRC the Batch step only needs the 
last command to succeed to not fail the build.

On 14.01.2014, at 08:58, Simona Avornicesei  wrote:

> Hi all,
> 
> I have a Jenkins 1.546 instance installed as a service on a W7 machine. It 
> runs under a local admin account, the same account I use to RDP into that 
> machine. I installed nodejs v 0.10.24.
> In one of the jobs I'm running the following build steps as windows batch 
> command:
> batch command 1:
> REM Installing nodejs jshint package
> npm install -g jshint
> npm install jshint
> 
> batch command 2:
> REM Running jshint with checkstyle on MyProject source code
> jshint --verbose --reporter=checkstyle ./MyProject/app 1> 
> checkstyle-jshint.xml
> REM Created checkstyle-jshint file
> 
> REM Running jshint with jslint on MyProject source code
> jshint --verbose --reporter=jslint ./MyProject/app 1> jslint.xml
> REM Created jslint file
> 
> 
> The job fails when executing the first command in batch2 but no error message 
> or hint is logged. The same commands run ok in Command Prompt. I've checked 
> and doublechecked the command line options of jshint, tried giving the 
> fullpath to the project by using %WORKSPACE%, replaced > with 1> - to no 
> avail. If I replace batch command 2 content with "jshint --version" the build 
> does not fail.
> 
> This is the important part of the job log:
> [workspace] $ cmd /c call C:\Temp\hudson1680110169794042148.bat
> 
> D:\jenkins.space\jobs\MyProject_Deploy\workspace>REM Installing nodejs jshint 
> package 
> 
> D:\jenkins.space\jobs\MyProject_Deploy\workspace>npm install -g jshint 
> npm http GET https://registry.npmjs.org/jshint
> npm http 304 https://registry.npmjs.org/jshint
> npm http GET https://registry.npmjs.org/shelljs
> npm http GET https://registry.npmjs.org/underscore
> npm http GET https://registry.npmjs.org/cli
> npm http GET https://registry.npmjs.org/minimatch
> npm http GET https://registry.npmjs.org/htmlparser2
> npm http GET https://registry.npmjs.org/console-browserify
> npm http 304 https://registry.npmjs.org/cli
> npm http 304 https://registry.npmjs.org/minimatch
> npm http 304 https://registry.npmjs.org/htmlparser2
> npm http 304 https://registry.npmjs.org/shelljs
> npm http 304 https://registry.npmjs.org/underscore
> npm http 304 https://registry.npmjs.org/console-browserify
> npm http GET https://registry.npmjs.org/lru-cache
> npm http GET https://registry.npmjs.org/sigmund
> npm http GET https://registry.npmjs.org/glob
> npm http 304 https://registry.npmjs.org/lru-cache
> npm http 304 https://registry.npmjs.org/sigmund
> npm http 304 https://registry.npmjs.org/glob
> npm http GET https://registry.npmjs.org/domhandler
> npm http GET https://registry.npmjs.org/domutils
> npm http GET https://registry.npmjs.org/domelementtype
> npm http GET https://registry.npmjs.org/readable-stream
> npm http GET https://registry.npmjs.org/inherits
> npm http 304 https://registry.npmjs.org/inherits
> npm http 304 https://registry.npmjs.org/domelementtype
> npm http 304 https://registry.npmjs.org/domutils
> npm http 304 https://registry.npmjs.org/readable-stream
> npm http 304 https://registry.npmjs.org/domhandler
> C:\Users\jenkins\AppData\Roaming\npm\jshint -> 
> C:\Users\jenkins\AppData\Roaming\npm\node_modules\jshint\bin\jshint
> jshint@2.4.1 C:\Users\jenkins\AppData\Roaming\npm\node_modules\jshint
> ├── console-browserify@0.1.6
> ├── underscore@1.4.4
> ├── minimatch@0.2.14 (sigmund@1.0.0, lru-cache@2.5.0)
> ├── shelljs@0.1.4
> ├── cli@0.4.5 (glob@3.2.8)
> └── htmlparser2@3.3.0 (domelementtype@1.1.1, domutils@1.1.6, 
> domhandler@2.1.0, readable-stream@1.0.24)
> [workspace] $ cmd /c call C:\Temp\hudson3001016805079027919.bat
> 
> D:\jenkins.space\jobs\MyProject_Deploy\workspace>REM Running jshint with 
> checkstyle on MyProject source code 
> 
> D:\jenkins.space\jobs\MyProject_Deploy\workspace>jshint --verbose 
> --reporter=checkstyle ./MyProject/app  1>checkstyle-jshint.xml 
> Build step 'Execute Windows batch command' marked build as failure
> 
> -- 
> 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.