Hi Socrates,
we have observed one more thing:
When we provide values for parameters recipientsList and subject in testResultsAggregator step, the testResultsAggregator step fails with below error
Generate Email Report
Error Occurred: Couldn't connect to host, port: localhost, 25; timeout 60000Sent message successfully to :
Error Occurred : com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout 60000;
nested exception is:
java.net.ConnectException: Connection refused com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout 60000;
nested exception is:
java.net.ConnectException: Connection refused
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2210)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:722)
at jakarta.mail.Service.connect(Service.java:342)
at jakarta.mail.Service.connect(Service.java:222)
at jakarta.mail.Service.connect(Service.java:171)
at jakarta.mail.Transport.send0(Transport.java:230)
at jakarta.mail.Transport.send(Transport.java:100)
at com.jenkins.testresultsaggregator.reporter.MailNotification.sendMessage(MailNotification.java:211)
at com.jenkins.testresultsaggregator.reporter.MailNotification.send(MailNotification.java:139)
at com.jenkins.testresultsaggregator.reporter.Reporter.publishResuts(Reporter.java:88)
at com.jenkins.testresultsaggregator.TestResultsAggregator.perform(TestResultsAggregator.java:204)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:101)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:71)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.net.ConnectException: Connection refused
at java.base/sun.nio.ch.Net.pollConnect(Native Method)
at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)
at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
at java.base/java.net.Socket.connect(Socket.java:633)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:333)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:214)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2160)
... 18 more
But when I trigger the next build after removing parameters recipientsList and subject in testResultsAggregator step, we get correct value for Total Tests and Success/Fail Tests, but these values are of the last build not the current one.
For example, if we have executed 5 tests in the last build, out of which 3 passed and 2 failed.
And in the current build we have run 10 tests, out of which 7 passed and 3 failed.
On "Job Results Aggregated" page, we see the summary as follows:
Total Tests : 5(+5)
Failed Tests : 2(+2)
Aborted Tests : 0
Success Tests : 3(+3)
But, the expected summary is as follows:
Total Tests : 10(+10)
Failed Tests : 3(+3)
Aborted Tests : 0
Success Tests : 7(+7)
Hi Piyush, can you please share a part from the JSON response that you'll find if you open in a browser the URL of the job and then add
You should see a part of the JSON like the following :