Skip to content

Commit 84535df

Browse files
Ikuni17benakansara
authored andcommitted
Fix/renovate pipeline (elastic#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)
1 parent aba9a21 commit 84535df

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

.buildkite/pipelines/pull_request/renovate.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
steps:
2-
- command: .buildkite/scripts/lifecycle/pre_build.sh
3-
label: Pre-Build
4-
timeout_in_minutes: 10
5-
agents:
6-
machineType: n2-standard-2
7-
8-
- wait
9-
102
- command: .buildkite/scripts/steps/renovate.sh
113
label: 'Renovate validation'
124
agents:

.buildkite/scripts/pipelines/pull_request/pipeline.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,16 @@ const getPipeline = (filename: string, removeSteps = true) => {
3939
return;
4040
}
4141

42+
pipeline.push(getAgentImageConfig({ returnYaml: true }));
43+
4244
const onlyRunQuickChecks = await areChangesSkippable([/^renovate\.json$/], REQUIRED_PATHS);
4345
if (onlyRunQuickChecks) {
4446
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/renovate.yml', false));
45-
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/post_build.yml'));
46-
console.log('Isolated changes to renovate.json. Skipping main PR pipeline.');
47+
48+
console.log([...new Set(pipeline)].join('\n'));
4749
return;
4850
}
4951

50-
pipeline.push(getAgentImageConfig({ returnYaml: true }));
5152
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/base.yml', false));
5253

5354
if (await doAnyChangesMatch([/^packages\/kbn-handlebars/])) {

0 commit comments

Comments
 (0)