Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ steps:
transport: "8.2"
env:
RUBY_VERSION: "{{ matrix.ruby }}"
STACK_VERSION: 9.0.0-SNAPSHOT
STACK_VERSION: 9.1.0-SNAPSHOT
ES_YAML_TESTS_BRANCH: main
TRANSPORT_VERSION: "{{ matrix.transport }}"
RUBY_SOURCE: "{{ matrix.ruby_source }}"
Expand Down
11 changes: 8 additions & 3 deletions rake_tasks/automation.rake
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,16 @@ namespace :automation do
if file == '.buildkite/pipeline.yml'
require 'yaml'
yaml = YAML.safe_load(content)
branch = version.match(/([0-9]+\.[0-9]+)\.[0-9]+.*/)[1]
yaml_tests_branch = yaml['steps'][0]['env']['ES_YAML_TESTS_BRANCH']
next if yaml_tests_branch == 'main'

content.gsub!(yaml_tests_branch, branch)
if yaml_tests_branch == 'main'
old = content.match(/STACK_VERSION: (.*)/)[1]
new = "STACK_VERSION: #{version}"
content.gsub!(new, old)
else
branch = version.match(/([0-9]+\.[0-9]+)\.[0-9]+.*/)[1]
content.gsub!(yaml_tests_branch, branch)
end
puts "[#{yaml_tests_branch}] -> [#{branch}] in #{file.gsub('./', '')}"
end
match = content.match(regexp)
Expand Down