Fix/renovate pipeline (#204672)

## Summary

Renovate pipeline isn't being uploaded to Buildkite properly and `pre`
and `post` build steps were not necessary and create errors with CI
stats.

[Successful CI
run](https://buildkite.com/elastic/kibana-pull-request/builds/261627)
This commit is contained in:
Brad White 2024-12-18 05:35:36 -07:00 committed by GitHub
parent d6cb398d1a
commit ecd4567ac6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 11 deletions

View file

@ -1,12 +1,4 @@
steps:
- command: .buildkite/scripts/lifecycle/pre_build.sh
label: Pre-Build
timeout_in_minutes: 10
agents:
machineType: n2-standard-2
- wait
- command: .buildkite/scripts/steps/renovate.sh
label: 'Renovate validation'
agents:

View file

@ -39,15 +39,16 @@ const getPipeline = (filename: string, removeSteps = true) => {
return;
}
pipeline.push(getAgentImageConfig({ returnYaml: true }));
const onlyRunQuickChecks = await areChangesSkippable([/^renovate\.json$/], REQUIRED_PATHS);
if (onlyRunQuickChecks) {
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/renovate.yml', false));
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/post_build.yml'));
console.log('Isolated changes to renovate.json. Skipping main PR pipeline.');
console.log([...new Set(pipeline)].join('\n'));
return;
}
pipeline.push(getAgentImageConfig({ returnYaml: true }));
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/base.yml', false));
if (await doAnyChangesMatch([/^packages\/kbn-handlebars/])) {