mirror.starlingx.cengn.ca no longer exists. CENGN is kindly forwarding
requests to the new location mirror.starlingx.windriver.com for now, but
that will only last a few months. We need to replace all the references
with the new URL.
I will also remove as many 'cengn' references as possible, replacing
them with 'stx_mirror'
Partial-Bug: 2033555
Signed-off-by: Scott Little <scott.little@windriver.com>
Change-Id: I09e3f564edef2049786c965a86dbcaacac359801
mirror.starlingx.cengn.ca no longer exists. CENGN is kindly forwarding
requests to the new location mirror.starlingx.windriver.com for now, but
that will only last a few months. We need to replace all the references
with the new URL.
I will also remove as many 'cengn' references as possible, replacing
them with 'stx_mirror'
TESTS
=====
Run "stx config --upgrade" with various combinations of the old,
new & missing values.
Run "./stx-init-env --rebuild" and verify stx-localrc is updated
as well.
Partial-Bug: 2033555
Signed-off-by: Scott Little <scott.little@windriver.com>
Change-Id: I18491fb5aa0087029d51bb35c236613c1dc092bc
When we are using the script for tagging only make sure we use a better
description of the tag since it's the Release tag vs the Branching tag.
Change-Id: I50f34c818c650a422d415b084a42345307baa5c8
Signed-off-by: Saul Wold <sgw@linux.intel.com>
These scripts replace the earlier branch-stx.sh and getrepo.sh
and are more generally useful in that the assumptions regarding
branch and tag naming have all been removed.
build-context.py pulls repo information from a manifest file
and optionally adds the specific context SHAs from the build
output script CONTEXT.sh. By default it processes all repos
from the all remotes in the manifest. Use --remote to select
one or more remotes (repeat option for more than one remote).
The result can be fed into branch-repo.sh to create new branches
and/or tags corresponding to a specific build context.
For example, to fetch only the starlingx remote repos:
release/build-context.py \
--remote starlingx \
--context http://mirror.starlingx.cengn.ca/mirror/starlingx/master/centos/latest_green_build/outputs/CONTEXT.sh \
https://opendev.org/starlingx/manifest/raw/branch/master/default.xml | \
release/branch-repo.sh -b r/stx.2.0 -t v2.0.0.rc0
branch-repo.sh makes a number of small assumption changes from branch-stx.sh
in the branch_repo() function. It corrects a stray merge commit being introduced
when attempting to only tag a branch that has not been pushed to the origin
yet. This might occur during a series of local tests using --dry-run.
It also allows passing in a path value rather than just assuming the
repo name.
Change-Id: I3d6a510cc2c37d10c468ac273178b3bad8e42c01
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
StarlingX's Gerrit repos are now in opendev.org domain,
handle both in case we still have the old domain in the
manifest and fall back on the redirects.
Only branch the Gerrit repos by default, the staging repos
ae now treated like other third-party repos and selected via
the specific version/branch used.
Change-Id: Ic23ffa25bb88eaa5d8014a636b97f5b0d751561a
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
This turned out to be less useful and more painful than anticipated
so do not set a default value for TAG. Also remove the -b option
that was used to hack around this default value.
Change-Id: I7b268e6798a4e9b6adf845401f8dcc89a4be32ac
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
Setting TAG="" didn't work and isn't great UX anyway so
let's add -b to just set BRANCH_ONLY mode to match -t
for TAG_ONLY.
Change-Id: I4223504b4ec215376722037ecfab1416e1195f9f
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
We need to be able to tag final releases without creating a new branch.
Changing the starting branch (formerly 'master') to be the same as the
destination branch has the desired effect so the -t option does that
in addition to skipping the automatic .gitreview update.
Note that setting the source branch (SRC_BRANCH) to something other than
master is also something we will need in the regualt branching mode
now that we have default (working) branches in some of the staging
repos set to names similar to stx/v1.2.3 to represent the starting point
in the upstream repo of our working branch.
Change-Id: Id0cb485a4f8a2ebd3feaf602a140f66ed3b91322
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
This changes branch-stx.sh to not assume that a manifest file will
be used to create the list of repos to process, and allow direct
repo URLs on the command line.
Change-Id: Ie2bbfa314b33d2b2b810ee479b4a0158e9d819bf
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
The tags were missing from the branch push to Gerrit. Also, tags
pushed to Gerrit must be signed, so gpg and git must both be
properly configured for this to run now.
Change-Id: I97f3a4364f090e1b42ac0fc2ba7554c164013345
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
This allows the process to run more than once in a given repo
without erroring on the already-patched .gitreview checkout.
Change-Id: Iebdf64c87d0ec497b16ce66c48c0c5e4dee5554e
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
* branch-stx.sh is a first cut at creating milestone/release branches
in StarlingX repos. It includes branch creation and tagging the initial branch
point, and for Gerrit-based repos it creates a review to update the .gitreview
file to default to the new branch.
* getrepo.sh extracts repository names from given remotes to eliminate the
need to maintain that list separately.
Change-Id: I5d73c32ec0f14520d3531d8b4cbce0ce4111396e
Signed-off-by: Dean Troyer <dtroyer@gmail.com>