Skip to content

Commit

Permalink
Merge pull request #293 from hmcts/checkpactreports
Browse files Browse the repository at this point in the history
add pact test report
  • Loading branch information
shreedhar-hmcts authored Apr 26, 2021
2 parents 02cf0e7 + 297d386 commit 8cc1404
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Jenkinsfile_CNP
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ withPipeline(type, product, component) {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/site/serenity/**/*'
}

after('pact-provider-verification') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'build/reports/tests/**/*'
}

after('pact-consumer-tests') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'build/reports/tests/**/*'
}

onMaster() {
enablePactAs([
AppPipelineDsl.PactRoles.PROVIDER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
@Provider("referenceData_caseworkerRefUsers")
@PactBroker(scheme = "${PACT_BROKER_SCHEME:http}",
host = "${PACT_BROKER_URL:localhost}", port = "${PACT_BROKER_PORT:80}", consumerVersionSelectors = {
@VersionSelector(tag = "Dev")})
@VersionSelector(tag = "master")})
@Import(CaseWorkerProviderTestConfiguration.class)
@SpringBootTest(properties = {"crd.publisher.caseWorkerDataPerMessage=1"})
@IgnoreNoPactsToVerify
Expand Down

0 comments on commit 8cc1404

Please sign in to comment.