Skip to content

Commit

Permalink
Generate a .milestone artifact for kiwi product builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Nov 28, 2018
1 parent 8766811 commit 6d21a55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Build/Kiwi.pm
Expand Up @@ -130,6 +130,7 @@ sub kiwiparse_product {
for my $po (@{$productoptions->{'productoption'} || []}) {
$ret->{'sourcemedium'} = $po->{'_content'} if $po->{'name'} eq 'SOURCEMEDIUM';
$ret->{'debugmedium'} = $po->{'_content'} if $po->{'name'} eq 'DEBUGMEDIUM';
$ret->{'milestone'} = $po->{'_content'} if $po->{'name'} eq 'BETA_VERSION';
}
}
if ($instsource->{'architectures'}) {
Expand Down
6 changes: 5 additions & 1 deletion build-recipe-kiwi
Expand Up @@ -347,6 +347,7 @@ run_suse_isolinux() {
}

perform_product_bundle() {
local milestone=$(kiwi_query_recipe milestone)
pushd $BUILD_ROOT/$TOPDIR/KIWIROOT/main
for i in * ; do
test -e "$i" || continue
Expand All @@ -357,7 +358,10 @@ perform_product_bundle() {
fi
mv "$i" $BUILD_ROOT/$TOPDIR/KIWI/. ;;
*.packages) mv $i $BUILD_ROOT/$TOPDIR/OTHER/. ;;
*.report) mv $i $BUILD_ROOT/$TOPDIR/OTHER/. ;;
*.report)
mv $i $BUILD_ROOT/$TOPDIR/OTHER/.
test -n "$milestone" && echo "$milestone" > $BUILD_ROOT/$TOPDIR/OTHER/${i%.report}.milestone
;;
scripts) ;;
*0) ;;
*) test -d $i -a "$drop_repo" != true && mv $i $BUILD_ROOT/$TOPDIR/KIWI/. ;;
Expand Down

0 comments on commit 6d21a55

Please sign in to comment.