root/build-tools
Scott Little 58b942baf1 Capture the git context of the build
First step in build avoidance is the creation of a reference build.
We need to capture the state of all the git trees that contribute
to the reference build.

This update will save the git context to $MY_WORKSPACE/CONTEXT

The context file format is actually a shell script that can be run to
recreate the build context.

   repo init ...
   repo sync
   cd $MY_REPO/..
   source .../CONTEXT

Sample CONTEXT file ....
(cd ./cgcs-root && git checkout -f 12a1595941)
(cd ./cgcs-root/stx/git/calico && git checkout -f 12a1595941)
(cd ./cgcs-root/stx/git/ceilometer && git checkout -f 12a1595941)
...
(cd ./stx-tools && git checkout -f 12a1595941)
(cd ./.repo/manifests && git checkout -f 12a1595941)
(cd ./.repo/repo && git checkout -f 12a1595941)

This update also the git_list function, which populates the previously
introduced GIT_LIST variable, and can be used in several other code
paths where we want to find all gits in a directory tree.

Tested build/clean/edit  parallel/serial

Story: 2002835
Task: 22754
Change-Id: I5009b8a360bdb4a03e5a4e83430b7f2ef135115e
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-08-31 12:17:47 -04:00
..
branching StarlingX open source release updates 2018-06-01 07:45:23 -07:00
build_guest Split image.inc across git repos 2018-08-17 12:24:41 -05:00
build_iso Add linux screen package to controllers 2018-08-22 13:12:30 -04:00
build_minimal_iso StarlingX open source release updates 2018-06-01 07:45:23 -07:00
certificates StarlingX open source release updates 2018-06-01 07:45:23 -07:00
mirror_rebase StarlingX open source release updates 2018-06-01 07:45:23 -07:00
mk Uprev grub2 and shim 2018-06-27 13:04:02 -04:00
repo_files Adding comps.xml and mock.proto default files. 2018-07-19 22:45:06 -05:00
signing StarlingX open source release updates 2018-06-01 07:45:23 -07:00
Cached_Data.txt StarlingX open source release updates 2018-06-01 07:45:23 -07:00
audit-pkgs StarlingX open source release updates 2018-06-01 07:45:23 -07:00
build-guest Make sure we are in the correct group to run build-guest. 2018-08-21 11:26:59 -04:00
build-img Shorten "addons/wr-cgcs/layers/cgcs" to just "stx" 2018-07-04 15:12:58 -04:00
build-iso build-iso: prevent use of host yum.conf when processing kickstart rpms 2018-08-21 11:26:21 -04:00
build-pkg-srpm StarlingX open source release updates 2018-06-01 07:45:23 -07:00
build-pkgs Build: Improved logging, error handling, and other small fixes 2018-08-29 16:31:09 -04:00
build-pkgs-parallel Capture the git context of the build 2018-08-31 12:17:47 -04:00
build-pkgs-serial Capture the git context of the build 2018-08-31 12:17:47 -04:00
build-rpms StarlingX open source release updates 2018-06-01 07:45:23 -07:00
build-rpms-parallel Kernel can no longer build in 10GB tmpfs 2018-08-24 12:25:05 -04:00
build-rpms-serial build-rpms: drop any 'depends on self' from dependency calculations 2018-08-21 11:26:46 -04:00
build-sdk StarlingX open source release updates 2018-06-01 07:45:23 -07:00
build-srpms StarlingX open source release updates 2018-06-01 07:45:23 -07:00
build-srpms-parallel Capture the git context of the build 2018-08-31 12:17:47 -04:00
build-srpms-serial Capture the git context of the build 2018-08-31 12:17:47 -04:00
classify Build: Improved logging, error handling, and other small fixes 2018-08-29 16:31:09 -04:00
create-cgcs-centos-repo StarlingX open source release updates 2018-06-01 07:45:23 -07:00
create-cgcs-tis-repo StarlingX open source release updates 2018-06-01 07:45:23 -07:00
create-yum-conf StarlingX open source release updates 2018-06-01 07:45:23 -07:00
create_dependancy_cache.py Slow builds due to sub-optimal build order 2018-08-22 10:31:19 -04:00
default_build_srpm StarlingX open source release updates 2018-06-01 07:45:23 -07:00
find_klm StarlingX open source release updates 2018-06-01 07:45:23 -07:00
find_patched_srpms_needing_upgrade StarlingX open source release updates 2018-06-01 07:45:23 -07:00
git-utils.sh Capture the git context of the build 2018-08-31 12:17:47 -04:00
image-utils.sh Tool changes to allow image.inc to be split across git repos. 2018-08-17 15:00:42 +00:00
ip_report.py StarlingX open source release updates 2018-06-01 07:45:23 -07:00
make-installer-images.sh StarlingX open source release updates 2018-06-01 07:45:23 -07:00
mock_cfg_to_yum_conf.py StarlingX open source release updates 2018-06-01 07:45:23 -07:00
mockchain-parallel Build: Improved logging, error handling, and other small fixes 2018-08-29 16:31:09 -04:00
modify-build-cfg Shorten "addons/wr-cgcs/layers/cgcs" to just "stx" 2018-07-04 15:12:58 -04:00
patch-iso Move content from stx-utils into stx-integ or stx-update 2018-08-01 16:12:17 -04:00
patch_rebase_1 Shorten "addons/wr-cgcs/layers/cgcs" to just "stx" 2018-07-04 15:12:58 -04:00
patch_rebase_2 Shorten "addons/wr-cgcs/layers/cgcs" to just "stx" 2018-07-04 15:12:58 -04:00
patch_rebase_3 Shorten "addons/wr-cgcs/layers/cgcs" to just "stx" 2018-07-04 15:12:58 -04:00
patch_rebase_4 Shorten "addons/wr-cgcs/layers/cgcs" to just "stx" 2018-07-04 15:12:58 -04:00
sign-rpms StarlingX open source release updates 2018-06-01 07:45:23 -07:00
sign-secure-boot Uprev grub2 and shim 2018-06-27 13:04:02 -04:00
sign_iso_formal.sh StarlingX open source release updates 2018-06-01 07:45:23 -07:00
sign_patch_formal.sh StarlingX open source release updates 2018-06-01 07:45:23 -07:00
source_lookup.txt StarlingX open source release updates 2018-06-01 07:45:23 -07:00
spec-utils Build hangs on macro resolution in spec file 2018-08-13 13:52:35 -04:00
srpm-utils Build: Improved logging, error handling, and other small fixes 2018-08-29 16:31:09 -04:00
sync-jenkins StarlingX open source release updates 2018-06-01 07:45:23 -07:00
sync_jenkins.sh StarlingX open source release updates 2018-06-01 07:45:23 -07:00
tis.macros StarlingX open source release updates 2018-06-01 07:45:23 -07:00
update-efiboot-image Rename mwa-* subdirectories to match the git repo name 2018-07-04 13:17:17 -04:00
update-pxe-network-installer StarlingX open source release updates 2018-06-01 07:45:23 -07:00
wrs_orig.txt StarlingX open source release updates 2018-06-01 07:45:23 -07:00