-
Notifications
You must be signed in to change notification settings - Fork 890
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Update Jenkis file with basic setup (#12)
Signed-off-by: Peter Nied <[email protected]>
- Loading branch information
Showing
1 changed file
with
16 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
} | ||
} |