Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
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
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
71e48948
Commit
71e48948
authored
9 years ago
by
Cam Saül
Browse files
Options
Downloads
Patches
Plain Diff
./build-uberjar lets you specify version interactively
parent
f01acad1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build-uberjar
+5
-6
5 additions, 6 deletions
build-uberjar
with
5 additions
and
6 deletions
build-uberjar
+
5
−
6
View file @
71e48948
...
...
@@ -6,14 +6,13 @@ version() {
if
[
!
$CI
]
;
then
VERSION
=
$(
./version
)
echo
"Tagging this uberjar as version '
$VERSION
'"
read
-e
-p
"Is this OK? [y/n] "
TAG_IS_OKAY_Y_OR_N
if
[
$TAG_IS_OKAY_Y_OR_N
!=
"y"
]
;
then
"Stopping now! Please check that you've pushed the correct tag to origin/master and try again. 😿"
exit
1
read
-e
-p
"What version string we use for this uberjar? [
$VERSION
] "
VERSION_RESPONSE
if
[
$VERSION_RESPONSE
]
;
then
VERSION
=
$VERSION_RESPONSE
fi
echo
"Tagging uberjar with version '
$VERSION
'."
# Ok, now generate the appropriate version.properties file.
echo
"version=
$VERSION
"
>
resources/version.properties
fi
...
...
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