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 |
--overwrite | Optional | If set, files in the destination can be overwritten. By default this param 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
Deprecated - will be removed in 22r2¶
create_build_structure.ps1/sh¶
The script create_build_structure.ps1/sh is located in component fndbas/build folder, and will in a build home be located in the build folder.
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 create_build_structure.ps1/sh or its sub scripts are changed in the delivery source code, the files will be updated, and if create_build_strucuture.ps1 is changed the script will be automatically restarted using the new version.
The script accepts three parameters.
Parameter | Required | Purpose | Examples/Defaults |
---|---|---|---|
-components |
Mandatory | Path to the components | -components "c:\work\components" |
-build_home | Not allowed if delivery defined | Path to the build home. | -build_home "c:\work\build_home" |
-delivery | Not allowed if build_home defined | Path to the dellivery. | -delivery "c:\work\delivery" |
More information found when executing:
PS> Get-Help .\create_build_structure.ps1 -detailed