Skip to content

Commit

Permalink
Enable PACT tests for renovate dependencies PR (#4263)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitinprabhuhmcts authored Jan 7, 2025
1 parent f0e6efd commit a4834e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Jenkinsfile_CNP
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ withPipeline(type, product, component) {
env.HEARINGS_ENABLED = "Yes"
env.ENVIRONMENT = "pr"
}

if(githubApi.getLabelsbyPattern(env.BRANCH_NAME, "dependencies").size() > 0){
enablePactAs([AppPipelineDsl.PactRoles.CONSUMER])
}

def tests = githubApi.getLabelsbyPattern(env.BRANCH_NAME, "test-suite")
env.TEST_SUITE = tests.size() > 0 ? tests.collect { it.replace("test-suite:", "@") }.join("|") : "@preview-pipeline"
Expand Down

0 comments on commit a4834e1

Please sign in to comment.