forked from tinymce/tinymce-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
32 lines (31 loc) · 917 Bytes
/
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
#!groovy
@Library('waluigi@release/7') _
beehiveFlowBuild(
container: [
tag: '18',
resourceRequestMemory: '4Gi',
resourceLimitCpu: '4',
resourceLimitMemory: '4Gi'
],
test: {
bedrockBrowsers(testDirs: [ "tinymce-angular-component/src/test/ts/browser" ])
},
customSteps: {
stage("storybook") {
def status = beehiveFlowStatus();
if (status.branchState == 'releaseReady' && status.isLatest) {
sshagent (credentials: ['ccde5b3d-cf13-4d70-88cf-ae1e6dfd4ef4']) {
sh 'yarn storybook-to-ghpages'
}
} else {
echo "Skipping publish as is not latest release"
sh 'yarn storybook-to-ghpages --dry-run'
}
}
},
publish: {
tinyNpm.withNpmPublishCredentials('dist/tinymce-angular') {
sh "yarn beehive-flow publish --working-dir dist/tinymce-angular"
}
}
)