Skip to content

Commit 7cc31ff

Browse files
authored
[CI] Update Jenkis file with basic setup (#12)
1 parent ec12264 commit 7cc31ff

File tree

1 file changed

+16
-19
lines changed

1 file changed

+16
-19
lines changed

Jenkinsfile

+16-19
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
1-
#!/bin/groovy
2-
3-
library 'kibana-pipeline-library'
4-
kibanaLibrary.load()
5-
6-
kibanaPipeline(timeoutMinutes: 155, checkPrChanges: true, setCommitStatus: true) {
7-
slackNotifications.onFailure(disabled: !params.NOTIFY_ON_FAILURE) {
8-
githubPr.withDefaultPrComments {
9-
ciStats.trackBuild {
10-
catchError {
11-
retryable.enable()
12-
kibanaPipeline.allCiTasks()
13-
}
14-
}
1+
node {
2+
label 'website'
3+
sh "env"
4+
echo "BRANCH: ${scmVars.GIT_BRANCH}, COMMIT: ${scmVars.GIT_COMMIT}"
5+
stage('bootstrap') {
6+
sh 'yarn kbn bootstrap'
7+
}
8+
stage('unit tests') {
9+
sh 'yarn test:jest'
10+
}
11+
stage('integration tests') {
12+
sh 'yarn test:jest_integration'
13+
sh 'yarn test:mocha'
14+
}
15+
stage('build'){
16+
sh 'yarn build --oss --skip-os-packages'
1517
}
16-
}
17-
18-
if (params.NOTIFY_ON_FAILURE) {
19-
kibanaPipeline.sendMail()
20-
}
2118
}

0 commit comments

Comments
 (0)