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
ca39bb1f
Commit
ca39bb1f
authored
14 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
LMS-1610 fix bug
SVN: 17876
parent
971458ce
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
integration-tests/common.bash
+3
-3
3 additions, 3 deletions
integration-tests/common.bash
with
3 additions
and
3 deletions
integration-tests/common.bash
+
3
−
3
View file @
ca39bb1f
...
@@ -19,7 +19,7 @@ OPENBIS_SERVER=$WORK/openBIS-server
...
@@ -19,7 +19,7 @@ OPENBIS_SERVER=$WORK/openBIS-server
CI_HOST
=
cisd-vesuvio.ethz.ch
CI_HOST
=
cisd-vesuvio.ethz.ch
SSH_CRUISE_CONTROL_NAME
=
ci@
$CI_HOST
SSH_CRUISE_CONTROL_NAME
=
ci@
$CI_HOST
HUDSON_ARTIFACTS
=
$HOME
/
hudson/jobs
HUDSON_ARTIFACTS
=
hudson/jobs
CI_HOST_IP
=
`
host
$CI_HOST
|grep address|awk
'{print $4}'
`
CI_HOST_IP
=
`
host
$CI_HOST
|grep address|awk
'{print $4}'
`
MY_HOST
=
`
hostname
`
MY_HOST
=
`
hostname
`
MY_HOST_IP
=
`
host
$MY_HOST
|grep address|awk
'{print $4}'
`
MY_HOST_IP
=
`
host
$MY_HOST
|grep address|awk
'{print $4}'
`
...
@@ -325,12 +325,12 @@ function fetch_latest_artifacts_from_cruise_control {
...
@@ -325,12 +325,12 @@ function fetch_latest_artifacts_from_cruise_control {
local
dest_dir
=
$2
local
dest_dir
=
$2
local
last_build
=
"
$HUDSON_ARTIFACTS
/
$proj_name
/lastSuccessful/archive/_main/targets/dist"
local
last_build
=
"
$HUDSON_ARTIFACTS
/
$proj_name
/lastSuccessful/archive/_main/targets/dist"
local
list_cmd
=
"ls -1
$last_build
| sort | tail -1"
if
[
$MY_HOST_IP
==
$CI_HOST_IP
]
;
then
if
[
$MY_HOST_IP
==
$CI_HOST_IP
]
;
then
local
last
=
`
eval
$list_cmd
`
local
last
=
`
ls
-1
$HOME
/
$last_build
|
sort
|
tail
-1
`
echo
"Fetching artifacts for
$proj_name
:
$last
"
echo
"Fetching artifacts for
$proj_name
:
$last
"
cp
$last_build
/
*
.zip
$dest_dir
cp
$last_build
/
*
.zip
$dest_dir
else
else
local
list_cmd
=
"ls -1
$last_build
| sort | tail -1"
local
last
=
`
echo
$list_cmd
| ssh
$SSH_CRUISE_CONTROL_NAME
-T
`
local
last
=
`
echo
$list_cmd
| ssh
$SSH_CRUISE_CONTROL_NAME
-T
`
echo
"Fetching artifacts for
$proj_name
:
$last
"
echo
"Fetching artifacts for
$proj_name
:
$last
"
scp
$SSH_CRUISE_CONTROL_NAME
:
$last_build
/
*
.zip
$dest_dir
scp
$SSH_CRUISE_CONTROL_NAME
:
$last_build
/
*
.zip
$dest_dir
...
...
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