Re: Intermittenly Jenkins fails invoking through curl command

2017-10-11 Thread Bubunia Patra
execute in 
"execute shell section of a jenkins job  - example script.sh  
" . But I am stuck with this crash.*

*If you have any example to achieve this could you please help me in this 
regard?*


On Wednesday, October 11, 2017 at 6:11:11 PM UTC+8, Daniel Beck wrote:
>
>
> > On 11. Oct 2017, at 00:31, Bubunia Patra  > wrote: 
> > 
> > Not sure what is the issue 
>
> And we cannot help you if you don't show us the XML file contents. 
>

-- 
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/c8429cc9-ca37-4d6a-a6f2-a7d5b42ff73d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Intermittenly Jenkins fails invoking through curl command

2017-10-10 Thread Bubunia Patra

Not sure what is the issue( The following command works(if I create a 
config file only with /job/test/config.xml) It fails if I create config 
file with /job/test100/config.xml:

[drakula ~]$ curl "
http://:@:8080/job/test/config.xml" > 
config.xml  % Total
% Received % Xferd  Average Speed   TimeTime Time  Current
 Dload  Upload   Total   SpentLeft  
Speed
100   613  100   6130 0   5398  0 --:--:-- --:--:-- --:--:--  
5424
[drakula ~]$ curl -s -XPOST ':8080/createItem?name=test100' 
--data-binary @config.xml -H "Content-Type:text/xml" --user 
:b7079d2a6c5d2e2befe5e30140abe9834
[drakula ~]$

On Wednesday, October 11, 2017 at 5:50:03 AM UTC+8, Daniel Beck wrote:

>
> > On 10. Oct 2017, at 23:44, Bubunia Patra  > wrote: 
> > 
> > javax.xml.transform.TransformerException: org.xml.sax.SAXParseException; 
> lineNumber: 10; columnNumber: 3; The element type "hr" must be terminated 
> by the matching end-tag "</hr>". 
>
> This is the error message. Your XML file is malformed. 
>
>

-- 
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/a84523ee-aee0-41e2-8797-d4648b661fcf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Intermittenly Jenkins fails invoking through curl command

2017-10-10 Thread Bubunia Patra

Hi all,

I am using Jenkins 2.71 and when I am trying to execute a remote job using 
below command it fails with below error. After jenkins restart it works for 
a while again started failing. Do anyone have any idea, Is it related to 
this Jenkins version or I am missing something ?


Regards
Pradeep

[dracula~]$ curl -s -XPOST '192.168.20.3:8080/createItem?name=test6' 
--data-binary @config.xml -H "Content-Type:text/xml" --user 
drakula:e7079d2a6c5d2e2befe5e30140ab986

  


Jenkins [Jenkins]var isRunAsTest=false; var 
rootURL=""; var resURL="/static/d97aea68";crumb.init("", "");var 
Q=jQuery.noConflict()Skip to content log 
in https://jenkins.io/redirect/search-box";>createSearchBox("/search/");Jenkinshttps://jenkins.io/"; class="task-icon-link"> https://jenkins.io/"; class="task-link">Jenkins 
projecthttps://jenkins.io/redirect/report-an-issue"; 
class="task-icon-link"> https://jenkins.io/redirect/report-an-issue"; class="task-link">Bug 
trackerhttps://jenkins.io/redirect/mailing-lists"; 
class="task-icon-link"> https://jenkins.io/redirect/mailing-lists"; class="task-link">Mailing 
Listshttps://twitter.com/jenkinsci"; 
class="task-icon-link"> https://twitter.com/jenkinsci"; 
class="task-link">Twitter: @jenkinsci Oops!A problem occurred while processing the request.
Please check https://jenkins.io/redirect/issue-tracker";>our bug tracker to see 
if a similar problem has already been reported.
If it is already reported, please vote and put a comment on it to 
let us gauge the impact of the problem.
If you think this is a new issue, please file a new issue.
When you file an issue, make sure to add the entire stack trace, 
along with the version of Jenkins and relevant plugins.
https://jenkins.io/redirect/users-mailing-list";>The users 
list might be also useful in understanding what has 
happened.Stack tracejavax.xml.transform.TransformerException: 
org.xml.sax.SAXParseException; lineNumber: 10; columnNumber: 3; The element 
type "hr" must be terminated by the matching end-tag "".
at 
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:749)
at 
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:351)
at jenkins.util.xml.XMLUtils._transform(XMLUtils.java:212)
at jenkins.util.xml.XMLUtils.safeTransform(XMLUtils.java:84)
at 
hudson.model.ItemGroupMixIn.createProjectFromXML(ItemGroupMixIn.java:272)
at 
hudson.model.ItemGroupMixIn.createTopLevelItem(ItemGroupMixIn.java:189)
at jenkins.model.Jenkins.doCreateItem(Jenkins.java:3852)
at 
java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
at 
org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
at 
org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:52)
at 
org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
at 
org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
at 
com.smartcodeltd.jenkinsci.plugin.assetbundler.filters.LessCSS.doFilter(LessCSS.java:47)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
at 
hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:138)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at 
hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity

Communication between 2 Jenkins servers

2017-09-30 Thread Bubunia Patra
Hi ,

I have 2 jenkins servers(server1 and server2) hosted in different virtual 
environments. Jenkins server1 runs certain jenkins jobs and I dont want to 
disturb Jenkins server1(not even creating new jenkins job in server1), but 
I want to make sure after the jenkins jobs at Server1 finishes trigger a 
Jenkins job at Server2 and once the jenkins job at server2 finishes I want 
to send a email-notification(using Email-Ext plugin) from server2. Is it 
possible if so  how can we synchronize the jenkins jobs between 2 servers? 
Any example would help.

Regards
Pradeep

-- 
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/a6232ed0-7431-4bf9-a563-a9dec77cbe57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Does there is a Coverity Fix Trend Plugin

2017-03-15 Thread Bubunia Patra
Hi,

I was curious to know whether we have a opensource Jenkins plugin to  show 
the coverity trend to show the fixing trend in graphs and charts ?

Regards
Pradeep

-- 
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/0fd8fe38-90eb-4241-9865-3329af96b277%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: groovy template help.

2016-11-24 Thread Bubunia Patra
Hi Jerome,

I want all the information in tabular format. If you refer to my original 
email i had the JUNIT groovy template that you have.

Your/My original template will actually print something like this:

Testcase | Status | Pass | Fail | Skipped | Total
TestResult:
Name : abc
Status : Pass
Pass = 1
Fail = 0
Skipped=0
Total=1

Expected Output:

TestCase | Status | Pass | Fail | Skipped | Total 
abcpass 1 0   0 | 1


Regards
Pradeep

On Thursday, November 24, 2016 at 11:49:38 PM UTC+5:30, jer...@bodycad.com 
wrote:
>
> For the template part, here's some header variables (I do the same with 
> jelly but I replace the value before giving the template to emailExt):
>
> 
> <%
> style_default = "font-family:Verdana,Helvetica,sans serif; font-size:11px; 
> color:black;"
> style_header = "color: black;"
> style_bg1 = "color:white; background-color:" + style_cie_color + "; 
> font-size:120%;"
> style_bg2 = "color:#66; background-color:white; font-size:110%; 
> margin-left: 2px; margin-right: 2px;"
> style_bg3 = "color: black; background-color:white;"
> style_tr = "border: 1px solid " + style_cie_color + ";"
> style_failure = "color: red;"
> style_success = "color: green;"
> style_unstable = "color: yellow;"
> ...
> %>
>
>
>

-- 
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/50905ccd-a6f9-41d8-981a-0e013381c5e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: groovy template help.

2016-11-24 Thread Bubunia Patra


On Thursday, November 24, 2016 at 11:45:16 AM UTC+5:30, Baptiste Mathus 
wrote:
>
> So what does not work? What is the error?
>
Code : I want to print TestName after parsing the JUNIT xml. I want to 
parse the jUNIT and fill the table,



 
  Test Name
  <% def junitResultList = it.JUnitTestResult
  try {
 def cucumberTestResultAction = 
it.getAction("org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultAction")
 junitResultList.add(cucumberTestResultAction.getResult())
} catch(e) {
//cucumberTestResultAction not exist in this build
  }
 if (junitResultList.size() > 0) { %>
 
 ${junitResultList.first().displayName} 
  <% junitResultList.each{
  junitResult -> %>
 <% junitResult.getChildren().each { packageResult -> %>
 ${packageResult.getName()} } 
 
<% } %>
  
  Test Status
  Pass
  Fail
  Total
 

 

It fails with Parsing Error. The error message is also not clear. 

Exception raised during template rendering: Failed to parse template script 
(your template may contain an error or be trying to use expressions not 
currently supported): startup failed: SimpleTemplateScript61.groovy: 424: 
expecting '}', found '' @ line 424, column 40. /* Generated by 
SimpleTemplateEngine */ ^ 1 error groovy.lang.GroovyRuntimeException: 
Failed to parse template script (your template may contain an error or be 
trying to use expressions not currently supported): startup failed: 
SimpleTemplateScript61.groovy: 424: expecting '}', found '' @ line 424, 
column 40. /* Generated by SimpleTemplateEngine */ ^ 1 error at 
groovy.text.SimpleTemplateEngine.createTemplate(SimpleTemplateEngine.java:125) 
at groovy.text.TemplateEngine.createTemplate(TemplateEngine.java:38) at 
hudson.plugins.emailext.plugins.content.ScriptContent.renderTemplate(ScriptContent.java:128)
 
at 
hudson.plugins.emailext.plugins.content.ScriptContent.evaluate(ScriptContent.java:69)
 
at 
hudson.plugins.emailext.EmailExtTemplateAction.renderTemplate(EmailExtTemplateAction.java:132)
 
at sun.reflect.GeneratedMethodAccessor1346.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at 
java.lang.reflect.Method.invoke(Unknown Source) at 
org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298) at 
org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161) at 
org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96) 
at 


Is there a document I can refer for syntax to while writing groovy template 
script?

Regards
Pradeep
 

> Le 24 nov. 2016 6:21 AM, "Bubunia Patra"  > a écrit :
>
> Hi all,
>
> I am new to groovy and the syntax is very confusing and error prone and 
> written a template to work with Email-Extn plugin. I want to add the test 
> result in the tabular format as below. Can anyone help me in this regard?
>
> Regards
> Pradeep
>
> For exp if 1 test executed then i want a table in the email-body as 
> follows: 
>
> TestName | Test Status | Pass | Fail | Total
>  
> abc  |  Pass  |  1 |  0 |  1
>
> 
> 
>  
>   Test Name
>   Test Status
>   Pass
>   Fail
>   Total
>  
> 
> 
>
> <% def junitResultList = it.JUnitTestResult
> try {
>  def cucumberTestResultAction = 
> it.getAction("org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultAction")
>  junitResultList.add(cucumberTestResultAction.getResult())
> } catch(e) {
> //cucumberTestResultAction not exist in this build
> }
> if (junitResultList.size() > 0) { %>
>  
>   colspan="2">${junitResultList.first().displayName}
>  <% junitResultList.each{
>   junitResult -> %>
>  <% junitResult.getChildren().each { packageResult -> %>
>  ${packageResult.getName()} 
> ${packageResult.getFailCount()},${packageResult.getPassCount()},${packageResult.getSkipCount()},${packageResult.getPassCount()+packageResult.getFailCount()+packageResult.getSkipCount()}
> <% packageResult.getFailedTests().each{ failed_test -> %>
>colspan="2">Failed: ${failed_test.getFullName()} 
> <% }
>   }
>  } %>
>  
>  
> <%
> } %>
>
> -- 
> 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/cc06fcf9-7be4-40ad-8437-a5da816206b7%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/cc06fcf9-7be4-40ad-8437-a5da816206b7%40googlegroups.com?utm_medium=email&utm_source=footer>
&

groovy template help.

2016-11-23 Thread Bubunia Patra
Hi all,

I am new to groovy and the syntax is very confusing and error prone and 
written a template to work with Email-Extn plugin. I want to add the test 
result in the tabular format as below. Can anyone help me in this regard?

Regards
Pradeep

For exp if 1 test executed then i want a table in the email-body as 
follows: 

TestName | Test Status | Pass | Fail | Total
 
abc  |  Pass  |  1 |  0 |  1



 
  Test Name
  Test Status
  Pass
  Fail
  Total
 



<% def junitResultList = it.JUnitTestResult
try {
 def cucumberTestResultAction = 
it.getAction("org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultAction")
 junitResultList.add(cucumberTestResultAction.getResult())
} catch(e) {
//cucumberTestResultAction not exist in this build
}
if (junitResultList.size() > 0) { %>
 
 ${junitResultList.first().displayName}
 <% junitResultList.each{
  junitResult -> %>
 <% junitResult.getChildren().each { packageResult -> %>
 ${packageResult.getName()} 
${packageResult.getFailCount()},${packageResult.getPassCount()},${packageResult.getSkipCount()},${packageResult.getPassCount()+packageResult.getFailCount()+packageResult.getSkipCount()}
<% packageResult.getFailedTests().each{ failed_test -> %>
  Failed: ${failed_test.getFullName()} 
<% }
  }
 } %>
 
 
<%
} %>

-- 
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/cc06fcf9-7be4-40ad-8437-a5da816206b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Email Extension Plugin -2.51 Crashes with Java.NoSuchMethodError

2016-10-22 Thread Bubunia Patra
The problem is resolved by installing 2.41.3. So its a bug with the latest 
version(2.51) of Email-Ext plugin.

On Sunday, October 23, 2016 at 9:04:43 AM UTC+5:30, Bubunia Patra wrote:
>
> Hi ,
>
> I have installed the Email-Ext plugin 2.51 and it continuously crashing 
> with the below error [1], In Some of the jenkins servers we have 2.4.13 and 
> it works without any issues? Is there a way we have fix this issue or 
> downgrade to 2.4.13 or reinstall to without any other issues. The job is 
> successful but email is not getting triggered. Can anyone help in fixing 
> the issue or any workaround?
>
> Jenkins Version from /var/lib/jenkins/config.xml:
>
>   1.617
>
> Jenkins Job Parameters:
> 
> Extension-Email Plugin Parameters in the Job:
>
> Recipient-List : bubunia2000s...@gmail.com
>
> Project Reply-To List : $PROJECT_DEFAULT_REPLYTO
> Content-Type: HTML/text
> Default-Subject: $PROJECT_DEFAULT_SUBJECT
> Default-Content: ${SCRIPT,template="jenkins-html.template"}   ---> I 
> downloaded the template from 
> https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin#Email-extplugin-TemplateExamples
> Attach Build Log : Attach Build Log
> Pre-send Script : Blank
> Post-send Script : Blank
> Save to WorkSpace : Unchecked
>
> Success Trigger is enabled.
>
>
> [1]
>
> Archiving artifacts
> Recording fingerprints
> Recording test results
> Email was triggered for: Success
> Sending email for trigger: Success
> ERROR: Publisher 'Editable Email Notification' aborted due to exception: 
> java.lang.NoSuchMethodError 
> <http://stacktrace.jenkins-ci.org/search?query=java.lang.NoSuchMethodError>: 
> org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(Lhudson/model/Run;Lhudson/FilePath;Lhudson/model/TaskListener;Ljava/lang/String;ZLjava/util/List;)Ljava/lang/String;
>   at 
> hudson.plugins.emailext.plugins.ContentBuilder.transformText(ContentBuilder.java:80)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.emailext.plugins.ContentBuilder.transformText&entity=method>
>   at 
> hudson.plugins.emailext.ExtendedEmailPublisher.setSubject(ExtendedEmailPublisher.java:706)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.emailext.ExtendedEmailPublisher.setSubject&entity=method>
>   at 
> hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:595)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.emailext.ExtendedEmailPublisher.createMail&entity=method>
>   at 
> hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:355)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.emailext.ExtendedEmailPublisher.sendMail&entity=method>
>   at 
> hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:345)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.emailext.ExtendedEmailPublisher._perform&entity=method>
>   at 
> hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:253)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.emailext.ExtendedEmailPublisher.perform&entity=method>
>   at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.BuildStepMonitor$1.perform&entity=method>
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.perform&entity=method>
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps&entity=method>
>   at hudson.model.Build$BuildExecution.cleanUp(Build.java:195) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Build$BuildExecution.cleanUp&entity=method>
>   at hudson.model.Run.execute(Run.java:1791) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method>
>   at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run&entity=method>
>   at hudson.model.ResourceController.execute(ResourceController.java:98) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
>   at hudson.model.Executor.run(Executor.java:374) 
>

Email Extension Plugin -2.51 Crashes with Java.NoSuchMethodError

2016-10-22 Thread Bubunia Patra
Hi ,

I have installed the Email-Ext plugin 2.51 and it continuously crashing 
with the below error [1], In Some of the jenkins servers we have 2.4.13 and 
it works without any issues? Is there a way we have fix this issue or 
downgrade to 2.4.13 or reinstall to without any other issues. The job is 
successful but email is not getting triggered. Can anyone help in fixing 
the issue or any workaround?

Jenkins Version from /var/lib/jenkins/config.xml:

  1.617

Jenkins Job Parameters:

Extension-Email Plugin Parameters in the Job:

Recipient-List : bubunia2000s...@gmail.com

Project Reply-To List : $PROJECT_DEFAULT_REPLYTO
Content-Type: HTML/text
Default-Subject: $PROJECT_DEFAULT_SUBJECT
Default-Content: ${SCRIPT,template="jenkins-html.template"}   ---> I 
downloaded the template 
from 
https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin#Email-extplugin-TemplateExamples
Attach Build Log : Attach Build Log
Pre-send Script : Blank
Post-send Script : Blank
Save to WorkSpace : Unchecked

Success Trigger is enabled.


[1]

Archiving artifacts
Recording fingerprints
Recording test results
Email was triggered for: Success
Sending email for trigger: Success
ERROR: Publisher 'Editable Email Notification' aborted due to exception: 
java.lang.NoSuchMethodError 
: 
org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(Lhudson/model/Run;Lhudson/FilePath;Lhudson/model/TaskListener;Ljava/lang/String;ZLjava/util/List;)Ljava/lang/String;
at 
hudson.plugins.emailext.plugins.ContentBuilder.transformText(ContentBuilder.java:80)
 

at 
hudson.plugins.emailext.ExtendedEmailPublisher.setSubject(ExtendedEmailPublisher.java:706)
 

at 
hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:595)
 

at 
hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:355)
 

at 
hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:345)
 

at 
hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:253)
 

at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 

at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
 

at 
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
 

at hudson.model.Build$BuildExecution.cleanUp(Build.java:195) 

at hudson.model.Run.execute(Run.java:1791) 

at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 

at hudson.model.ResourceController.execute(ResourceController.java:98) 

at hudson.model.Executor.run(Executor.java:374) 

Finished: SUCCESS



Email Extension Plugin 

This plugin is a replacement for Jenkins's email publisher
2.51 



-- 
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/8240bcf4-e095-47d2-b5eb-776b7f0cc473%40googlegroups.com.
For more options, visit htt

JUNIT publishing issue in Jenkins

2016-10-20 Thread Bubunia Patra
Hi all,

My Jenkins job fails with the below  error even if all the tests passes or 
out of some test cases pass and some fails and the email is getting sent 
due to this issue. How do I suppress this and overall results should be 
"failed" and email is sent with the number of testcases pass/fail status.


   1. Recording test results
   2. Build step 'Publish JUnit test result report' changed build result to 
   UNSTABLE
   3. No emails triggered

Regards
Pradeep

-- 
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/4004b8fb-f6bd-4e10-9408-119c8efe6d11%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Log Parser Plugin Parser Rules Questions

2016-10-19 Thread Bubunia Patra
Thanks a lot Rachel thats really helped. I could see a interesting problem 
when there are JUNIT failures and so the build failed. But the "Parsed 
Console Output" captured only this ERROR: Publisher 'Publish JUnit test 
result report' failed: No test report files were found. Configuration 
error? 

Where as I was expecting it captures both the instances from the 
console.log :
ERROR: Publisher 'Publish JUnit test result report' failed: No test report 
files were found. Configuration error? 
ERROR: Publisher 'Editable Email Notification' aborted due to exception 
/not really/

# match line starting with 'error ', case-insensitive

error /(?i)^error /
error /ERROR: Publisher .*/
error /Test case .* failed/
error /java.lang .*/

# list of warnings here...
warning /[Ww]arning/
warning /WARNING/

# create a quick access link to lines in the report containing 'INFO'
info /INFO/
info /Finished all tests.*/


# each line containing 'BUILD' represents the start of a section for 
grouping errors and warnings found after the line.
# also creates a quick access link.

# each line containing 'BUILD' represents the start of a section for 
grouping errors and warnings found after the line.
# also creates a quick access link.
start /BUILD/

Console logs from Jenkins builds:
===
Started by user anonymous
Building on master in workspace /var/lib/jenkins/jobs/abc/workspace
No emails were triggered.
[workspace] $ /bin/sh -xe /tmp/hudson4161516826794033267.sh

[workspace] $ /bin/sh -xe /tmp/hudson4156565298504095007.sh
Build step 'Execute shell' marked build as failure
Archiving artifacts
Recording test results
ERROR: Publisher 'Publish JUnit test result report' failed: No test report 
files were found. Configuration error?
Sending e-mails to: bubunia2000s...@gmail.com
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any
ERROR: Publisher 'Editable Email Notification' aborted due to exception: 
java.lang.NoSuchMethodError: 
org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(Lhudson/model/Run;Lhudson/FilePath;Lhudson/model/TaskListener;Ljava/lang/String;ZLjava/util/List;)Ljava/lang/String;
at 
hudson.plugins.emailext.plugins.ContentBuilder.transformText(ContentBuilder.java:80)
at 
hudson.plugins.emailext.ExtendedEmailPublisher.setSubject(ExtendedEmailPublisher.java:706)
at 
hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:595)
at 
hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:355)
at 
hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:345)
at 
hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:253)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
at hudson.model.Build$BuildExecution.cleanUp(Build.java:195)
at hudson.model.Run.execute(Run.java:1791)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:374)
Finished: FAILURE

On Wednesday, October 19, 2016 at 2:42:20 AM UTC+5:30, Rachel Moreno wrote:
>
> Hi Bubunia,
>
> Parsing rules file could have this content:
>
> info /Finished all tests.*/
> error /Test case .* failed/
>
> And you could send *Parsed Console Output* with *Editable Email 
> Notification*:
>
>- Content Type: HTML
>- Default Content:
>
> 
> 
> 
> ${FILE, path="$WORKSPACE/../builds/$BUILD_NUMBER/log_ref.html"}
> 
> 
> ${FILE, path="$WORKSPACE/../builds/$BUILD_NUMBER/log_content.html"}
> 
> 
>
>
> I hope be useful.
>
> Best regards,
> Rachel
>
>
>
> El martes, 18 de octubre de 2016, 7:22:39 (UTC+2), Bubunia Patra escribió:
>>
>> Hi ,
>>
>> I want to use Log Parser Plugin with the following regular expression to 
>> be matched in the Jenkins console log.
>>
>>
>> Test case [id] failed
>> Test case [id] failed
>> Test case [id] failed
>>
>>
>> Finished all tests. Executed [id], pass [id], fail [id]
>>
>> One more thing is I want to get the contents of Error/Info etc in to a 
>> table and send across via email? Can I access through groovy script?
>>
>>  Can anyone help me in this regard?
>>
>> Regards
>> Pradeep
>>
>

-- 
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/508f6a88-4822-4f85-a79c-ccb0bf972834%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Log Parser Plugin Parser Rules Questions

2016-10-17 Thread Bubunia Patra
Hi ,

I want to use Log Parser Plugin with the following regular expression to be 
matched in the Jenkins console log.


Test case [id] failed
Test case [id] failed
Test case [id] failed


Finished all tests. Executed [id], pass [id], fail [id]

One more thing is I want to get the contents of Error/Info etc in to a 
table and send across via email? Can I access through groovy script?

 Can anyone help me in this regard?

Regards
Pradeep

-- 
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/2554efff-53c9-49b2-ab84-d07206735b01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Running Jenkins jobs in command line

2016-09-22 Thread Bubunia Patra
Hi all,

One of the opensource tool will trigger the Jenkins job from command line 
and update the results. I googled and found some articles:

http://techieroop.com/run-jenkins-build-from-command-line/
http://www.ittybittytalks.com/how-to-automate-your-jenkins-build-script/

Can some one tell me how effective running jenkins from command line based 
on that i can decide ?

Thanks in advance.

Regards
Pradeep

-- 
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/aafc2970-ee6d-4317-9d73-0bece74cbf69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins EMail Reporting

2016-09-21 Thread Bubunia Patra
Hi all,

I am looking for some way to email the test results from the Jenkins to the 
recipients in a nice format After my test executes the console logs are 
generated in jenkins. I have installed the extended E-mail Plugin for email 
and configured the smtp server. The test also generates the JUNIT.xml which 
contains Pass/Fail results but doesn't contain the failure reason which 
needs to be retrieved from the console logs.

The Email-Plugin emails the results but it is either truncated or not the 
format I want it. Is there any other plugin I need to use which will 
retrieve the failure reason from the console log and email the results 
similar to below:

I want Something like the below in a table  :

TestCase Name |  Status |  Link |  Failure Reason
==

Is there a better way or example for Email reporting in Jenkins to suffice 
my requirement? If so what are the other tools/plugins I should install and 
the way I can achieve this? I saw the customise email reporting can be 
achieved through jelly script. Can someone provide me an example jelly 
script for email reporting ?

https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin#Email-extplugin-Advancedconfiguration

I will appreciate if some one can help me in this regard?

Regards
Pradeep

-- 
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/9a902866-2bc9-44fe-86fa-5e63d5852552%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Log Parser and Reporting tool

2016-07-27 Thread Bubunia Patra
Hi all,
I was looking for a jenkins plugin that can parse the jenkins console 
logs after all the tests are run and put a report something as follows:

TestName : Status(Fail/Pass) : Error Message: LogPath (html link for 
testcaselog) format so that I can access the log by clicking on the html 
link for detailed analysis.

I have found some log management tools like graylogs/parser console/log 
parser etc which does different things . But I am confused which one to 
use. Can someone throw some light on it which one will serve my purpose?

Regards
Pradeep


-- 
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/44a1ce95-3e72-4364-9cd6-621e854b3534%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Rebooting the node from the Jenkins Master

2016-07-25 Thread Bubunia Patra
Hi all,
I have a Jenkins master and I triggered a reboot of the remote node. 
The master returns failure with error :
"icmp require root privillege" as jenkins uses jenkins user to reboot the 
remote node and it fails.

Does anyone throw some light if it can be done without changing the 
existing jenkins environment variables(JENKINS_USER)?

Regards
Pradeep

-- 
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/6cdbfaa4-9ebd-4624-8d61-e49c9b8b0dc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.