projects
/
arvados-dev.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2cd1383
)
Can unpublish an individual package
author
Peter Amstutz <tetron@public.arvados.org>
Fri, 14 Feb 2020 15:56:26 +0000
(15:56 +0000)
committer
Peter Amstutz <tetron@public.arvados.org>
Fri, 14 Feb 2020 15:56:26 +0000
(15:56 +0000)
jenkins/unpublish.sh
patch
|
blob
|
history
diff --git
a/jenkins/unpublish.sh
b/jenkins/unpublish.sh
index 394dfd4373300d266550791d1603ccc3f6662984..8ce2475034b456856e782e3c493f3ba953e46944 100755
(executable)
--- a/
jenkins/unpublish.sh
+++ b/
jenkins/unpublish.sh
@@
-3,16
+3,22
@@
set -x
if [[ -z "$1" ]] ; then
set -x
if [[ -z "$1" ]] ; then
- echo "Must provide version number to unpublish"
- exit 1
+
echo "Must provide version number to unpublish"
+
exit 1
fi
VERNO=$1
fi
VERNO=$1
+PACKAGE="*"
-rm -f $(find /var/www/rpm.arvados.org/CentOS/7/testing -name *-${VERNO}*.rpm)
-createrepo /var/www/rpm.arvados.org/CentOS/7/testing/x86_64
+if [[ -n "$2" ]] ; then
+ PACKAGE="$2"
+fi
+
+rm -f $(find /var/www/rpm.arvados.org/CentOS/7/testing -name "${PACKAGE}-${VERNO}*.rpm")
+sudo -u jenkinsapt createrepo /var/www/rpm.arvados.org/CentOS/7/testing/x86_64
for fr in $(ls -d /var/lib/freight/apt/*-testing) ; do
for fr in $(ls -d /var/lib/freight/apt/*-testing) ; do
- rm -f $(find ${fr} -name
*_${VERNO}*.deb
)
- freight cache ${fr}
+ rm -f $(find ${fr} -name
"${PACKAGE}_${VERNO}*.deb"
)
+
sudo -u jenkinsapt
freight cache ${fr}
done
done
+