generated from hmcts/spring-boot-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Jenkinsfile_CNP
44 lines (38 loc) · 1.12 KB
/
Jenkinsfile_CNP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!groovy
import uk.gov.hmcts.contino.GithubAPI
properties(
[
[
$class : 'GithubProjectProperty',
projectUrlStr: 'https://github.com/hmcts/ccd-test-stubs-service'
],
pipelineTriggers([[$class: 'GitHubPushTrigger']])
]
)
@Library("Infrastructure")
def type = "java"
def product = "ccd"
def component = "test-stubs-service"
def branchesToSync = ['demo', 'ithc', 'perftest']
// Prevent Docker hub rate limit errors by ensuring that testcontainers uses images from hmctspublic ACR
env.TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX = "hmctspublic.azurecr.io/imported/"
withPipeline(type, product, component) {
onMaster {
enableSlackNotifications('#ccd-master-builds')
env.WIREMOCK_SERVER_MAPPINGS_PATH = "wiremock"
afterAlways('smoketest:aat') {
echo "Disabling prod build"
sh "rm -rf infrastructure/"
}
}
onDemo {
sharedInfrastructurePipeline('ccd', 'demo', 'demo')
enableSlackNotifications('#ccd-demo-builds')
}
onPR {
enableSlackNotifications('#ccd-pr-builds')
}
syncBranchesWithMaster(branchesToSync)
enableAksStagingDeployment()
disableLegacyDeploymentOnAAT()
}