You've already forked jenkins-lib
forked from jenkins/jenkins-lib
Замена несериализуемого StringJoiner на сериализуемый StringBuilder
This commit is contained in:
@@ -61,14 +61,14 @@ class SmokeTest implements Serializable {
|
||||
FilePath pathToAllureReport = FileUtils.getFilePath("$env.WORKSPACE/$allureReport")
|
||||
String allureReportDir = FileUtils.getLocalPath(pathToAllureReport.getParent())
|
||||
|
||||
StringJoiner reportsConfigConstructor = new StringJoiner(";")
|
||||
StringBuilder reportsConfigConstructor = new StringBuilder()
|
||||
|
||||
if (options.publishToJUnitReport) {
|
||||
steps.createDir(junitReportDir)
|
||||
|
||||
String junitReportCommand = "ГенераторОтчетаJUnitXML{$junitReport}"
|
||||
|
||||
reportsConfigConstructor.add(junitReportCommand)
|
||||
reportsConfigConstructor.append(junitReportCommand)
|
||||
}
|
||||
|
||||
if (options.publishToAllureReport) {
|
||||
@@ -76,7 +76,10 @@ class SmokeTest implements Serializable {
|
||||
|
||||
String allureReportCommand = "ГенераторОтчетаAllureXMLВерсия2{$allureReport}"
|
||||
|
||||
reportsConfigConstructor.add(allureReportCommand)
|
||||
if (reportsConfigConstructor.length() > 0) {
|
||||
reportsConfigConstructor.append(';')
|
||||
}
|
||||
reportsConfigConstructor.append(allureReportCommand)
|
||||
}
|
||||
|
||||
if (reportsConfigConstructor.length() > 0) {
|
||||
|
Reference in New Issue
Block a user