Don't run integration tests if no code changes in a PR (#1881)
This commit is contained in:
20
.buildkite/pull-requests.json
Normal file
20
.buildkite/pull-requests.json
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"jobs": [
|
||||||
|
{
|
||||||
|
"enabled": true,
|
||||||
|
"pipeline_slug": "elasticsearch-js-integration-tests",
|
||||||
|
"allowed_repo_permissions": ["admin", "write"],
|
||||||
|
"build_on_commit": true,
|
||||||
|
"skip_ci_on_only_changed": [
|
||||||
|
"\\.md$",
|
||||||
|
"\\.asciidoc$",
|
||||||
|
"^docs\\/",
|
||||||
|
"^\\.ci\\/",
|
||||||
|
"^scripts\\/",
|
||||||
|
"^catalog-info\\.yaml$",
|
||||||
|
"^test\\/unit\\/",
|
||||||
|
"^\\.github\\/"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@ -1,81 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
##### GLOBAL METADATA
|
|
||||||
|
|
||||||
- meta:
|
|
||||||
cluster: clients-ci
|
|
||||||
|
|
||||||
##### JOB DEFAULTS
|
|
||||||
|
|
||||||
- job:
|
|
||||||
project-type: matrix
|
|
||||||
logrotate:
|
|
||||||
daysToKeep: 30
|
|
||||||
numToKeep: 100
|
|
||||||
parameters:
|
|
||||||
- string:
|
|
||||||
name: branch_specifier
|
|
||||||
default: refs/heads/main
|
|
||||||
description: the Git branch specifier to build (<branchName>, <tagName>,
|
|
||||||
<commitId>, etc.)
|
|
||||||
properties:
|
|
||||||
- github:
|
|
||||||
url: https://github.com/elastic/elasticsearch-js/
|
|
||||||
- inject:
|
|
||||||
properties-content: HOME=$JENKINS_HOME
|
|
||||||
concurrent: true
|
|
||||||
node: flyweight
|
|
||||||
scm:
|
|
||||||
- git:
|
|
||||||
name: origin
|
|
||||||
credentials-id: f6c7695a-671e-4f4f-a331-acdce44ff9ba
|
|
||||||
reference-repo: /var/lib/jenkins/.git-references/elasticsearch-js.git
|
|
||||||
branches:
|
|
||||||
- ${branch_specifier}
|
|
||||||
url: https://github.com/elastic/elasticsearch-js.git
|
|
||||||
basedir: ''
|
|
||||||
wipe-workspace: 'True'
|
|
||||||
triggers:
|
|
||||||
- github
|
|
||||||
vault:
|
|
||||||
# vault read auth/approle/role/clients-ci/role-id
|
|
||||||
role_id: ddbd0d44-0e51-105b-177a-c8fdfd445126
|
|
||||||
axes:
|
|
||||||
- axis:
|
|
||||||
type: slave
|
|
||||||
name: label
|
|
||||||
values:
|
|
||||||
- linux
|
|
||||||
- axis:
|
|
||||||
type: yaml
|
|
||||||
filename: .ci/test-matrix.yml
|
|
||||||
name: STACK_VERSION
|
|
||||||
- axis:
|
|
||||||
type: yaml
|
|
||||||
filename: .ci/test-matrix.yml
|
|
||||||
name: NODE_JS_VERSION
|
|
||||||
- axis:
|
|
||||||
type: yaml
|
|
||||||
filename: .ci/test-matrix.yml
|
|
||||||
name: TEST_SUITE
|
|
||||||
yaml-strategy:
|
|
||||||
exclude-key: exclude
|
|
||||||
filename: .ci/test-matrix.yml
|
|
||||||
wrappers:
|
|
||||||
- ansicolor
|
|
||||||
- timeout:
|
|
||||||
type: absolute
|
|
||||||
timeout: 120
|
|
||||||
fail: true
|
|
||||||
- timestamps
|
|
||||||
- workspace-cleanup
|
|
||||||
builders:
|
|
||||||
- shell: |-
|
|
||||||
#!/usr/local/bin/runbld
|
|
||||||
.ci/run-tests
|
|
||||||
publishers:
|
|
||||||
- email:
|
|
||||||
recipients: build-lang-clients@elastic.co
|
|
||||||
- junit:
|
|
||||||
results: "**/*-junit.xml"
|
|
||||||
allow-empty-results: true
|
|
||||||
@ -15,7 +15,7 @@ apiVersion: backstage.io/v1alpha1
|
|||||||
kind: Resource
|
kind: Resource
|
||||||
metadata:
|
metadata:
|
||||||
name: elasticsearch-js-integration-tests
|
name: elasticsearch-js-integration-tests
|
||||||
description: Elasticsearch JavaScript client integration tests
|
description: elasticsearch-js - integration tests
|
||||||
spec:
|
spec:
|
||||||
type: buildkite-pipeline
|
type: buildkite-pipeline
|
||||||
owner: group:clients-team
|
owner: group:clients-team
|
||||||
|
|||||||
Reference in New Issue
Block a user