StarlingX build source tree root
Go to file
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
build-data Build avoidance fixes 2020-02-21 16:07:05 -05:00
build-tools Branch and tag tools converted from wrgit to repo 2020-04-03 17:02:38 -04:00
stx Updating .gitignore with new oidc-auth-armada-app repo 2019-12-24 08:41:40 -06:00
.gitignore Update tox.ini bashate to test all bash scripts 2020-02-12 19:20:43 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:52:37 +00:00
.zuul.yaml Adding job to upload commits to GitHub 2020-02-06 15:00:45 -05:00
LICENSE StarlingX open source release updates 2018-06-01 07:45:23 -07:00
test-requirements.txt Update tests to new default 2018-06-08 20:09:47 -05:00
tox.ini Update tox.ini bashate to test all bash scripts 2020-02-12 19:20:43 +00:00