Giter VIP home page Giter VIP logo

Comments (2)

dennis-behm avatar dennis-behm commented on September 16, 2024

@FALLAI-Denis ,

the BuildReport is stored/persisted at the end of the build process :

dbb-zappbuild/build.groovy

Lines 692 to 709 in 99624f6

// save json file
println "** Writing build report data to ${jsonOutputFile}"
buildReport.save(jsonOutputFile, buildReportEncoding)
// create build report html file
def htmlOutputFile = new File("${props.buildOutDir}/BuildReport.html")
println "** Writing build report to ${htmlOutputFile}"
buildReport.generateHTML(htmlOutputFile)
// attach build report & result
if (metadataStore) {
buildReport.save(jsonOutputFile, buildReportEncoding)
// Save build report & build report data
buildResult.setBuildReport(new FileInputStream(htmlOutputFile))
buildResult.setBuildReportData(new FileInputStream(jsonOutputFile))
println "** Updating build result BuildGroup:${props.applicationBuildGroup} BuildLabel:${props.applicationBuildLabel}"
}

You should be able to obtain the BuildReport through the BuildReportFactory and even make updates to it before saving the BuildResult .

The CreateUCDComponentVersion script for example is removing outputs without a deployType or when the type is ZUNIT on a BuildReport object.

Persisting information is controlled via the report(true) and deployType('DBRM') options. I think you have opened another thread which is talking about your issue on the ibm/dbb repository (if I am not mistaken). Assuming this is the same area, you have two options:

  1. Modify the BuildReport, see above OR
  2. Skip documenting the DBRM in the scripts but invoke when needed an additional MVSExec step, which just invokes an IEFBR14 but registers an output through the above API. I assume this to be "cheaper" than rescanning the expanded source for example.

from dbb-zappbuild.

FALLAI-Denis avatar FALLAI-Denis commented on September 16, 2024

Hi @dennis-behm

Thanks for your response and your great help.

I apply same solution as CreateUCDComponentVersion script for removing unwanted output.
Works fine!
👍 👏

from dbb-zappbuild.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.