jenkins: leaf-build: Index full device directory
* Otherwise old builds get lost
Change-Id: I0382dd00017314825c545c07c0bdd9715c713c9a
diff --git a/jenkins/leaf-build.sh b/jenkins/leaf-build.sh
index f877951..dd92956 100755
--- a/jenkins/leaf-build.sh
+++ b/jenkins/leaf-build.sh
@@ -262,7 +262,8 @@
done
OTA_INDEX=$(cat .ota_index_tmp)
- ssh jenkins@$MASTER_IP "$OTA_INDEX \"$DL_DIR\" \"$WWW_DIR\" \"https://${DL_DIR/\/var\/www\//}\" \"$JENKINS_DEVICE\""
+ DEVICE_DIR=$(dirname "$DL_DIR")
+ ssh jenkins@$MASTER_IP "$OTA_INDEX \"$DEVICE_DIR\" \"$WWW_DIR\" \"https://${DEVICE_DIR/\/var\/www\//}\" \"$JENKINS_DEVICE\""
}
function cleanup() {