Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Colas Pomies
LbNightlyTools
Commits
eda15d51
Commit
eda15d51
authored
May 07, 2015
by
cpomies
Browse files
Added important file for last commit : get_remote_directory.sh
parent
73ec23b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
jenkins/utils.d/get_remote_directory.sh
0 → 100644
View file @
eda15d51
export
RSYNC_SERVER
=
${
RSYNC_SERVER
:-
buildlhcb
.cern.ch
}
export
RSYNC_WORKDIR
=
${
RSYNC_WORKDIR
:-
/data/artifacts
}
function
get_remote_directory
{
USAGE
=
"get_directory_rsync flavour slot slot_build_id"
if
[
$#
!=
3
]
;
then
echo
"ERROR : Usage :
${
USAGE
}
"
exit
1
fi
flavour
=
"
$1
"
slot
=
"
$2
"
slot_build_id
=
"
$3
"
RSYNC_DIR
=
"
${
RSYNC_WORKDIR
}
/
${
flavour
}
/
${
slot
}
/
${
slot_build_id
}
"
if
[
!
-d
"
${
RSYNC_DIR
}
"
]
;
then
RSYNC_DIR
=
"
${
RSYNC_SERVER
}
:
${
RSYNC_DIR
}
"
fi
echo
"
${
RSYNC_DIR
}
"
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment