|
| 1 | +#!/bin/bash |
| 2 | + |
| 3 | +# |
| 4 | +# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one |
| 5 | +# or more contributor license agreements. Licensed under the "Elastic License |
| 6 | +# 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side |
| 7 | +# Public License v 1"; you may not use this file except in compliance with, at |
| 8 | +# your election, the "Elastic License 2.0", the "GNU Affero General Public |
| 9 | +# License v3.0 only", or the "Server Side Public License, v 1". |
| 10 | +# |
| 11 | + |
| 12 | +set -euo pipefail |
| 13 | + |
| 14 | +#TODO: all current branches? Only the "last" one? (9.0 in this case?) |
| 15 | +#source .buildkite/scripts/branches.sh |
| 16 | +#for BRANCH in "${BRANCHES[@]}"; do |
| 17 | + |
| 18 | +BRANCH=9.0 |
| 19 | + |
| 20 | +MANIFEST="$(curl -s https://artifacts.elastic.co/releases/TfEVhiaBGqR64ie0g0r0uUwNAbEQMu1Z/future-releases/stack.json | |
| 21 | +jq ".releases[] | |
| 22 | +select(.branch == \"$BRANCH\") | |
| 23 | +select(.active_release == true) | |
| 24 | +.build_candidates | |
| 25 | +to_entries | |
| 26 | +sort_by(.value.completed_at) | |
| 27 | +last | |
| 28 | +.value.manifest_url")" |
| 29 | + |
| 30 | +BC_COMMIT_HASH="$(eval "curl -s $MANIFEST" | jq .projects.elasticsearch.commit_hash)" |
| 31 | + |
| 32 | +echo "steps: |
| 33 | + - group: bc |
| 34 | + steps: |
| 35 | + - label: $BRANCH / bc-bwc |
| 36 | + command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-file-fingerprints -Dtests.bwc.main.version=9.1.0 -Dtests.bwc.refspec.main=$BC_COMMIT_HASH -Dtests.jvm.argline=\"-Des.serverless_transport=true\" |
| 37 | + timeout_in_minutes: 300 |
| 38 | + agents: |
| 39 | + provider: gcp |
| 40 | + image: family/elasticsearch-ubuntu-2004 |
| 41 | + machineType: n1-standard-32 |
| 42 | + buildDirectory: /dev/shm/bk |
| 43 | + preemptible: true |
| 44 | + retry: |
| 45 | + automatic: |
| 46 | + - exit_status: \"-1\" |
| 47 | + limit: 3 |
| 48 | + signal_reason: none |
| 49 | + - signal_reason: agent_stop |
| 50 | + limit: 3 |
| 51 | +" |
0 commit comments