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: I5b24b370c76e352b6a872e7e329ac49b9cfd7762
(cherry picked from commit
5de2f8e79be61c2d405302aaa1dba961a3129c81)
} 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 "VM_TYPE='$VM_TYPE'" >> $BUILD_ROOT/.build/build.data
echo "shell='$shell'" >> $BUILD_ROOT/.build/build.data
echo "statistics='$statistics'" >> $BUILD_ROOT/.build/build.data
+ # use the rpmbuild --stage option
+ if [ ! -z $BUILD_RPM_BUILD_STAGE ]; then
+ echo "BUILD_RPM_BUILD_STAGE='-$BUILD_RPM_BUILD_STAGE'" >> $BUILD_ROOT/.build/build.data
+ fi
# fallback time for broken hosts
date '+@%s' > $BUILD_ROOT/.build/.date
if [ "$VM_TYPE" = 'emulator' ]; then