|
|
@@ -201,3 +201,111 @@ exports[`generatePipelines should generate correct pipeline when using a trigger
|
|
|
},
|
|
|
]
|
|
|
`;
|
|
|
+
|
|
|
+exports[`generatePipelines should generate correct pipelines with a non-docs change and @elasticmachine 1`] = `
|
|
|
+[
|
|
|
+ {
|
|
|
+ "name": "bwc-snapshots",
|
|
|
+ "pipeline": {
|
|
|
+ "steps": [
|
|
|
+ {
|
|
|
+ "group": "bwc-snapshots",
|
|
|
+ "steps": [
|
|
|
+ {
|
|
|
+ "agents": {
|
|
|
+ "buildDirectory": "/dev/shm/bk",
|
|
|
+ "image": "family/elasticsearch-ubuntu-2004",
|
|
|
+ "machineType": "custom-32-98304",
|
|
|
+ "provider": "gcp",
|
|
|
+ },
|
|
|
+ "command": ".ci/scripts/run-gradle.sh -Dignore.tests.seed v{{matrix.BWC_VERSION}}#bwcTest",
|
|
|
+ "env": {
|
|
|
+ "BWC_VERSION": "{{matrix.BWC_VERSION}}",
|
|
|
+ },
|
|
|
+ "label": "{{matrix.BWC_VERSION}} / bwc-snapshots",
|
|
|
+ "matrix": {
|
|
|
+ "setup": {
|
|
|
+ "BWC_VERSION": [
|
|
|
+ "7.17.14",
|
|
|
+ "8.10.3",
|
|
|
+ "8.11.0",
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ },
|
|
|
+ "timeout_in_minutes": 300,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "using-defaults",
|
|
|
+ "pipeline": {
|
|
|
+ "env": {
|
|
|
+ "CUSTOM_ENV_VAR": "value",
|
|
|
+ },
|
|
|
+ "steps": [
|
|
|
+ {
|
|
|
+ "command": "echo 'hello world'",
|
|
|
+ "label": "test-step",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ },
|
|
|
+]
|
|
|
+`;
|
|
|
+
|
|
|
+exports[`generatePipelines should generate correct pipelines with a non-docs change and @elasticsearchmachine 1`] = `
|
|
|
+[
|
|
|
+ {
|
|
|
+ "name": "bwc-snapshots",
|
|
|
+ "pipeline": {
|
|
|
+ "steps": [
|
|
|
+ {
|
|
|
+ "group": "bwc-snapshots",
|
|
|
+ "steps": [
|
|
|
+ {
|
|
|
+ "agents": {
|
|
|
+ "buildDirectory": "/dev/shm/bk",
|
|
|
+ "image": "family/elasticsearch-ubuntu-2004",
|
|
|
+ "machineType": "custom-32-98304",
|
|
|
+ "provider": "gcp",
|
|
|
+ },
|
|
|
+ "command": ".ci/scripts/run-gradle.sh -Dignore.tests.seed v{{matrix.BWC_VERSION}}#bwcTest",
|
|
|
+ "env": {
|
|
|
+ "BWC_VERSION": "{{matrix.BWC_VERSION}}",
|
|
|
+ },
|
|
|
+ "label": "{{matrix.BWC_VERSION}} / bwc-snapshots",
|
|
|
+ "matrix": {
|
|
|
+ "setup": {
|
|
|
+ "BWC_VERSION": [
|
|
|
+ "7.17.14",
|
|
|
+ "8.10.3",
|
|
|
+ "8.11.0",
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ },
|
|
|
+ "timeout_in_minutes": 300,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "using-defaults",
|
|
|
+ "pipeline": {
|
|
|
+ "env": {
|
|
|
+ "CUSTOM_ENV_VAR": "value",
|
|
|
+ },
|
|
|
+ "steps": [
|
|
|
+ {
|
|
|
+ "command": "echo 'hello world'",
|
|
|
+ "label": "test-step",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ },
|
|
|
+]
|
|
|
+`;
|