Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
1b3157f7
Commit
1b3157f7
authored
9 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Task #9048: Build HEAD for trunk to aid 3rd parties.
parent
8c34c92b
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
Docker/template.in
+10
-2
10 additions, 2 deletions
Docker/template.in
with
10 additions
and
2 deletions
Docker/template.in
+
10
−
2
View file @
1b3157f7
...
...
@@ -8,7 +8,7 @@
# Variables replaced:
# ${BRANCH_NAME} = Name of this branch, relative to root
# ${BRANCH_URL} = Full subversion URL for this branch
# ${REVISION} = SVN revision number of this checkout
# ${REVISION} = SVN revision number of this checkout
(or HEAD if trunk)
# ${NOW} = now in UTC (format: 2016-01-01 10:11:12)
# ${BUILD_UID} = uid of building user (=caller)
#
...
...
@@ -45,7 +45,15 @@ export BRANCH_URL="$URL"
# ----- REVISION = 12345 -----
export
REVISION
=
`
echo
"
$SVN_INFO
"
| perl
-ne
'print "$1" if /Revision: +(.+)/;'
`
if
[
"{
$BRANCH
}"
==
"trunk"
]
;
then
# Friendly special case to be able to export the output to 3rd parties.
# They'll want the HEAD instead of the revision we happened to build with,
# and we'll don't care that much for the race condition it causes for us
# (between generating the output and using it)
export
REVISION
=
HEAD
else
export
REVISION
=
`
echo
"
$SVN_INFO
"
| perl
-ne
'print "$1" if /Revision: +(.+)/;'
`
fi
# ----- NOW = 2016-01-01 10:11:12 -----
...
...
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