[meta] add dedicated ci jobs for 6.x (#760)
This commit create dedicated Jenkins jobs for 6.x for master branch and PRs. This is required to allow having different test suites for 7.x and 6.x in a following PR.
This commit is contained in:
parent
fec4907c4b
commit
e863695018
7 changed files with 116 additions and 54 deletions
|
|
@ -12,12 +12,6 @@
|
|||
logrotate:
|
||||
daysToKeep: 30
|
||||
numToKeep: 100
|
||||
parameters:
|
||||
- string:
|
||||
name: branch_specifier
|
||||
default: master
|
||||
description: the Git branch specifier to build (<branchName>, <tagName>,
|
||||
<commitId>, etc.)
|
||||
properties:
|
||||
- github:
|
||||
url: https://github.com/elastic/ansible-elasticsearch/
|
||||
|
|
@ -41,10 +35,6 @@
|
|||
name: label
|
||||
values:
|
||||
- linux
|
||||
- axis:
|
||||
name: VERSION
|
||||
filename: elasticsearch/test/matrix.yml
|
||||
type: yaml
|
||||
- axis:
|
||||
name: OS
|
||||
filename: elasticsearch/test/matrix.yml
|
||||
|
|
@ -55,6 +45,25 @@
|
|||
type: yaml
|
||||
vault:
|
||||
role_id: cff5d4e0-61bf-2497-645f-fcf019d10c13
|
||||
builders:
|
||||
- shell: |-
|
||||
#!/usr/local/bin/runbld
|
||||
set -euo pipefail
|
||||
|
||||
export RBENV_VERSION='2.5.7'
|
||||
export PATH="$HOME/.rbenv/bin:$PATH"
|
||||
eval "$(rbenv init -)"
|
||||
rbenv local $RBENV_VERSION
|
||||
|
||||
export ES_XPACK_LICENSE_FILE="$(pwd)/license.json"
|
||||
echo "Getting xpack_license from secrets service"
|
||||
set +x
|
||||
VAULT_TOKEN=$( curl -s -X POST -H "Content-Type: application/json" -L -d "{\"role_id\":\"$VAULT_ROLE_ID\",\"secret_id\":\"$VAULT_SECRET_ID\"}" $VAULT_ADDR/v1/auth/approle/login | jq -r '.auth.client_token' )
|
||||
curl -s -L -H "X-Vault-Token:$VAULT_TOKEN" $VAULT_ADDR/v1/secret/devops-ci/ansible-elasticsearch/xpack_license | jq -r '.data.value' > ${ES_XPACK_LICENSE_FILE}
|
||||
set -x
|
||||
echo "Finished getting xpack_license from secrets service"
|
||||
make setup
|
||||
make verify VERSION=$VERSION PATTERN=$TEST_TYPE-$OS
|
||||
wrappers:
|
||||
- ansicolor
|
||||
- timeout:
|
||||
|
|
@ -62,4 +71,3 @@
|
|||
timeout: 360
|
||||
fail: true
|
||||
- timestamps
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue