Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
devops
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osm
devops
Commits
a940ab65
Commit
a940ab65
authored
7 years ago
by
Mike Marchetti
Browse files
Options
Downloads
Patches
Plain Diff
clone repo if repo doesn't already exist
Signed-off-by:
Mike Marchetti
<
mmarchetti@sandvine.com
>
parent
49fd6e56
No related branches found
Branches containing commit
Tags
v1.0.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/newtag.sh
+5
-10
5 additions, 10 deletions
tools/newtag.sh
with
5 additions
and
10 deletions
tools/newtag.sh
+
5
−
10
View file @
a940ab65
...
...
@@ -4,12 +4,10 @@ if [ $# -ne 2 ]; then
exit
1
fi
CURRENT_BRANCH
=
"v2.0"
TAG
=
"
$2
"
tag_header
=
"OSM Release TWO:"
tag_message
=
"
$tag_header
version
$TAG
"
tag_header
=
"OSM Release THREE:"
tag_message
=
"
$tag_header
version
$TAG
"
modules
=
"
juju-charms devops descriptor-package
s openvim RO SO UI osmclient"
modules
=
"
devop
s openvim RO SO UI
IM
osmclient"
list
=
""
for
i
in
$modules
;
do
if
[
"
$1
"
==
"
$i
"
-o
"
$1
"
==
"all"
]
;
then
...
...
@@ -28,12 +26,10 @@ fi
for
i
in
$list
;
do
echo
echo
$i
if
[
"
$i
"
==
"juju-charms"
]
&&
[
"
$1
"
==
"all"
]
;
then
#This is to allow "./newtag.sh all v2.0.0", and still checkout master in "juju-charms" before tagging
git
-C
$i
checkout master
else
git
-C
$i
checkout
$CURRENT_BRANCH
if
[
!
-d
$i
]
;
then
git clone https://osm.etsi.org/gerrit/osm/
$i
fi
git
-C
$i
checkout master
git
-C
$i
pull
--rebase
git
-C
$i
tag
-a
$TAG
-m
"
$tag_message
"
git
-C
$i
push origin
$TAG
--follow-tags
...
...
@@ -41,4 +37,3 @@ for i in $list; do
done
exit
0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment