I'm not sure if this is a problem in xUnit or pipeline multibranch plugin. Please reassign this as required.
We've got a Multibranch Pipeline project and we upload various test results using the xUnit plugin. It's somewhat like this:
stage("Reachable stage") {
if (some condition)
return; // Skip all subsequent stages. This appears to cause the problem.
}
stage("Potentially failing or unreachable stage") {
try
{
// This might fail and abort consequent stages.
}
finally
{ // We still want all tests and artifacts that we can get, but we only care for artifacts whose unit tests were executed.
xunit testTimeMargin: '2000', thresholdMode: 1, thresholds: [skipped(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0'), failed(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0')], tools: [xUnitDotNet(deleteOutputFiles: true, failIfNotNew: false, pattern: 'unittests.xml', skipNoTestFiles: false, stopProcessingIfError: true)]
archiveArtifacts artifacts: '...', defaultExcludes: false
xunit testTimeMargin: '2000', thresholdMode: 1, thresholds: [skipped(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0'), failed(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0')], tools: [xUnitDotNet(deleteOutputFiles: true, failIfNotNew: false, pattern: 'boxtests.xml', skipNoTestFiles: false, stopProcessingIfError: true)]
}
}
stage("Potentially unreachable stage") {
}
The trend chart shows up when builds fail with or without tests or succeed with tests, but the chart disappears when the build skips stages which record the tests. To be entirely honest, I'm not sure what the current behavior is exactly (it's inconsistent).
This should be fixed. As long as there are test results in any builds at all, they should be displayed regardless of test results in the latest build.
Original:
I'm not sure if this a problem in xUnit plugin. We've got a Multibranch Pipeline project and we upload various test results using the xUnit plugin. It's somewhat like this:
{code:java}
stage("Reachable stage") {
if (some condition)
return; // Skip all subsequent stages. This appears to cause the problem.
}
stage("Potentially failing or unreachable stage") {
try
{
// This might fail and abort consequent stages.
}
finally
{ // We still want all tests and artifacts that we can get, but we only care for artifacts whose unit tests were executed.
xunit testTimeMargin: '2000', thresholdMode: 1, thresholds: [skipped(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0'), failed(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0')], tools: [xUnitDotNet(deleteOutputFiles: true, failIfNotNew: false, pattern: 'unittests.xml', skipNoTestFiles: false, stopProcessingIfError: true)]
archiveArtifacts artifacts: '...', defaultExcludes: false
xunit testTimeMargin: '2000', thresholdMode: 1, thresholds: [skipped(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0'), failed(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0')], tools: [xUnitDotNet(deleteOutputFiles: true, failIfNotNew: false, pattern: 'boxtests.xml', skipNoTestFiles: false, stopProcessingIfError: true)]
}
}
stage("Potentially unreachable stage") {
}
{code}
The trend chart shows up when builds fail with or without tests or succeed with tests, but the chart disappears when the build skips stages which record the tests.
This should be fixed. As long as there are test results in any builds at all, they should be displayed regardless of test results in the latest build.
New:
I'm not sure if this is a problem in xUnit plugin. We've got a Multibranch Pipeline project and we upload various test results using the xUnit plugin. It's somewhat like this:
{code:java}
stage("Reachable stage") {
if (some condition)
return; // Skip all subsequent stages. This appears to cause the problem.
}
stage("Potentially failing or unreachable stage") {
try
{
// This might fail and abort consequent stages.
}
finally
{ // We still want all tests and artifacts that we can get, but we only care for artifacts whose unit tests were executed.
xunit testTimeMargin: '2000', thresholdMode: 1, thresholds: [skipped(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0'), failed(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0')], tools: [xUnitDotNet(deleteOutputFiles: true, failIfNotNew: false, pattern: 'unittests.xml', skipNoTestFiles: false, stopProcessingIfError: true)]
archiveArtifacts artifacts: '...', defaultExcludes: false
xunit testTimeMargin: '2000', thresholdMode: 1, thresholds: [skipped(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0'), failed(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0')], tools: [xUnitDotNet(deleteOutputFiles: true, failIfNotNew: false, pattern: 'boxtests.xml', skipNoTestFiles: false, stopProcessingIfError: true)]
}
}
stage("Potentially unreachable stage") {
}
{code}
The trend chart shows up when builds fail with or without tests or succeed with tests, but the chart disappears when the build skips stages which record the tests.
This should be fixed. As long as there are test results in any builds at all, they should be displayed regardless of test results in the latest build.
Original:
I'm not sure if this is a problem in xUnit plugin. We've got a Multibranch Pipeline project and we upload various test results using the xUnit plugin. It's somewhat like this:
{code:java}
stage("Reachable stage") {
if (some condition)
return; // Skip all subsequent stages. This appears to cause the problem.
}
stage("Potentially failing or unreachable stage") {
try
{
// This might fail and abort consequent stages.
}
finally
{ // We still want all tests and artifacts that we can get, but we only care for artifacts whose unit tests were executed.
xunit testTimeMargin: '2000', thresholdMode: 1, thresholds: [skipped(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0'), failed(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0')], tools: [xUnitDotNet(deleteOutputFiles: true, failIfNotNew: false, pattern: 'unittests.xml', skipNoTestFiles: false, stopProcessingIfError: true)]
archiveArtifacts artifacts: '...', defaultExcludes: false
xunit testTimeMargin: '2000', thresholdMode: 1, thresholds: [skipped(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0'), failed(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0')], tools: [xUnitDotNet(deleteOutputFiles: true, failIfNotNew: false, pattern: 'boxtests.xml', skipNoTestFiles: false, stopProcessingIfError: true)]
}
}
stage("Potentially unreachable stage") {
}
{code}
The trend chart shows up when builds fail with or without tests or succeed with tests, but the chart disappears when the build skips stages which record the tests.
This should be fixed. As long as there are test results in any builds at all, they should be displayed regardless of test results in the latest build.
New:
I'm not sure if this is a problem in xUnit plugin. Please reassign this as required.
We've got a Multibranch Pipeline project and we upload various test results using the xUnit plugin. It's somewhat like this:
{code:java}
stage("Reachable stage") {
if (some condition)
return; // Skip all subsequent stages. This appears to cause the problem.
}
stage("Potentially failing or unreachable stage") {
try
{
// This might fail and abort consequent stages.
}
finally
{ // We still want all tests and artifacts that we can get, but we only care for artifacts whose unit tests were executed.
xunit testTimeMargin: '2000', thresholdMode: 1, thresholds: [skipped(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0'), failed(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0')], tools: [xUnitDotNet(deleteOutputFiles: true, failIfNotNew: false, pattern: 'unittests.xml', skipNoTestFiles: false, stopProcessingIfError: true)]
archiveArtifacts artifacts: '...', defaultExcludes: false
xunit testTimeMargin: '2000', thresholdMode: 1, thresholds: [skipped(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0'), failed(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0')], tools: [xUnitDotNet(deleteOutputFiles: true, failIfNotNew: false, pattern: 'boxtests.xml', skipNoTestFiles: false, stopProcessingIfError: true)]
}
}
stage("Potentially unreachable stage") {
}
{code}
The trend chart shows up when builds fail with or without tests or succeed with tests, but the chart disappears when the build skips stages which record the tests.
This should be fixed. As long as there are test results in any builds at all, they should be displayed regardless of test results in the latest build.
Original:
I'm not sure if this is a problem in xUnit plugin. Please reassign this as required.
We've got a Multibranch Pipeline project and we upload various test results using the xUnit plugin. It's somewhat like this:
{code:java}
stage("Reachable stage") {
if (some condition)
return; // Skip all subsequent stages. This appears to cause the problem.
}
stage("Potentially failing or unreachable stage") {
try
{
// This might fail and abort consequent stages.
}
finally
{ // We still want all tests and artifacts that we can get, but we only care for artifacts whose unit tests were executed.
xunit testTimeMargin: '2000', thresholdMode: 1, thresholds: [skipped(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0'), failed(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0')], tools: [xUnitDotNet(deleteOutputFiles: true, failIfNotNew: false, pattern: 'unittests.xml', skipNoTestFiles: false, stopProcessingIfError: true)]
archiveArtifacts artifacts: '...', defaultExcludes: false
xunit testTimeMargin: '2000', thresholdMode: 1, thresholds: [skipped(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0'), failed(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0')], tools: [xUnitDotNet(deleteOutputFiles: true, failIfNotNew: false, pattern: 'boxtests.xml', skipNoTestFiles: false, stopProcessingIfError: true)]
}
}
stage("Potentially unreachable stage") {
}
{code}
The trend chart shows up when builds fail with or without tests or succeed with tests, but the chart disappears when the build skips stages which record the tests.
This should be fixed. As long as there are test results in any builds at all, they should be displayed regardless of test results in the latest build.
New:
I'm not sure if this is a problem in xUnit plugin. Please reassign this as required.
We've got a Multibranch Pipeline project and we upload various test results using the xUnit plugin. It's somewhat like this:
{code:java}
stage("Reachable stage") {
if (some condition)
return; // Skip all subsequent stages. This appears to cause the problem.
}
stage("Potentially failing or unreachable stage") {
try
{
// This might fail and abort consequent stages.
}
finally
{ // We still want all tests and artifacts that we can get, but we only care for artifacts whose unit tests were executed.
xunit testTimeMargin: '2000', thresholdMode: 1, thresholds: [skipped(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0'), failed(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0')], tools: [xUnitDotNet(deleteOutputFiles: true, failIfNotNew: false, pattern: 'unittests.xml', skipNoTestFiles: false, stopProcessingIfError: true)]
archiveArtifacts artifacts: '...', defaultExcludes: false
xunit testTimeMargin: '2000', thresholdMode: 1, thresholds: [skipped(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0'), failed(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0')], tools: [xUnitDotNet(deleteOutputFiles: true, failIfNotNew: false, pattern: 'boxtests.xml', skipNoTestFiles: false, stopProcessingIfError: true)]
}
}
stage("Potentially unreachable stage") {
}
{code}
The trend chart shows up when builds fail with or without tests or succeed with tests, but the chart disappears when the build skips stages which record the tests. To be entirely honest, I'm not sure what the current behavior is exactly (it's inconsistent).
This should be fixed. As long as there are test results in any builds at all, they should be displayed regardless of test results in the latest build.
Original:
I'm not sure if this is a problem in xUnit plugin. Please reassign this as required.
We've got a Multibranch Pipeline project and we upload various test results using the xUnit plugin. It's somewhat like this:
{code:java}
stage("Reachable stage") {
if (some condition)
return; // Skip all subsequent stages. This appears to cause the problem.
}
stage("Potentially failing or unreachable stage") {
try
{
// This might fail and abort consequent stages.
}
finally
{ // We still want all tests and artifacts that we can get, but we only care for artifacts whose unit tests were executed.
xunit testTimeMargin: '2000', thresholdMode: 1, thresholds: [skipped(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0'), failed(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0')], tools: [xUnitDotNet(deleteOutputFiles: true, failIfNotNew: false, pattern: 'unittests.xml', skipNoTestFiles: false, stopProcessingIfError: true)]
archiveArtifacts artifacts: '...', defaultExcludes: false
xunit testTimeMargin: '2000', thresholdMode: 1, thresholds: [skipped(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0'), failed(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0')], tools: [xUnitDotNet(deleteOutputFiles: true, failIfNotNew: false, pattern: 'boxtests.xml', skipNoTestFiles: false, stopProcessingIfError: true)]
}
}
stage("Potentially unreachable stage") {
}
{code}
The trend chart shows up when builds fail with or without tests or succeed with tests, but the chart disappears when the build skips stages which record the tests. To be entirely honest, I'm not sure what the current behavior is exactly (it's inconsistent).
This should be fixed. As long as there are test results in any builds at all, they should be displayed regardless of test results in the latest build.
New:
I'm not sure if this is a problem in xUnit or pipeline multibranch plugin. Please reassign this as required.
We've got a Multibranch Pipeline project and we upload various test results using the xUnit plugin. It's somewhat like this:
{code:java}
stage("Reachable stage") {
if (some condition)
return; // Skip all subsequent stages. This appears to cause the problem.
}
stage("Potentially failing or unreachable stage") {
try
{
// This might fail and abort consequent stages.
}
finally
{ // We still want all tests and artifacts that we can get, but we only care for artifacts whose unit tests were executed.
xunit testTimeMargin: '2000', thresholdMode: 1, thresholds: [skipped(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0'), failed(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0')], tools: [xUnitDotNet(deleteOutputFiles: true, failIfNotNew: false, pattern: 'unittests.xml', skipNoTestFiles: false, stopProcessingIfError: true)]
archiveArtifacts artifacts: '...', defaultExcludes: false
xunit testTimeMargin: '2000', thresholdMode: 1, thresholds: [skipped(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0'), failed(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0')], tools: [xUnitDotNet(deleteOutputFiles: true, failIfNotNew: false, pattern: 'boxtests.xml', skipNoTestFiles: false, stopProcessingIfError: true)]
}
}
stage("Potentially unreachable stage") {
}
{code}
The trend chart shows up when builds fail with or without tests or succeed with tests, but the chart disappears when the build skips stages which record the tests. To be entirely honest, I'm not sure what the current behavior is exactly (it's inconsistent).
This should be fixed. As long as there are test results in any builds at all, they should be displayed regardless of test results in the latest build.
I tried to locate where the job trend chart disappears, but can't. Can someone point me at where this behavior is exactly so I can nuke it out of existence?
Edgars Batna
added a comment - I tried to locate where the job trend chart disappears, but can't. Can someone point me at where this behavior is exactly so I can nuke it out of existence?
[{"id":-1,"name":"My open issues","jql":"assignee = currentUser() AND resolution = Unresolved order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":true},{"id":-2,"name":"Reported by me","jql":"reporter = currentUser() order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":true},{"id":-4,"name":"All issues","jql":"order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-5,"name":"Open issues","jql":"resolution = Unresolved order by priority DESC,updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-9,"name":"Done issues","jql":"statusCategory = Done order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-3,"name":"Viewed recently","jql":"issuekey in issueHistory() order by lastViewed DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-6,"name":"Created recently","jql":"created >= -1w order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-7,"name":"Resolved recently","jql":"resolutiondate >= -1w order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-8,"name":"Updated recently","jql":"updated >= -1w order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false}]
The behavior of trend result is part of junit plugin.