root/build-tools
Scott Little d06b9aa763 Branch and tag tools converted from wrgit to repo
Update branching and tagging tools, used by patching, to do things
the 'repo' way.  Repo has replaced wrgit.

This is complicated by ...

1) Not all repos are under our control, and so can't be branched or
tagged by us.  The tools now accepts arguments that list 'remotes' or
'projects' to which branches or tags are to be applied

2) The manifest requires an update to reference the new branch or tag
as it applies to affected projects.  Non-affected projects can
optionally be locked down by converting the revision to a sha.
The tools must now try to generate that manifest.  It might be
sub-optimal.  i.e. a revision is explicitly added to each project,
rather than using the 'default' mechanism.  Perhaps something to address
in a future update.

ORIGINATING_BRANCH=master
ORIGINATING_BUILD=20200220T023000Z
NEW_BRANCH=r/stx.4.0
STX_REMOTES="starlingx"

repo init -u https://opendev.org/starlingx/manifest -b $ORIGINATING_BRANCH
repo sync --force-sync

curl http://mirror.starlingx.cengn.ca/mirror/starlingx/${ORIGINATING_BRANCH}/centos/${ORIGINATING_BUILD}/outputs/CONTEXT.sh > ${ORIGINATING_BUILD}.context

source ${ORIGINATING_BUILD}.context
create_branches_and_tags.sh --branch=$NEW_BRANCH --remotes=$STX_REMOTES --manifest --lockdown
push_branches_tags.sh --branch=$NEW_BRANCH --remotes=$STX_REMOTES --manifest

ORIGINATING_BRANCH=r/stx.4.0
ORIGINATING_BUILD=20200220T023000Z
NEW_STX_TAG=4.0.0
NEW_GIT_HUB_TAG=stx.4.0.0
STX_REMOTES="starlingx"
GIT_HUB_REMOTES="stx-staging"

repo init -u https://opendev.org/starlingx/manifest -b $ORIGINATING_BRANCH
repo sync --force-sync

curl http://mirror.starlingx.cengn.ca/mirror/starlingx/${ORIGINATING_BRANCH}/centos/${ORIGINATING_BUILD}/outputs/CONTEXT.sh > ${ORIGINATING_BUILD}.context

source ${ORIGINATING_BUILD}.context
TAG=TEST_19.10_PATCH_0000
create_tags.sh --tag=$NEW_STX_TAG --remotes=$STX_REMOTES,$GIT_HUB_REMOTES --manifest --manifest-prefix=stx. --lock-down
create_tags.sh --tag=$NEW_GIT_HUB_TAG --remotes=$GIT_HUB_REMOTES
push_tags.sh --tag=$NEW_STX_TAG --remotes=$STX_REMOTES
push_tags.sh --tag=$NEW_GIT_HUB_TAG --remotes=$STX_REMOTES
cd .repo/manifests
git mv $TAG-default.xml stx.$TAG.xml

vi stx.$TAG.xml
   # set revision for all stx-staging projects to refs/tags/stx.4.0.0
   <project remote="stx-staging" ... revision="refs/tags/stx.4.0.0" .

vi stx.$TAG.xml
   # set default revision
   <default remote="starlingx" revision="refs/tags/4.0.0"/>

   # delete 'revision' for all starlingx projects

git add stx.$TAG.xml
git commit -s --amend
    # set title to
    Locked down manifest for StarlingX $TAG

git tag -d $TAG
git review
git tag -s -m "Tag $TAG" $TAG
git push gerrit $TAG

Change-Id: I5ac0c3e44ffda262edb416e877d46c9036cd6e92
Signed-off-by: Scott Little <scott.little@windriver.com>
2020-04-03 17:02:38 -04:00
..
branching Branch and tag tools converted from wrgit to repo 2020-04-03 17:02:38 -04:00
build-docker-images Update tag for stx-oidc-client to stx.4.0-v1.0.2 2020-03-25 15:19:07 -04:00
build-wheels Fixed broken setuptools import 2020-03-09 16:04:30 -04:00
build_guest build-tools: Convert wrsroot -> sysadmin 2019-06-14 14:48:25 -07:00
build_iso Remove rdma since it is replaced by rdma-core 2020-03-11 09:29:21 +08:00
build_minimal_iso build-tools: Convert wrsroot -> sysadmin 2019-06-14 14:48:25 -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 Update to build tools to support Build layering. 2020-02-07 16:36:40 -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-avoidance-utils.sh Build avoidance for all build-type values 2020-03-30 16:52:13 -04:00
build-guest Prepare the build tools for code restucturing 2019-09-05 15:18:10 -04:00
build-helm-charts.sh Update old_image_reference regex 2020-01-21 17:45:50 +00:00
build-img Shorten "addons/wr-cgcs/layers/cgcs" to just "stx" 2018-07-04 15:12:58 -04:00
build-iso Use private yum cache dir in build scripts 2020-03-19 10:21:00 -04:00
build-pkg-srpm StarlingX open source release updates 2018-06-01 07:45:23 -07:00
build-pkgs Use private yum cache dir in build scripts 2020-03-19 10:21:00 -04:00
build-pkgs-parallel Build avoidance for all build-type values 2020-03-30 16:52:13 -04:00
build-pkgs-serial Build avoidance for all build-type values 2020-03-30 16:52:13 -04:00
build-remote-cli.sh Support custom docker registries for remote cli 2020-03-18 16:29:49 +02:00
build-rpms Build Avoidance 2018-09-17 16:41:31 -04:00
build-rpms-parallel Use private yum cache dir in build scripts 2020-03-19 10:21:00 -04:00
build-rpms-serial Use private yum cache dir in build scripts 2020-03-19 10:21:00 -04:00
build-srpms Build Avoidance 2018-09-17 16:41:31 -04:00
build-srpms-common.sh Build avoidance fixes 2020-02-21 16:07:05 -05:00
build-srpms-parallel Build avoidance for all build-type values 2020-03-30 16:52:13 -04:00
build-srpms-serial Build avoidance for all build-type values 2020-03-30 16:52:13 -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 Update to build tools to support Build layering. 2020-02-07 16:36:40 -05:00
create_dependancy_cache.py Remove unused variables 2019-02-01 22:58:37 +00:00
default_build_srpm Update to build tools to support Build layering. 2020-02-07 16:36:40 -05: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-repo-utils.sh Branch and tag tools converted from wrgit to repo 2020-04-03 17:02:38 -04:00
git-utils.sh Branch and tag tools converted from wrgit to repo 2020-04-03 17:02:38 -04:00
image-utils.sh Update to build tools to support Build layering. 2020-02-07 16:36:40 -05:00
ip_report.py Python 3 compatibility: use print as a function. 2018-10-12 13:42:44 +00:00
make-installer-images.sh Add lz4 to squashfs img and clean unused rpm 2018-09-18 18:28:42 +08:00
mock_cfg_to_yum_conf.py Python 3 compatibility: use print as a function. 2018-10-12 13:42:44 +00:00
mockchain-parallel Update mockchain-parallel wrapper for mock-1.4.20 2019-10-21 13:26:42 -04:00
mockchain-parallel-1.3.4 Update to build tools to support Build layering. 2020-02-07 16:36:40 -05:00
mockchain-parallel-1.4.16 Update to build tools to support Build layering. 2020-02-07 16:36:40 -05:00
modify-build-cfg Update to build tools to support Build layering. 2020-02-07 16:36:40 -05:00
patch-iso Use private yum cache dir in build scripts 2020-03-19 10:21:00 -04:00
patch_rebase_1 Prepare the build tools for code restucturing 2019-09-05 15:18:10 -04:00
patch_rebase_2 Prepare the build tools for code restucturing 2019-09-05 15:18:10 -04:00
patch_rebase_3 Prepare the build tools for code restucturing 2019-09-05 15:18:10 -04:00
patch_rebase_4 Prepare the build tools for code restucturing 2019-09-05 15:18:10 -04:00
repo-utils.sh Branch and tag tools converted from wrgit to repo 2020-04-03 17:02:38 -04:00
sign-rpms Prepare the build tools for code restucturing 2019-09-05 15:18:10 -04:00
sign-secure-boot Build Avoidance 2018-09-17 16:41:31 -04:00
sign_iso_formal.sh cleanup signing scripts 2018-09-07 14:44:37 -04:00
sign_patch_formal.sh cleanup signing scripts 2018-09-07 14:44:37 -04:00
source_lookup.txt Drop smartpm reference from source_lookup.txt 2020-01-15 23:46:00 -05:00
spec-utils Build hangs on macro resolution in spec file 2018-08-13 13:52:35 -04:00
srpm-utils Prepare the build tools for code restucturing 2019-09-05 15:18:10 -04:00
stxRpmUtils.py Correct build failure after mock updrade 2019-06-06 13:39:34 -04:00
sync-jenkins StarlingX open source release updates 2018-06-01 07:45:23 -07:00
sync_jenkins.sh Fix linters issues and enable tox/zuul linters job as gate 2018-09-05 22:42:11 +08:00
tis.macros StarlingX open source release updates 2018-06-01 07:45:23 -07:00
update-efiboot-image Prepare the build tools for code restucturing 2019-09-05 15:18:10 -04:00
update-pxe-network-installer Update to build tools to support Build layering. 2020-02-07 16:36:40 -05:00
wrs_orig.txt StarlingX open source release updates 2018-06-01 07:45:23 -07:00