forked from openshift-eng/aos-cd-jobs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_case.xml
168 lines (168 loc) · 7.42 KB
/
test_case.xml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<?xml version='1.0' encoding='UTF-8'?>
<com.tikal.jenkins.plugins.multijob.MultiJobProject plugin="[email protected]">
<actions/>
<description><div style="font-size: 32px; line-height: 1.5em; background-color: yellow; padding: 5px;">WARNING: THIS IS AN AUTO-GENERATED JOB DEFINITION. CHANGES MADE USING THE ONLINE EDITOR WILL NOT BE HONORED. MAKE CHANGES TO THE JOB DEFINITIONS IN THE <a href="https://github.com/openshift/aos-cd-jobs/tree/master/sjb">openshift/aos-cd-jobs</a> REPOSITORY INSTEAD.</div></description>
<keepDependencies>false</keepDependencies>
<properties>
<com.sonyericsson.rebuild.RebuildSettings plugin="[email protected]">
<autoRebuild>true</autoRebuild>
<rebuildDisabled>false</rebuildDisabled>
</com.sonyericsson.rebuild.RebuildSettings>
<jenkins.model.BuildDiscarderProperty>
<strategy class="hudson.tasks.LogRotator">
<daysToKeep>7</daysToKeep>
<numToKeep>-1</numToKeep>
<artifactDaysToKeep>-1</artifactDaysToKeep>
<artifactNumToKeep>-1</artifactNumToKeep>
</strategy>
</jenkins.model.BuildDiscarderProperty>
{%- if parameters %}
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
{%- for parameter in parameters %}
{{ parameter }}
{%- endfor %}
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
{%- endif %}
<hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="[email protected]">
<maxConcurrentPerNode>0</maxConcurrentPerNode>
<maxConcurrentTotal>0</maxConcurrentTotal>
<categories class="java.util.concurrent.CopyOnWriteArrayList"/>
<throttleEnabled>false</throttleEnabled>
<throttleOption>project</throttleOption>
<limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams>
<paramsToUseForLimit></paramsToUseForLimit>
</hudson.plugins.throttleconcurrents.ThrottleJobProperty>
</properties>
<scm class="hudson.scm.NullSCM"/>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<authToken>origin1</authToken>
{%- if timer %}
<triggers>
<hudson.triggers.TimerTrigger>
<spec>{{ timer }}</spec>
</hudson.triggers.TimerTrigger>
</triggers>
{%- else %}
<triggers/>
{%- endif %}
<concurrentBuild>true</concurrentBuild>
<builders>
{%- for build_step in build_steps %}
{{ build_step }}
{%- endfor %}
</builders>
<publishers>
{%- if post_build_steps %}
<org.jenkinsci.plugins.postbuildscript.PostBuildScript plugin="[email protected]">
<buildSteps>
{%- for post_build_step in post_build_steps %}
{{ post_build_step }}
{%- endfor %}
</buildSteps>
<scriptOnlyIfSuccess>false</scriptOnlyIfSuccess>
<scriptOnlyIfFailure>false</scriptOnlyIfFailure>
<markBuildUnstable>false</markBuildUnstable>
</org.jenkinsci.plugins.postbuildscript.PostBuildScript>
{%- endif %}
{%- if action == "test" %}
<org.jenkinsci.plugins.postbuildscript.PostBuildScript plugin="[email protected]">
<buildSteps>
<hudson.tasks.Shell>
<command>#!/bin/bash
set -o errexit -o nounset -o pipefail -o xtrace
test_pull_requests --mark_test_success "${{ '{' }}{{ target_repo | replace('-', '_') | upper }}_PULL_ID}" --repo {{ target_repo }} --config ~/.test_pull_requests_{{ target_repo | replace('-', '_') }}.json || true
</command>
</hudson.tasks.Shell>
</buildSteps>
<scriptOnlyIfSuccess>true</scriptOnlyIfSuccess>
<scriptOnlyIfFailure>false</scriptOnlyIfFailure>
<markBuildUnstable>false</markBuildUnstable>
</org.jenkinsci.plugins.postbuildscript.PostBuildScript>
{%- endif %}
{%- if action == "merge" %}
<org.jenkinsci.plugins.postbuildscript.PostBuildScript plugin="[email protected]">
<buildSteps>
<hudson.tasks.Shell>
<command>#!/bin/bash
set -o errexit -o nounset -o pipefail -o xtrace
test_pull_requests --merge_pull_request "${{ '{' }}{{ target_repo | replace('-', '_') | upper }}_PULL_ID}" --repo {{ target_repo }} --config ~/.test_pull_requests_{{ target_repo | replace('-', '_') }}.json
</command>
</hudson.tasks.Shell>
</buildSteps>
<scriptOnlyIfSuccess>true</scriptOnlyIfSuccess>
<scriptOnlyIfFailure>false</scriptOnlyIfFailure>
<markBuildUnstable>false</markBuildUnstable>
</org.jenkinsci.plugins.postbuildscript.PostBuildScript>
{%- endif %}
<hudson.tasks.ArtifactArchiver>
<artifacts>.config/origin-ci-tool/logs/junit/*.xml,artifacts/**/*.xml</artifacts>
<allowEmptyArchive>true</allowEmptyArchive>
<onlyIfSuccessful>false</onlyIfSuccessful>
<fingerprint>false</fingerprint>
<defaultExcludes>true</defaultExcludes>
<caseSensitive>true</caseSensitive>
</hudson.tasks.ArtifactArchiver>
<hudson.tasks.junit.JUnitResultArchiver plugin="[email protected]">
<testResults>.config/origin-ci-tool/logs/junit/*.xml,**/*.xml</testResults>
<keepLongStdio>true</keepLongStdio>
<healthScaleFactor>1.0</healthScaleFactor>
<allowEmptyResults>true</allowEmptyResults>
</hudson.tasks.junit.JUnitResultArchiver>
<hudson.plugins.s3.S3BucketPublisher plugin="[email protected]">
<profileName>Jenkins-AWS</profileName>
<entries>
<hudson.plugins.s3.Entry>
<bucket>aos-ci/jenkinsorigin</bucket>
<sourceFile>artifacts/**, .config/origin-ci-tool/**</sourceFile>
<excludedFile></excludedFile>
<storageClass>STANDARD</storageClass>
<selectedRegion>us-east-1</selectedRegion>
<noUploadOnFailure>false</noUploadOnFailure>
<uploadFromSlave>false</uploadFromSlave>
<managedArtifacts>true</managedArtifacts>
<useServerSideEncryption>false</useServerSideEncryption>
<flatten>false</flatten>
<gzipFiles>false</gzipFiles>
<showDirectlyInBrowser>false</showDirectlyInBrowser>
<keepForever>false</keepForever>
</hudson.plugins.s3.Entry>
</entries>
<dontWaitForConcurrentBuildCompletion>true</dontWaitForConcurrentBuildCompletion>
<consoleLogLevel>
<name>WARNING</name>
<value>900</value>
<resourceBundleName>sun.util.logging.resources.logging</resourceBundleName>
</consoleLogLevel>
<pluginFailureResultConstraint>
<name>SUCCESS</name>
<ordinal>0</ordinal>
<color>BLUE</color>
<completeBuild>true</completeBuild>
</pluginFailureResultConstraint>
<userMetadata/>
</hudson.plugins.s3.S3BucketPublisher>
{%- if email %}
<hudson.tasks.Mailer plugin="[email protected]">
<recipients>{{ email | join(' ') }}</recipients>
<dontNotifyEveryUnstableBuild>true</dontNotifyEveryUnstableBuild>
<sendToIndividuals>false</sendToIndividuals>
</hudson.tasks.Mailer>
{%- endif %}
</publishers>
<buildWrappers>
<hudson.plugins.ws__cleanup.PreBuildCleanup plugin="[email protected]">
<deleteDirs>false</deleteDirs>
<cleanupParameter></cleanupParameter>
<externalDelete></externalDelete>
</hudson.plugins.ws__cleanup.PreBuildCleanup>
<hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="[email protected]">
<colorMapName>xterm</colorMapName>
</hudson.plugins.ansicolor.AnsiColorBuildWrapper>
</buildWrappers>
<pollSubjobs>false</pollSubjobs>
</com.tikal.jenkins.plugins.multijob.MultiJobProject>