-
Notifications
You must be signed in to change notification settings - Fork 7
/
Jenkinsfile_CNP
42 lines (33 loc) · 1.11 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
#!groovy
properties(
[[$class: 'GithubProjectProperty', projectUrlStr: 'https://github.com/hmcts/submit-your-appeal'],
pipelineTriggers([[$class: 'GitHubPushTrigger']])]
)
@Library("Infrastructure")
def product = "sscs"
def component = "tribunals-frontend"
def yarnBuilder = new uk.gov.hmcts.contino.YarnBuilder(this)
def branchesToSync = ['demo', 'ithc', 'perftest']
withPipeline("nodejs", product, component) {
afterSuccess('build') {
yarnBuilder.yarn('build')
}
enableAksStagingDeployment()
disableLegacyDeployment()
syncBranchesWithMaster(branchesToSync)
afterSuccess('akschartsinstall'){
onMaster {
// Vars needed for AKS testing in path to live
env.CHUNKS = 4
}
}
afterSuccess("smoketest:preview") {
stage('Application URLs') {
def AppDevUrl = env.TEST_URL.replace("https", "http")
AppDevUrl = AppDevUrl.replace("-staging.", ".")
println "Application URL: " + AppDevUrl
println "Healthcheck URL: " + AppDevUrl + "/health"
println "Kudu URL: " + AppDevUrl.replace(".service.", ".scm.service.")
}
}
}