How to get detailed change list via the json api

2015-04-30 Thread Brent Scriver

Hi all,

I can currently get some information for the changeSet of a job using:
http:///job///api/json 

However this is not the entire set of change information (such as the edit 
type (add, edit, delete), and the perforce revision of the file).

There is additional information provided by:
http:///job///changes

that I have been unsuccessful at trying to acquire from the api/json data.
What I've tried:
* changes/api/json
* api/json/changes
* api/json/?depth=# for various #
* api/json/?tree=changeSet[*[*]]

Is there a a simple way to get the extended information?

Thank you,
Brent

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/67f3ef3b-a54c-4e55-ac35-51a9e0ee6308%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins Multi-configuration job - Dynamic Axis plugin issue

2015-04-30 Thread slonzk7
Hi
We have two jenkins jobs:
JOB_1 - a freestyle job which simply triggers a parametrized build on 
Jenkins JOB_2, it sends the following parameter to Jenkins JOB_2: 
SERVERS=server1.me.com

JOB_2 - a Multi-configuration project with a Dynamic Axis defined as 
follows: Axis Name: SERVER, Variable Name: SERVERS,  this job simply runs 
'set' command to see environmental variables.

As soon as JOB_1 is executed it sends SERVERS parameter and triggers a 
build on JOB_2, however the issue is JOB_2 is trying to do a build (run 
'set' command) on server5000.me.com instead of server1.me.com, why is 
that?  server5000.me.com is a server and has Jenkins client running on it 
however it shouldn't be used by the above jobs.  I would expect that JOB_2 
in the scenario above tries to do a build on server1.me.com

Configuration
Dynamic Axis plugin version 1.0.3
Jenkins ver. 1.585

Any help is greatly appreciated
Thank you 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/11078dec-2d2a-48c4-adb2-ba18de4a1917%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Why is a release candidate plugin update available from the stable update site?

2015-04-30 Thread Ullrich Hafner
I don’t think that plugins are yet part of the LTS releases. So you see all 
plugin updates in both channels.

> Am 30.04.2015 um 11:46 schrieb Benjamin :
> 
> 
> 
> Hi,
> 
> I configured the Update Site to use the stable update site 
> (http://updates.jenkins-ci.org/stable/update-center.json):
> 
>  
> 
> 
> I just discovered that a Docker plugin update is available from 0.8 to 
> 0.9.0-rc1
> 
>  
> 
> I would not expect a release candidate to appear for the stable update site.
> 
> Is this intended behavior? If not, how could I help to get this issue? How is 
> the update-center.json content generated/curated?
> 
> Best regards
> Benjamin
> 
> 
> --
> 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 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/131c716d-1a83-45ed-929e-4ff707aed92d%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6D736864-A37A-463E-AFCA-C8DD70CFE24D%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Doubts about Publish Over SSH Plugin

2015-04-30 Thread Maciej Jaros

Erick Macedo (2015-04-27 22:54):

Hi,

I configured this way and it worked,

Another question, as you usually split between the build environment 
(Stage, test, production)?


Create a build for each environment? or a single build and different 
parameters?


You should have separte builds for several reasons:

1. Copy artifact plugin copies latest build from given job.
2. For alfa/test builds you might want to do full unit and integration
   tests and Jenkins will show you charts with failing tests and such.
   For production builds you can assume those tests already pass and
   make build proccess faster (or run different tests depeneding on
   your needs).
3. Stage and production builds might use code from different
   tags/branches... And Jenkins will show changes nicely if you let it
   pull changes from single branch in a single job.

In other words the build process will most likely be different and it 
will be much easier to observe it in separate jobs.


Regards,
Nux.

--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/55424D79.9020003%40mol.com.pl.
For more options, visit https://groups.google.com/d/optout.


Username missing in the jenkins homepage.

2015-04-30 Thread j shaik
Hi,

I have Jenkins configured with openID plugin. I have CAS running as an 
openID provider which has LDAP for authentication. Everything is 
functioning properly. This means that I am able to successfully login to 
Jenkins using CAS login page and it gets redirected to Jenkins homepage. 
However, instead of my username as a logged in user, Jenkins shows the 
openID URL. I have hunch that there somewhere a variable value which needs 
to be changed but I cannot figure out where. I have attached a screenshot 
highlighting the problem.





Any help ?

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0d62b187-60a2-408b-a410-a796db54f5bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: email-ext 2.40 ✔ problem

2015-04-30 Thread Niksan
The irony is, when I put ✔ in to JIRA it does the same thing. ;)

On Thursday, April 30, 2015 at 2:29:44 PM UTC+1, slide wrote:
>
> Please do file a bug report, I thought I have fixed all these. Please put 
> in some good steps to reproduce when you file.
>
> On Thu, Apr 30, 2015 at 6:23 AM Niksan  > wrote:
>
>> I've just updated email-ext to 2.40 with the hope it fixes issues with 
>> sending text with " replaced with " etc.  This seems fixed but now has 
>> problem with ampersands.
>>
>> ✔ (which should and used to display a tick in email) is replaced by 
>> ✔
>>
>> Does anyone know of work around or is this a case of living with it until 
>> the next update? (I'll file a bug report in the mean time)
>>
>> -- 
>> 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 .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/527fc0d6-1e23-4fad-8d1a-d1ae479bae23%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f533c86e-055a-450c-b4c9-03e877ec94fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Issue with starting downstream jobs

2015-04-30 Thread Zoe Slattery
Hi

I have a problem with downstream jobs not starting (occasionally). I think 
it is possibly a configuration option that I have missed or something about 
Jenkins that I don't understand.

I have two jobs, A and B, I always want to start B after A has finished. I 
am using Jenkins version 1.599, both A and B are build flows (BuildFlow 
Plugin v0.17)

Here is an example:

Job A (end time)   Job B (Start time)
17:43   17:44
17:27   missed
17:18   17:19

I have tried

(a) Starting B from A
(b) Having B start itself by waiting for A to finish
(c) As above, but using BuildResultTrigger plugin and polling once a minute.

But there is always an occasional missed job. What have I missed?

Zoe

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/07f41e49-7813-4dfe-ac73-b0e8de68bf5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: email-ext 2.40 ✔ problem

2015-04-30 Thread Slide
Please do file a bug report, I thought I have fixed all these. Please put
in some good steps to reproduce when you file.

On Thu, Apr 30, 2015 at 6:23 AM Niksan  wrote:

> I've just updated email-ext to 2.40 with the hope it fixes issues with
> sending text with " replaced with " etc.  This seems fixed but now has
> problem with ampersands.
>
> ✔ (which should and used to display a tick in email) is replaced by
> ✔
>
> Does anyone know of work around or is this a case of living with it until
> the next update? (I'll file a bug report in the mean time)
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/527fc0d6-1e23-4fad-8d1a-d1ae479bae23%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVeRwhExyTvtOTSB1PexTLp8dW20YHuHhpHd28w4Rny83w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


email-ext 2.40 ✔ problem

2015-04-30 Thread Niksan
I've just updated email-ext to 2.40 with the hope it fixes issues with 
sending text with " replaced with " etc.  This seems fixed but now has 
problem with ampersands.

✔ (which should and used to display a tick in email) is replaced by 
✔

Does anyone know of work around or is this a case of living with it until 
the next update? (I'll file a bug report in the mean time)

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/527fc0d6-1e23-4fad-8d1a-d1ae479bae23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Can I move slaves from one Jenkins to another Jenkins?

2015-04-30 Thread John Mellor
I just did a slave move from one subnet into another, and am anticipating 
several more.  If you use ssh to talk to testbeds, artifact repositories, etc. 
then you will have to manually connect once with each of them as the Jenkins 
user so that they host pubkeys get correctly added into the known_hosts.  Other 
than the mechanics of that and having to alter the IP addresses of the known 
slaves, it just worked.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Vanetta Floyd
Sent: April-29-15 22:44
To: jenkinsci-users@googlegroups.com
Subject: Re: Can I move slaves from one Jenkins to another Jenkins?


How about in general (remove any mention of enterprise)?  If I were setting up 
a jenkins on a different server, does anyone know if there would be an issue 
with moving slaves from the old to the new?
On Apr 29, 2015 5:21 PM, "Christopher Orr" 
mailto:ch...@orr.me.uk>> wrote:
On 29/04/15 22:35, VFloyd wrote:
We are migrating our Jenkins to Enterprise Jenkins.  Can I take the
slave servers from our original Jenkins and hook them up to our new
Enterprise Jenkins without too much trouble?

There isn't an open source "enterprise" version of Jenkins, so you'd have to 
direct this question to the vendor in question — presumably CloudBees.

Regards,
Chris

--
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/sfrpyHr-gNw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5541756A.2020109%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.
--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAL40ccMVjr%2BvWbjw9o8EEqnz52kJ%2BUg3KoPNv-fpNq8p4DbGHg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3e72e0ad7c0540e99efcd077ead90958%40mbx01colo01p.esentire.local.
For more options, visit https://groups.google.com/d/optout.


Re: Show JUnit test results in email notifications

2015-04-30 Thread Ahmed
Dear Kamal,

Kindly let me know where to place cust.jelly in .jenkins directory once we 
customize and how to use in jenkins UI in Default Content field?

-
Ahmed

On Wednesday, 19 September 2012 18:12:11 UTC+5, Kamal Ahmed wrote:
>
> try this as an example (you might have to tweek a bit)
>
>  more cust.jelly
>  xmlns:d="jelly:define">
>
> 
> BODY, TABLE, TD, TH, P {
> font-family:Verdana,Helvetica,sans serif;
> font-size:11px;
> color:black;
> }
> h1 { color:black; }
> h2 { color:black; }
> h3 { color:black; }
> TD.bg1 { color:white; background-color:#C0; font-size:120% }
> TD.bg2 { color:white; background-color:#4040FF; font-size:110% }
> TD.bg3 { color:white; background-color:#8080FF; }
> TD.test_passed { color:blue; }
> TD.test_failed { color:red; }
> TD.console { font-family:Courier New; }
> 
> 
> 
>
> 
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> BUILD 
> ${build.result}
> Build URL href="${rooturl}${build.url}">${rooturl}${build.url}
> Project:${project.name}
> Date of build:${it.timestampString}
> Build duration:${build.durationString}
> 
> 
>
> 
>
> 
> 
> 
> 
> CHANGES
> 
> 
> 
> 
> ${spc}Revision 
> ${cs.commitId?:cs.revision?:cs.changeNumber} by
> ${aUser!=null?aUser.displayName:cs.author.displayName}: 
> (${cs.msgAnnotated})
> 
> 
> 
> 
> ${spc}${p.editType.name}
> ${p.path}
> 
> 
> 
> 
> No Changes
> 
> 
> 
> 
>
> 
>
> 
> 
> 
> BUILD ATRIFACTS
> 
> 
> 
> 
> ${f}
> 
> 
> 
> 
> 
> 
> 
>
> 
>
> 
> 
> 
> BUILD ATRIFACTS
> 
> ${m.key.displayName}
> 
> 
> 
> 
> 
> 
> 
> ${f}
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
>
> 
> 
> 
> Praefectus Nose Unit Tests
> 
> 
>  Name: ${packageResult.getName()} Failed: 
> ${packageResult.getFailCount()} test(s), Passed: 
> ${packageResult.getPassCount()} tes
> t(s), Skipped: ${packageResult.getSkipCount()} test(s), Total: 
> ${packageResult.getPassCount()+packageResult.getFailCount()+packageResult.getSkipCount()}
>  
> test(
> s)
> 
> Failed: 
> ${failed_test.getFullName()}${failed_test.errorDetails} TR>
> StackTrace: 
> ${failed_test.getFullName()}${failed_test.errorStackTrace}
> 
> 
> 
> 
> 
> 
> 
>
> 
>
> 
> 
> 
> 
> Cobertura 
> Report
> Project Coverage 
> Summary
> 
> 
> Name
> 
> ${metric.name}
> 
> 
> 
> ${coberturaResult.name}
> 
>  data="${coberturaResult.getCoverage(metric).percentageFloat}">${coberturaResult.getCoverage(metric).percentage}%
> (${coberturaResult.getCoverage(metric)})
> 
> 
> 
> 
>
> 
> Source
> 
> 
> 
> 
> 
> 
> ${coberturaResult.relativeSourcePath}
> 
> 
> ${coberturaResult.sourceFileContent}
>
> 
> 
> 
> 
> 
> Source code is unavailable
> 
> 
> 
> 
>
> 
>  value="${coberturaResult.getChildMetrics(element)}"/>
> Coverage Breakdown by 
> ${element.displayName}
> 
> 
> Name
> 
> ${metric.name}
> 
> 
> 
> 
> 
>
> 
> ${child.xmlTransform(child.name)}
> 
> 
> 
> 
> 
> ${childResult.percentage}%
> (${childResult})
> 
> 
> 
> N/A
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
>
>  className="hudson.model.Result"/>
> 
> 
> CONSOLE OUTPUT
>  class="console">${line}
> 
> 
> 
>
> 
> 
>
> Hope this helps.
> -Kamal.
>
>   --
> *From:* Sven Finsterwalder >
> *To:* jenkins...@googlegroups.com  
> *Sent:* Wednesday, September 19, 2012 7:00 AM
> *Subject:* Re: Show JUnit test results in email notifications
>  
> what is the correct to get the stack trace?
> 1)  failed_test.errorStackTrace 
> or
> 2) failed_test. getErrorStackTrace()
>
> I try it with the second and it does not work :-(
> JellyException: Could not parse Jelly script : null 
>
>
> Am Donnerstag, 13. Oktober 2011 13:27:12 UTC+2 schrieb Maxime Lemanissier:
>
> I'm also interested in this topic.
> I make it work with failed_test. getErrorStackTrace()
> But the output is not really adapted, I would like to get only the 
> assertion
> error. Is there a way to do this?
> I tried failed_test. getErrorStackTrace(10) (I guessed such a method, as 
> for
> build.getLog(100) would exist) but it does not work.
> The problem is I don't know how to match jelly queries with objects
> available in Jenkins model. Maybe a method getAssertionError() is available
> for failed_test, but as I don't know which object it is, I can only make
> guess...
> In fact, I have exactly the same problem than
> http://jenkins.361315.n4. nabble.com/Request-for-more- 
> email-ext-jelly-templates- examples-td3038571.html 
> 
> How can objects be matched between jelly script and Jenkins model?
> Are there others examples than the 2 templates provided in the email ext
> plugin page?
> Thx
> --
> View this message in context: http://jenkins.361315.n4. 
> nabble.com/Show-JUnit-test- results-in-email- notifications- 
> tp3898704p3901191.html 
> 
> Sent from the Jenkins users mailing list archive at Nabble.com 
> .
>
>
>
>   

-- 
You received this message because you are subscribed to the Goog

How to use assertion failure in jelly script - jenkins

2015-04-30 Thread Ahmed
How to use assertion failure in jelly script - jenkins

Currently I'm ${JELLY_SCRIPT,template="html"} to view email report as:

*BUILD UNSTABLE*Build URLhttp://localhost/jenkins/job/TestJob/2/Project:
TestJobDate of build:Wed, 29 Apr 2015 12:47:47 +Build duration:56 sec 
 *CHANGES*No Changes 
 *JUnit Tests*Name: (root) Failed: 2 test(s), Passed: 1 test(s), Skipped: 0 
test(s), Total: 3 test(s)
*Failed: TestCase1*
*Failed: TestCase2* 
Here its showing failed test case but i want to send the email that can 
show the cause of failure.

Any idea how to do it?

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/88e9a303-06b8-4280-a4cb-081dafefe05c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Why is a release candidate plugin update available from the stable update site?

2015-04-30 Thread Benjamin


Hi,

I configured the Update Site to use the stable update site 
(http://updates.jenkins-ci.org/stable/update-center.json):



I just discovered that a *Docker plugin* update is available from 0.8 to 
*0.9.0-rc1*


I would not expect a release candidate to appear for the *stable *update 
site.

Is this intended behavior? If not, how could I help to get this issue? How 
is the update-center.json content generated/curated?

Best regards
Benjamin

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/131c716d-1a83-45ed-929e-4ff707aed92d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.