Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mailingms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
tgms
mailingms
Commits
8b65b42f
Commit
8b65b42f
authored
7 years ago
by
anpryl
Browse files
Options
Downloads
Patches
Plain Diff
Fix cleanup and release scripts
parent
9fda7c56
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
cleanup
+6
-1
6 additions, 1 deletion
cleanup
ctxtg
+1
-0
1 addition, 0 deletions
ctxtg
release
+1
-0
1 addition, 0 deletions
release
remove_version
+2
-0
2 additions, 0 deletions
remove_version
with
10 additions
and
1 deletion
cleanup
+
6
−
1
View file @
8b65b42f
#!/
bin/ba
sh
#!/
usr/bin/env
sh
warn
()
{
echo
"
$@
"
>
&2
;
}
die
()
{
warn
"
$@
"
;
exit
1
;
}
...
...
@@ -47,8 +47,13 @@ check_versions () {
}
remove_versions
()
{
current
=
0
for
var
in
"
$@
"
do
current
=
$((
current
+
1
))
if
[
"
$current
"
=
"$#"
]
;
then
export
REMOVE_ALL_VERSION
=
1
fi
./remove_version
$var
||
die
"Failed to delete
$var
"
done
}
...
...
This diff is collapsed.
Click to expand it.
ctxtg
@
bbf5025b
Subproject commit bbf5025be1160c371b2fec47e500431fe7a218bb
This diff is collapsed.
Click to expand it.
release
+
1
−
0
View file @
8b65b42f
...
...
@@ -36,6 +36,7 @@ main() {
release_migrate
||
die
'Failed'
move_artifacts
||
die
'Failed'
trap
- EXIT
git add
".release/
${
version
}
"
.
*
git commit
-m
"Release
$version
[ci-skip]"
||
die
'Failed'
fi
git tag
-a
-m
release
"
$version
"
||
die
'Failed'
...
...
This diff is collapsed.
Click to expand it.
remove_version
+
2
−
0
View file @
8b65b42f
...
...
@@ -16,6 +16,8 @@ remove_version_from_artifacts() {
local
addr
=
'artifacts@artifacts.tgms.qarea.org'
local
base
=
"artifacts/
$(
basename
$(
pwd
))
/
$1
"
ssh
"
$addr
"
"rm -f
$base
.tgz"
||
die
"Failed to remove tgz file"
test
-z
"
$REMOVE_ALL_VERSION
"
||
ssh
"
$addr
"
"rm -f
$base
.migrate"
||
die
"Failed to remove migrate file"
test
-z
"
$REMOVE_ALL_VERSION
"
||
ssh
"
$addr
"
"rm -f
$base
.patch"
||
die
"Failed to remove patch file"
}
remove_version_from_migrate
()
{
...
...
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