forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelastic+elasticsearch+pull-request+packaging-tests-windows.yml
59 lines (59 loc) · 2.17 KB
/
elastic+elasticsearch+pull-request+packaging-tests-windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
- job:
name: "elastic+elasticsearch+pull-request+packaging-tests-windows"
display-name: "elastic / elasticsearch - pull request packaging-tests-windows"
description: "Testing of Elasticsearch pull requests - packaging-tests-windows"
# We use a hard-coded workspace directory here to avoid hitting windows path length limits
child-workspace: "C:\\Users\\jenkins\\workspace\\pr-packaging-windows\\${BUILD_NUMBER}"
project-type: matrix
node: master
scm:
- git:
refspec: "+refs/pull/${ghprbPullId}/*:refs/remotes/origin/pr/${ghprbPullId}/*"
branches:
- "${ghprbActualCommit}"
triggers:
- github-pull-request:
org-list:
- elastic
allow-whitelist-orgs-as-admins: true
trigger-phrase: '.*run\W+elasticsearch-ci/packaging-tests-windows.*'
github-hooks: true
status-context: elasticsearch-ci/packaging-tests-windows
cancel-builds-on-update: true
black-list-target-branches:
- 7.16
- 7.15
- 6.8
excluded-regions:
- ^docs/.*
white-list-labels:
- ':Delivery/Packaging'
black-list-labels:
- '>test-mute'
axes:
- axis:
type: label-expression
name: os
values:
- "windows-2012-r2"
- "windows-2016"
- "windows-2019"
- axis:
type: user-defined
name: PACKAGING_TASK
values:
- 'default-windows-archive'
builders:
- inject:
properties-file: '.ci/java-versions.properties'
properties-content: |
JAVA_HOME=$USERPROFILE\\.java\\$ES_BUILD_JAVA
RUNTIME_JAVA_HOME=$USERPROFILE\\.java\\$ES_RUNTIME_JAVA
- batch: |
del /f /s /q %USERPROFILE%\.gradle\init.d\*.*
mkdir %USERPROFILE%\.gradle\init.d
copy .ci\init.gradle %USERPROFILE%\.gradle\init.d\
(
echo powershell.exe .\.ci\scripts\packaging-test.ps1 -GradleTasks destructiveDistroTest.%PACKAGING_TASK% ^|^| exit /b 1
) | java -jar "C:\Program Files\infra\bin\runbld" --redirect-stderr -