-
Notifications
You must be signed in to change notification settings - Fork 7
/
Jenkinsfile_CNP
57 lines (45 loc) · 1.65 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
45
46
47
48
49
50
51
52
53
54
55
56
57
#!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.")
}
}
afterAlways("smoketest:preview") {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'test/e2e/smoke-output/**/*.png'
}
afterAlways("functionalTest:preview") {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'test/e2e/functional-output/**/*.png'
}
afterAlways("smoketest:aat") {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'test/e2e/smoke-output/**/*.png'
}
afterAlways("functionalTest:aat") {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'test/e2e/functional-output/**/*.png'
}
}