Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
1d6f7263
Commit
1d6f7263
authored
14 years ago
by
kaloyane
Browse files
Options
Downloads
Patches
Plain Diff
minor: auto-publish javadocs on
http://svncisd.ethz.ch/doc/javadoc/
with the sprint build
SVN: 20375
parent
ad3eec41
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openbis_all/source/bash/build.sh
+21
-0
21 additions, 0 deletions
openbis_all/source/bash/build.sh
openbis_all/source/bash/tag_and_build.sh
+21
-0
21 additions, 0 deletions
openbis_all/source/bash/tag_and_build.sh
with
42 additions
and
0 deletions
openbis_all/source/bash/build.sh
+
21
−
0
View file @
1d6f7263
...
@@ -16,6 +16,8 @@ fi
...
@@ -16,6 +16,8 @@ fi
FULL_VER
=
S
$VER
.
$SUBVER
FULL_VER
=
S
$VER
.
$SUBVER
SPRINT_SERVER
=
sprint-openbis.ethz.ch
SPRINT_SERVER
=
sprint-openbis.ethz.ch
SPRINT_INSTALL_SCRIPT
=
sprint_install.sh
SPRINT_INSTALL_SCRIPT
=
sprint_install.sh
# this folder is publicly accessible at http://svncisd.ethz.ch/doc/javadoc/
JAVADOC_FOLDER
=
~/fileserver/doc/javadoc
# Unset this to do a dry-run (like rsync -n) and set it to actually execute the commands
# Unset this to do a dry-run (like rsync -n) and set it to actually execute the commands
# unset EXECUTE_COMMANDS
# unset EXECUTE_COMMANDS
...
@@ -83,6 +85,24 @@ function copy_to_sprint_server {
...
@@ -83,6 +85,24 @@ function copy_to_sprint_server {
state_end
state_end
}
}
function
publish_javadocs
{
state_start
"Publishing javadocs ..."
if
[
$EXECUTE_COMMANDS
]
;
then
pushd
.
cp
-R
tmp/openbis_all/targets/dist/javadoc
$JAVADOC_FOLDER
/
$FULL_VER
cd
$JAVADOC_FOLDER
rm
-f
current
ln
-s
$FULL_VER
current
popd
fi
state_end
}
function
install_sprint
{
function
install_sprint
{
# If sprint install script is present and executable, run it!
# If sprint install script is present and executable, run it!
if
[
$EXECUTE_COMMANDS
]
;
then
if
[
$EXECUTE_COMMANDS
]
;
then
...
@@ -105,6 +125,7 @@ setup
...
@@ -105,6 +125,7 @@ setup
build
build
copy_to_cisd_server
copy_to_cisd_server
copy_to_sprint_server
copy_to_sprint_server
publish_javadocs
install_sprint
install_sprint
state_start Done!
state_start Done!
This diff is collapsed.
Click to expand it.
openbis_all/source/bash/tag_and_build.sh
+
21
−
0
View file @
1d6f7263
...
@@ -20,6 +20,8 @@ FULL_VER=S$VER.$SUBVER
...
@@ -20,6 +20,8 @@ FULL_VER=S$VER.$SUBVER
SPRINT_SERVER
=
sprint-openbis.ethz.ch
SPRINT_SERVER
=
sprint-openbis.ethz.ch
CISD_SERVER
=
cisd-vesuvio.ethz.ch
CISD_SERVER
=
cisd-vesuvio.ethz.ch
SPRINT_INSTALL_SCRIPT
=
sprint_install.sh
SPRINT_INSTALL_SCRIPT
=
sprint_install.sh
# this folder is publicly accessible at http://svncisd.ethz.ch/doc/javadoc/
JAVADOC_FOLDER
=
~/fileserver/doc/javadoc
# Unset this to do a dry-run (like rsync -n) and set it to actually execute the commands
# Unset this to do a dry-run (like rsync -n) and set it to actually execute the commands
# unset EXECUTE_COMMANDS
# unset EXECUTE_COMMANDS
...
@@ -96,6 +98,24 @@ function copy_to_sprint_server {
...
@@ -96,6 +98,24 @@ function copy_to_sprint_server {
state_end
state_end
}
}
function
publish_javadocs
{
state_start
"Publishing javadocs ..."
if
[
$EXECUTE_COMMANDS
]
;
then
pushd
.
cp
-R
tmp/openbis_all/targets/dist/javadoc
$JAVADOC_FOLDER
/
$FULL_VER
cd
$JAVADOC_FOLDER
rm
-f
current
ln
-s
$FULL_VER
current
popd
fi
state_end
}
function
install_sprint
{
function
install_sprint
{
# If sprint install script is present and executable, run it!
# If sprint install script is present and executable, run it!
if
[
$EXECUTE_COMMANDS
]
;
then
if
[
$EXECUTE_COMMANDS
]
;
then
...
@@ -119,6 +139,7 @@ tag
...
@@ -119,6 +139,7 @@ tag
build
build
copy_to_cisd_server
copy_to_cisd_server
copy_to_sprint_server
copy_to_sprint_server
publish_javadocs
install_sprint
install_sprint
state_start Done!
state_start Done!
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