-
Notifications
You must be signed in to change notification settings - Fork 92
/
Jenkinsfile
41 lines (40 loc) · 1.13 KB
/
Jenkinsfile
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
#!groovy
@Library('waluigi@release/7') _
mixedBeehiveFlow(
testPrefix: 'Tiny-Angular',
testDirs: [ "tinymce-angular-component/src/test/ts/browser" ],
platforms: [
[ browser: 'chrome', headless: true ],
[ browser: 'firefox', provider: 'aws', buckets: 1 ],
[ browser: 'safari', provider: 'lambdatest', os: 'macOS Sonoma', buckets: 1 ]
],
testContainer: [
tag: '20',
resourceRequestMemory: '4Gi',
resourceLimitCpu: '4',
resourceLimitMemory: '4Gi',
selenium: [ image: "selenium/standalone-chrome:127.0" ]
],
publishContainer: [
resourceRequestMemory: '4Gi',
resourceLimitMemory: '4Gi'
],
customSteps: {
stage("update storybook") {
def status = beehiveFlowStatus()
if (status.branchState == 'releaseReady' && status.isLatest) {
tinyGit.withGitHubSSHCredentials {
exec('yarn deploy-storybook')
}
} else {
echo "Skipping as is not latest release"
}
}
},
publish: {
sh "yarn build"
tinyNpm.withNpmPublishCredentials('dist/tinymce-angular') {
sh "yarn beehive-flow publish --working-dir dist/tinymce-angular"
}
}
)