$ cat releases/packagecloud-1.6-tree.yaml
---
- package_name: tree-1.6.0
+ package_name: tree
packages:
- - name: tree-1.6.0-10.el7.x86_64.rpm
- - name: test.rpm
+ - name: tree_1.6.0_amd64.deb
+ - name: tree-dev_1.6.0_amd64.deb
+ - name: tree-devel-1.6.0-1.x86_64.rpm
+ - name: tree-1.6.0-1.x86_64.rpm
ref: 5555cd2dd345fbeec0d3e2162e00835852342cda
log_dir: example-project-packagecloud-merge/21
version: 1.6.0
--- /dev/null
+---
+fixes:
+ - |
+ Fix zgrep pattern for verify_packagecloud_match_release function. Function
+ was looking for "Successfully Uploaded" pattern, which is not the correct
+ response when using packagecloud gem to push packages to packagecloud.
+
+ Fix lf-release docs example to reflect changes to package_name. Package_name
+ should not include the version in the name.
echo "INFO: Fetching console log from $logs_url"
wget -q -P /tmp "${logs_url}/"console.log.gz
echo "INFO: Searching for uploaded step, package name $PACKAGE_NAME and version $VERSION in job log"
- if zgrep "Successfully uploaded" /tmp/console.log.gz | grep "$PACKAGE_NAME" | grep "$VERSION"; then
+ if zgrep -E "Pushing.*$PACKAGE_NAME.*$VERSION.*success\!" /tmp/console.log.gz; then
echo "INFO: found expected strings in job log"
else
echo "ERROR: failed to find expected strings in job log"