Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Templates/JenkinsPipeline/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ def BuildOutputDir = "" // DBB Build Output Directory (Discov
def BuildFile = "" // Will contain the contents of the DBB buildFile.txt.
def BuildHasFiles = true // DBB buildFile.txt indicates changed files.

def TazLogs = "*.tazunittest.report.log" // Will contain the contents of the TAZ unit test runner result file * (*.bzures)
def TazReports = "" // Will contain the contents of the TAZ unit test runner result file converted to JUnit test run file (*.xml)
def XLSConv = "/var/dbb/extensions/zunit2junit/AZUZ2J40.xsl" // XSL stylesheet that converts a unit test runner result file to a JUnit test run file
def PackageCmd = "" // Packaging Command.
def Packagerc = 0 // Packaging Command Return Code.

Expand Down Expand Up @@ -411,6 +414,16 @@ pipeline {

dir ("${BuildOutputDir}") {
BuildFile = findFiles(glob: "buildList.txt")
TazReports = findFiles(glob: TazLogs)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. For better readability I would prefer to see the publishing after the build status is reported to the build.
  2. Changing my mind, we should introduce a variable tazReportsDoPublish to let the user turn on the publishing via this flag. Please also add the variable to the prints of the build variable summary.


TazReports.each { item ->
//echo item.name
sh "Xalan -o ${BuildOutputDir}/${item.name}.xml ${BuildOutputDir}/${item.name} ${XLSConv}"
}

if(TazReports.length > 0){
junit '*.log.xml'
}
}

if (pipeverbose) {
Expand Down