summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-02 12:08:41 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-02 12:08:41 +0100
commit89c05d3c260a1c9c6f04b33b4c48391f25ffb837 (patch)
tree717e9d944b05636e158b00ffbaaf748d177430b2 /bin
parentd77f816b4ce1084055d2ad52e189cf739b24d409 (diff)
downloadjenkins.debian.net-89c05d3c260a1c9c6f04b33b4c48391f25ffb837.tar.xz
reproducible: publish_page(): explain correct target
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_common.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index 0bb7cd66..80a67fa2 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -186,12 +186,17 @@ write_page_meta_sign() {
}
publish_page() {
- cp $PAGE /var/lib/jenkins/userContent/$1/
- if [ "$VIEW" = "$MAINVIEW" ] ; then
- cp $PAGE /var/lib/jenkins/userContent/reproducible.html
+ if [ "$1" = "" ] ; then
+ TARGET=$PAGE
+ if [ "$VIEW" = "$MAINVIEW" ] ; then
+ cp $PAGE /var/lib/jenkins/userContent/reproducible.html
+ fi
+ else
+ TARGET=$1/$PAGE
fi
+ cp $PAGE /var/lib/jenkins/userContent/$TARGET
rm $PAGE
- echo "Enjoy $REPRODUCIBLE_URL/$PAGE"
+ echo "Enjoy $REPRODUCIBLE_URL/$TARGET"
}
set_package_class() {