Commit Graph

15 Commits

Author SHA1 Message Date
Scott Little 6f3d1e5dd2 cengn reference removal - centos
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
2023-11-07 11:23:12 -05:00
Scott Little 2684e9e3fd cengn reference removal - debian
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
2023-11-06 19:51:14 +00:00
Scott Little b827624e16 rename cgcs-centos-repo to centos-repo
Story: 2006387
Task: 36912
Depends-On: https://review.opendev.org/749974
Depends-On: https://review.opendev.org/750041
Change-Id: I745a822e88aca68c207a92f14fb5370d6e3d0050
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Scott Little <scott.little@windriver.com>
2020-09-18 22:32:41 -04:00
Saul Wold f32c3e5b09 branch-repo: Give tag a better description
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>
2020-08-05 07:52:36 -07:00
Zuul 86d14b6200 Merge "Add release scripts build-context.py and branch-repo.sh" 2019-09-24 18:43:48 +00:00
Dean Troyer 8dc7f193ef Add release scripts build-context.py and branch-repo.sh
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>
2019-08-07 17:32:05 -05:00
Dean Troyer 01b64fd654 Detect opendev.org repos and skip staging repos
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>
2019-08-02 11:31:29 -05:00
Dean Troyer 8a7d023278 Remove default value of TAG from branch-stx.sh
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>
2019-02-27 14:57:30 -06:00
Dean Troyer bc2db5f50c Add branch-only mode to force skipping tags
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>
2018-12-10 15:49:27 -06:00
Dean Troyer db54abe116 Add -t to branch-stx.sh to enable a tag-only mode
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>
2018-10-24 20:05:54 -05:00
Dean Troyer 774ca8b6d0 Support feature branches in branch-stx.sh
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>
2018-09-04 09:06:18 -05:00
Dean Troyer 8966e88851 Correctly push tags to Gerrit
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>
2018-08-10 15:53:00 -05:00
Dean Troyer 2f6fa5e4e2 Skip .gitreview review when unnecessary
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>
2018-08-10 13:26:03 -05:00
Dean Troyer 77622310f3 Add --dry-run to branch-stx
Change-Id: I38c495008f0250fd08c242f4b825e1b6dcce1d0f
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-08-02 14:55:33 -05:00
Dean Troyer 5f8c7ab0f8 Add release tools
* 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>
2018-07-19 17:51:24 -05:00