Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Sherwood
athena
Commits
bae0e820
Commit
bae0e820
authored
6 years ago
by
Oana Vickey Boeriu
Browse files
Options
Downloads
Patches
Plain Diff
RPMs copy to eos script updated to create repodata on the local machine and then copy it to eos.
parent
4e438d41
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Build/AtlasBuildScripts/copy_rpm_eos.sh
+11
-4
11 additions, 4 deletions
Build/AtlasBuildScripts/copy_rpm_eos.sh
with
11 additions
and
4 deletions
Build/AtlasBuildScripts/copy_rpm_eos.sh
+
11
−
4
View file @
bae0e820
...
...
@@ -58,6 +58,7 @@ if [ "$WEEKDAY" = "" ]; then
else
DDAY
=
${
WEEKDAY
}
fi
echo
"====================================================="
echo
"=== STARTING RPMs copy to /eos at
`
date
`
"
echo
"====================================================="
...
...
@@ -80,13 +81,18 @@ _retry_() {
return
0
}
if
[
!
-d
${
DESTDIR
}
]
;
then
echo
"mkdir -p
${
DESTDIR
}
"
_retry_
mkdir
-p
${
DESTDIR
}
if
[
!
-d
${
DESTDIR
}
]
;
then
((
ERROR_COUNT++
))
;
fi
#avoid false positive eos error if the directory was actually created
fi
echo
"====================================================="
echo
"=== Create repodata on local machine"
echo
"====================================================="
echo
"nicos_rpm::::::: createrepo --workers 8 --update
${
SOURCEDIR
}
:::::::"
`
date
`
createrepo
--workers
8
--update
${
SOURCEDIR
}
||
((
ERROR_COUNT++
))
arr_rpm
=(
`
(
shopt
-s
nocaseglob
;
ls
${
SOURCEDIR
}
/
*
.rpm
)
`
)
if
[
"
${#
arr_rpm
[@]
}
"
-le
0
]
;
then
echo
"nicos_rpm: Warning: no rpm files are found in
${
SOURCEDIR
}
"
...
...
@@ -98,10 +104,11 @@ if [ "${#arr_rpm[@]}" -le 0 ]; then
_retry_
cp
-a
$ele
${
DESTDIR
}
||
((
ERROR_COUNT++
))
done
fi
echo
"====================================================="
echo
"===
Update http RPM
s location"
echo
"===
Copy repodata to nightly eo
s location"
echo
"====================================================="
echo
"
nicos_rpm::::::: createrepo --workers 8 --update
${
DESTDIR
}
:::::::"
`
date
`
c
re
aterepo
--workers
8
--up
dat
e
${
DESTDIR
}
||
((
ERROR_COUNT++
))
echo
"
Info: copying
${
SOURCEDIR
}
/repodata to
${
DESTDIR
}
"
_
re
try_
cp
-a
-rf
${
SOURCEDIR
}
/repo
dat
a
${
DESTDIR
}
||
((
ERROR_COUNT++
))
exit
${
ERROR_COUNT
}
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