mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 01:22:26 -04:00
19 lines
481 B
TypeScript
19 lines
481 B
TypeScript
import { stringify } from "yaml";
|
|
import { execSync } from "child_process";
|
|
|
|
import { generatePipelines } from "./pipeline";
|
|
|
|
const pipelines = generatePipelines();
|
|
|
|
for (const pipeline of pipelines) {
|
|
if (!process.env.CI) {
|
|
// Just for local debugging purposes
|
|
console.log("");
|
|
console.log(stringify(pipeline));
|
|
} else {
|
|
execSync(`buildkite-agent pipeline upload`, {
|
|
input: stringify(pipeline),
|
|
stdio: ["pipe", "inherit", "inherit"],
|
|
});
|
|
}
|
|
}
|