Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pipeline {
JOB_GCS_EXT_CREDENTIALS = 'fleet-ci-gcs-plugin-file-credentials'
ELASTIC_PACKAGE_GCP_SECRET = 'secret/observability-team/ci/service-account/elastic-package-gcp'
ELASTIC_OBSERVABILITY_PROJECT_ID = 'elastic-observability'
BUILDKITE_MERGE_COMMIT = "79ee1738578deac17f8f5caf8d925db6244ab6df"
}
options {
timeout(time: 1, unit: 'HOURS')
Expand Down Expand Up @@ -55,6 +56,27 @@ pipeline {
/**
Check the source code.
*/
stage('Check it contains Buildkite pipeline') {
steps {
cleanup()
dir("${BASE_DIR}"){
script {
githubEnv()
r = sh(label: 'Check', returnStatus: true, script: '''
echo "Base commit: ${GIT_BASE_COMMIT}"
git log --format=%H "${GIT_BASE_COMMIT}" | grep "${BUILDKITE_MERGE_COMMIT}"
''')
if (r != 0) {
echo("You should update your branch to include latest buildkite pipelines")
sh(label: 'Exit', script: 'exit 1')
}
}
}
}
}
/**
Check the source code.
*/
stage('Check static') {
steps {
cleanup()
Expand Down