Add integration with Allure Report plugin.

Allure Report step will now be available from the `publishers` section.

Change-Id: Idef39206cf05cd6a4949e87da13bf731b624b577
This commit is contained in:
Egor Borisov
2017-06-18 19:42:52 +03:00
parent 504f6b78ae
commit e0178ef02e
5 changed files with 130 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<project>
<publishers>
<ru.yandex.qatools.allure.jenkins.AllureReportPublisher plugin="allure-jenkins-plugin">
<config>
<results>
<ru.yandex.qatools.allure.jenkins.config.ResultsConfig>
<path>build/allure-results1</path>
</ru.yandex.qatools.allure.jenkins.config.ResultsConfig>
<ru.yandex.qatools.allure.jenkins.config.ResultsConfig>
<path>build/allure-results2</path>
</ru.yandex.qatools.allure.jenkins.config.ResultsConfig>
</results>
<properties>
<ru.yandex.qatools.allure.jenkins.config.PropertyConfig>
<key>allure.link.issue.pattern</key>
<value>http://test.tms/{}</value>
</ru.yandex.qatools.allure.jenkins.config.PropertyConfig>
</properties>
<jdk>openjdk1.8</jdk>
<commandline>allure2</commandline>
<reportBuildPolicy>UNSTABLE</reportBuildPolicy>
<includeProperties>true</includeProperties>
</config>
</ru.yandex.qatools.allure.jenkins.AllureReportPublisher>
</publishers>
</project>

View File

@@ -0,0 +1,13 @@
publishers:
- allure:
results-paths:
- path: 'build/allure-results1'
- path: 'build/allure-results2'
properties:
- key: 'allure.link.issue.pattern'
value: 'http://test.tms/{}'
jdk: openjdk1.8
commandline: allure2
report-build-policy: UNSTABLE
include-properties: true

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<project>
<publishers>
<ru.yandex.qatools.allure.jenkins.AllureReportPublisher plugin="allure-jenkins-plugin">
<config>
<results>
<ru.yandex.qatools.allure.jenkins.config.ResultsConfig>
<path>build/allure-results</path>
</ru.yandex.qatools.allure.jenkins.config.ResultsConfig>
</results>
<properties class="empty-list"/>
<jdk/>
<commandline/>
<reportBuildPolicy>ALWAYS</reportBuildPolicy>
<includeProperties>false</includeProperties>
</config>
</ru.yandex.qatools.allure.jenkins.AllureReportPublisher>
</publishers>
</project>

View File

@@ -0,0 +1,4 @@
publishers:
- allure:
results-paths:
- path: 'build/allure-results'