Create build structure¶
Script ifs_create_build_structure.cmd/sh¶
The script ifs_create_build_structure.cmd/sh is located in component fndbas/build folder, and will in a build home be located in the build folder. It replaces the deprecated script create_build_structure.ps1/sh
When creating a build home, the script should be executed from the components structure, from fndbas/build folder.
When creating a delivery, the script should be executed from the build home/build folder.
If the ifs_create_build_structure or its sub scripts are changed in the delivery source code, the files will be updated, and if ifs_create_build_structure is changed the script will be automatically restarted using the new version.
The script accepts these arguments.
Parameter | Required | Purpose | Examples/Defaults |
---|---|---|---|
--components | Mandatory Optional if running from within component structure |
Path to the components | --components "c:\work\components" |
--buildhome | Mandatory when creating build_home | Path to the build home. | --buildhome "c:\work\build_home" |
--delivery | Mandatory when creating delivery | Path to the delivery. | --delivery "c:\work\delivery" |
--filelistname | Optional | A list of files generated from ifs_git_diff.cmd/sh script. Instead of copying all files it will only copy the files listed in the "file list". | --filelistname c:\work\difflist.txt |
--custcomponents | Optional | If set, files to be copied from components will be ignored, if the files exist in the custcomponents | --custcomponents "c:\work\custcomponents" |
--overwrite | Optional | If set, files in the destination can be overwritten. By default this parameter is not set, hence the destination path must be created by the script itself. | --overwrite |
--logfile | Optional - defaults to buildhome\build-files.log or delivery\build-files.log | Log file name | --logfile c:\work\logs\logfile.log |
--help | Will show list of arguments |
See examples: build a build_home and build a delivery