Skip to content

Commit 9b77ba5

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "imagebuild: coreos: Build sha256 checksum files"
2 parents a07c855 + 4f938e8 commit 9b77ba5

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎imagebuild/coreos/full_trusty_build.sh‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,20 @@ else
3636
cp $BUILD_DIR/coreos_production_pxe.vmlinuz $BUILD_DIR/coreos_production_pxe-$BRANCH_PATH.vmlinuz
3737
fi
3838

39+
# Generate checksum files
40+
pushd $BUILD_DIR > /dev/null
41+
for x in *.vmlinuz *.cpio.gz; do
42+
sha256sum $x > $x.sha256
43+
done
44+
popd > /dev/null
45+
3946
tar czf ipa-coreos-$BRANCH_PATH.tar.gz $BUILD_DIR/coreos_production_pxe_image-oem-$BRANCH_PATH.cpio.gz $BUILD_DIR/coreos_production_pxe-$BRANCH_PATH.vmlinuz
4047
if [ "$BRANCH_PATH" = "master" ]; then
4148
# again, publish with and without the branch on master for historical reasons
4249
cp ipa-coreos-$BRANCH_PATH.tar.gz ipa-coreos.tar.gz
4350
fi
51+
52+
# Generate checksum files
53+
for x in *.tar.gz; do
54+
sha256sum $x > $x.sha256
55+
done

0 commit comments

Comments
 (0)