Use : add 'rpmbuildstage: bb' option at the OBS Project config.
Modify : build -> send BUILD_RPM_BUILD_STAGE option to VM build.data
build.pm -> precheck the rpmbuildstage: option.
Related package: bs_worker of the obs-server package.
Change-Id: Ia6c7daa590081ef90368b3748556543e3f495e91
} else {
push @{$config->{'constraint'}}, $l;
}
+ } elsif ($l0 eq 'rpmbuildstage:') { # use the rpmbuild --stage option
+ $config->{'rpmbuildstage'} = $l[0];
} elsif ($l0 !~ /^[#%]/) {
warn("unknown keyword in config: $l0\n");
}
echo "BUILDENGINE='$BUILDENGINE'" >> $BUILD_ROOT/.build/build.data
echo "CCACHE='$CCACHE'" >> $BUILD_ROOT/.build/build.data
echo "ABUILD_TARGET='$ABUILD_TARGET'" >> $BUILD_ROOT/.build/build.data
+ # use the rpmbuild --stage option 689
+ if [ ! -z $BUILD_RPM_BUILD_STAGE ]; then 690
+ echo "BUILD_RPM_BUILD_STAGE='-$BUILD_RPM_BUILD_STAGE'" >> $BUILD_ROOT/.build/build.data 691
+ fi
# fallback time for broken hosts
date '+@%s' > $BUILD_ROOT/.build/.date
# we're done with the root file system, unmount