Skip to content

Commit

Permalink
[CI] Update Jenkis file with basic setup (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
mihirsoni authored Feb 4, 2021
1 parent ec12264 commit 7cc31ff
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
#!/bin/groovy

library 'kibana-pipeline-library'
kibanaLibrary.load()

kibanaPipeline(timeoutMinutes: 155, checkPrChanges: true, setCommitStatus: true) {
slackNotifications.onFailure(disabled: !params.NOTIFY_ON_FAILURE) {
githubPr.withDefaultPrComments {
ciStats.trackBuild {
catchError {
retryable.enable()
kibanaPipeline.allCiTasks()
}
}
node {
label 'website'
sh "env"
echo "BRANCH: ${scmVars.GIT_BRANCH}, COMMIT: ${scmVars.GIT_COMMIT}"
stage('bootstrap') {
sh 'yarn kbn bootstrap'
}
stage('unit tests') {
sh 'yarn test:jest'
}
stage('integration tests') {
sh 'yarn test:jest_integration'
sh 'yarn test:mocha'
}
stage('build'){
sh 'yarn build --oss --skip-os-packages'
}
}

if (params.NOTIFY_ON_FAILURE) {
kibanaPipeline.sendMail()
}
}

0 comments on commit 7cc31ff

Please sign in to comment.