Skip to content

Commit

Permalink
[CI] Update Jenkis file with basic setup (#12)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <petern@amazon.com>
  • Loading branch information
mihirsoni authored and peternied committed Mar 13, 2021
1 parent 60c55a3 commit c880066
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 c880066

Please sign in to comment.