Skip to content

Commit

Permalink
chore(ci): reduce test results publishing
Browse files Browse the repository at this point in the history
* publish tests only on stage failure

Related to CAM-13467
  • Loading branch information
yanavasileva committed May 12, 2021
1 parent 6ca26d6 commit 0e5d20e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 50 deletions.
22 changes: 6 additions & 16 deletions .ci/daily/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pipeline {
runSteps: {
cambpmRunMaven('distro/wildfly/subsystem', 'test', runtimeStash: true)
},
postAlways: {
postFailure: {
cambpmPublishTestResult()
}
])
Expand All @@ -107,10 +107,8 @@ pipeline {
runSteps: {
cambpmRunMavenByStageType('upgrade-database', 'h2')
},
postAlways: {
cambpmPublishTestResult()
},
postFailure: {
cambpmPublishTestResult()
cambpmAddFailedStageType(failedStageTypes, 'upgrade-database')
}
])
Expand All @@ -128,10 +126,8 @@ pipeline {
runSteps: {
cambpmRunMavenByStageType('instance-migration', 'h2')
},
postAlways: {
cambpmPublishTestResult()
},
postFailure: {
cambpmPublishTestResult()
cambpmAddFailedStageType(failedStageTypes, 'instance-migration')
}
])
Expand All @@ -149,10 +145,8 @@ pipeline {
runSteps: {
cambpmRunMavenByStageType('old-engine', 'h2')
},
postAlways: {
cambpmPublishTestResult()
},
postFailure: {
cambpmPublishTestResult()
cambpmAddFailedStageType(failedStageTypes, 'old-engine')
}
])
Expand All @@ -170,10 +164,8 @@ pipeline {
runSteps: {
cambpmRunMavenByStageType('rolling-update', 'h2')
},
postAlways: {
cambpmPublishTestResult()
},
postFailure: {
cambpmPublishTestResult()
cambpmAddFailedStageType(failedStageTypes, 'rolling-update')
}
])
Expand All @@ -189,10 +181,8 @@ pipeline {
runSteps: {
cambpmRunMavenByStageType('large-data-tests', 'h2')
},
postAlways: {
cambpmPublishTestResult()
},
postFailure: {
cambpmPublishTestResult()
cambpmAddFailedStageType(failedStageTypes, 'large-data-tests')
}
])
Expand Down
59 changes: 25 additions & 34 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ pipeline {
// withNpm: true)
// }
}
},
postFailure: {
cambpmPublishTestResult()
}
])

Expand All @@ -127,10 +130,8 @@ pipeline {
runSteps: {
cambpmRunMavenByStageType('engine-unit', 'h2')
},
postAlways: {
cambpmPublishTestResult()
},
postFailure: {
cambpmPublishTestResult()
cambpmAddFailedStageType(failedStageTypes, 'engine-unit')
}
])
Expand All @@ -148,10 +149,8 @@ pipeline {
runSteps: {
cambpmRunMavenByStageType('engine-unit-authorizations', 'h2')
},
postAlways: {
cambpmPublishTestResult()
},
postFailure: {
cambpmPublishTestResult()
cambpmAddFailedStageType(failedStageTypes, 'engine-unit-authorizations')
}
])
Expand All @@ -169,10 +168,8 @@ pipeline {
runSteps: {
cambpmRunMavenByStageType('webapp-unit', 'h2')
},
postAlways: {
cambpmPublishTestResult()
},
postFailure: {
cambpmPublishTestResult()
cambpmAddFailedStageType(failedStageTypes, 'webapp-unit')
}
])
Expand All @@ -190,10 +187,8 @@ pipeline {
runSteps: {
cambpmRunMavenByStageType('webapp-unit-authorizations', 'h2')
},
postAlways: {
cambpmPublishTestResult()
},
postFailure: {
cambpmPublishTestResult()
cambpmAddFailedStageType(failedStageTypes, 'webapp-unit-authorizations')
}
])
Expand All @@ -211,7 +206,7 @@ pipeline {
runSteps: {
cambpmRunMaven('engine/', 'verify -Pcfghistorynone', runtimeStash: true)
},
postAlways: {
postFailure: {
cambpmPublishTestResult()
}
])
Expand All @@ -229,7 +224,7 @@ pipeline {
runSteps: {
cambpmRunMaven('engine/', 'verify -Pcfghistoryaudit', runtimeStash: true)
},
postAlways: {
postFailure: {
cambpmPublishTestResult()
},
])
Expand All @@ -247,7 +242,7 @@ pipeline {
runSteps: {
cambpmRunMaven('engine/', 'verify -Pcfghistoryactivity', runtimeStash: true)
},
postAlways: {
postFailure: {
cambpmPublishTestResult()
}
])
Expand All @@ -265,7 +260,7 @@ pipeline {
runSteps: {
cambpmRunMaven('qa/', 'clean install -Ptomcat,postgresql,engine-integration', runtimeStash: true, archiveStash: true)
},
postAlways: {
postFailure: {
cambpmPublishTestResult()
}
])
Expand All @@ -283,10 +278,8 @@ pipeline {
runSteps: {
cambpmRunMaven('qa/', 'clean install -Pwildfly,postgresql,engine-integration', runtimeStash: true, archiveStash: true)
},
postAlways: {
cambpmPublishTestResult()
},
postFailure: {
cambpmPublishTestResult()
cambpmAddFailedStageType(failedStageTypes, 'engine-IT-wildfly')
cambpmArchiveArtifacts('qa/wildfly-runtime/target/**/standalone/log/server.log')
}
Expand All @@ -303,10 +296,8 @@ pipeline {
runSteps: {
cambpmRunMaven('qa/', 'clean install -Pwildfly,postgresql,postgresql-xa,engine-integration', runtimeStash: true, archiveStash: true)
},
postAlways: {
cambpmPublishTestResult()
},
postFailure: {
cambpmPublishTestResult()
cambpmArchiveArtifacts('qa/wildfly-runtime/target/**/standalone/log/server.log')
}
])
Expand All @@ -324,7 +315,7 @@ pipeline {
runSteps: {
cambpmRunMaven('qa/', 'clean install -Ptomcat,h2,webapps-integration', runtimeStash: true, archiveStash: true)
},
postAlways: {
postFailure: {
cambpmPublishTestResult()
}
])
Expand All @@ -342,7 +333,7 @@ pipeline {
runSteps: {
cambpmRunMaven('qa/', 'clean install -Pwildfly,h2,webapps-integration', runtimeStash: true, archiveStash: true)
},
postAlways: {
postFailure: {
cambpmPublishTestResult()
}
])
Expand All @@ -358,7 +349,7 @@ pipeline {
runSteps: {
cambpmRunMaven('qa/', 'clean install -Ptomcat-vanilla,webapps-integration-sa', runtimeStash: true, archiveStash: true)
},
postAlways: {
postFailure: {
cambpmPublishTestResult()
}
])
Expand All @@ -374,7 +365,7 @@ pipeline {
runSteps: {
cambpmRunMaven('qa/', 'clean install -Pwildfly-vanilla,webapps-integration-sa', runtimeStash: true, archiveStash: true)
},
postAlways: {
postFailure: {
cambpmPublishTestResult()
}
])
Expand All @@ -392,7 +383,7 @@ pipeline {
runSteps: {
cambpmRunMaven('distro/run/', 'clean install -Pintegration-test-camunda-run', runtimeStash: true, archiveStash: true, qaStash: true)
},
postAlways: {
postFailure: {
cambpmPublishTestResult()
}
])
Expand All @@ -410,7 +401,7 @@ pipeline {
runSteps: {
cambpmRunMaven('spring-boot-starter/', 'clean install -Pintegration-test-spring-boot-starter', runtimeStash: true, archiveStash: true, qaStash: true)
},
postAlways: {
postFailure: {
cambpmPublishTestResult()
}
])
Expand Down Expand Up @@ -477,7 +468,7 @@ pipeline {
runSteps: {
cambpmRunMaven('engine/', 'clean test -Pcheck-plugins', runtimeStash: true)
},
postAlways: {
postFailure: {
cambpmPublishTestResult()
}
])
Expand All @@ -495,7 +486,7 @@ pipeline {
runSteps: {
cambpmRunMaven('engine/', 'clean test -Pdb-table-prefix', runtimeStash: true)
},
postAlways: {
postFailure: {
cambpmPublishTestResult()
}
])
Expand All @@ -516,7 +507,7 @@ pipeline {
runSteps: {
cambpmRunMaven('webapps/', 'clean test -Pdb-table-prefix -Dskip.frontend.build=true', runtimeStash: true)
},
postAlways: {
postFailure: {
cambpmPublishTestResult()
}
])
Expand All @@ -537,7 +528,7 @@ pipeline {
runSteps: {
cambpmRunMaven('.', 'clean verify -Pcheck-engine,wls-compatibility,jersey', runtimeStash: true)
},
postAlways: {
postFailure: {
cambpmPublishTestResult()
}
])
Expand All @@ -555,7 +546,7 @@ pipeline {
runSteps: {
cambpmRunMaven('qa/', 'clean install -Pwildfly-domain,h2,engine-integration', runtimeStash: true, archiveStash: true)
},
postAlways: {
postFailure: {
cambpmPublishTestResult()
}
])
Expand All @@ -573,7 +564,7 @@ pipeline {
runSteps: {
cambpmRunMaven('qa/', 'clean install -Pwildfly,wildfly-servlet,h2,engine-integration', runtimeStash: true, archiveStash: true)
},
postAlways: {
postFailure: {
cambpmPublishTestResult()
}
])
Expand Down

0 comments on commit 0e5d20e

Please sign in to comment.