IBM / dbb-zappbuild

zAppBuild is a generic build solution for building z/OS applications using Apache Groovy build scripts and IBM Dependency Based Build (DBB) APIs.
Apache License 2.0
40 stars 123 forks source link

Link to changed files with user-provided baselineRef #506

Closed dennis-behm closed 2 months ago

dennis-behm commented 2 months ago

This is extending the existing capability of zAppBuild to provide a user-friendly link to the changed files at the Git provider when providing the --impactBuild with the baselineRef sub-option.

See the configuration parameters gitRepositoryURL in the application configuration and gitRepositoryCompareService in build-conf/defaultzAppBuildConf.properties.

The property :gitchangedfiles:MortgageApplication contains the correct link in impactBuilds with baselineRef https://github.com/dennis-behm/dbb-zappbuild/compare/main...5eb29f3eca6fbd2638f40c5a8f3f7944705af421

Verbose output log sample:

************* Creation and processing of the build list *************
** --impactBuild --baselineRef origin/main option selected. Building impacted programs for application MortgageApplication 
** Getting current hash for directory /u/dbehm/test-zapp/dbb-zappbuild/samples/MortgageApplication
** Storing MortgageApplication : 5eb29f3eca6fbd2638f40c5a8f3f7944705af421
** Getting baseline hash for directory /u/dbehm/test-zapp/dbb-zappbuild/samples/MortgageApplication
*** Baseline hash for directory MortgageApplication retrieved from overwrite.
** Storing MortgageApplication : origin/main
** Calculating changed files for directory /u/dbehm/test-zapp/dbb-zappbuild/samples/MortgageApplication
..
..
***************** Finalization of the build process *****************
*** Obtaining hash for directory /u/dbehm/test-zapp/dbb-zappbuild/samples/MortgageApplication
** Setting property :githash:MortgageApplication : 5eb29f3eca6fbd2638f40c5a8f3f7944705af421
** Setting property :giturl:MortgageApplication : https://github.com/dennis-behm/dbb-zappbuild.git
*** Baseline hash for directory MortgageApplication retrieved from overwrite.
** Setting property :gitchangedfiles:MortgageApplication : https://github.com/dennis-behm/dbb-zappbuild/compare/main...5eb29f3eca6fbd2638f40c5a8f3f7944705af421
dennis-behm commented 2 months ago

zAppBuild TestFramework out 506.log