Project

General

Profile

« Previous | Next » 

Revision 3ae1a2ce

Added by Dominic Cleal almost 9 years ago

Add foreman-plugins-nonscl-nightly-rhel* tags

Allow building of a package in a non-SCL manner, or in both SCL and
non-SCL tags through the koji-foreman-plugins releaser.

Closes GH-752

View differences:

koji/copy-tags-commands.sh
echo kkoji add-target $PRODUCT-$VERSION-$SYSTEM $PRODUCT-$VERSION-$SYSTEM-build $PRODUCT-$VERSION-$SYSTEM
}
### Foreman
PRODUCT=foreman
# clone non-SCL OSes, nonscl tags for SCL OSes
for SYSTEM in $NONSCL_SYSTEMS $(echo $SCL_SYSTEMS | sed 's/\(^\| \)/\1nonscl-/g'); do
clone $PRODUCT-$OLD-$SYSTEM $PRODUCT-$VERSION-$SYSTEM
done
# clone SCL tags, inherit from nonscl
# clone SCL tags, inherit nonscl into build tags
for SYSTEM in $SCL_SYSTEMS; do
clone $PRODUCT-$OLD-$SYSTEM $PRODUCT-$VERSION-$SYSTEM
echo kkoji add-tag-inheritance --priority=10 $PRODUCT-$VERSION-$SYSTEM foreman-$VERSION-nonscl-$SYSTEM
echo kkoji add-tag-inheritance --priority=10 $PRODUCT-$VERSION-$SYSTEM-build $PRODUCT-$VERSION-nonscl-$SYSTEM
done
### Plugins
PRODUCT=foreman-plugins
# clone plugin tags, inherit from SCL tags
for SYSTEM in $NONSCL_SYSTEMS $SCL_SYSTEMS; do
# clone plugin tags for non-SCL OSes, nonscl tags for SCL OSes
for SYSTEM in $NONSCL_SYSTEMS $(echo $SCL_SYSTEMS | sed 's/\(^\| \)/\1nonscl-/g'); do
clone $PRODUCT-$OLD-$SYSTEM $PRODUCT-$VERSION-$SYSTEM
done
# clone SCL tags, inherit core + plugin nonscl into build tags
for SYSTEM in $SCL_SYSTEMS; do
clone $PRODUCT-$OLD-$SYSTEM $PRODUCT-$VERSION-$SYSTEM
echo kkoji add-tag-inheritance --priority=5 $PRODUCT-$VERSION-$SYSTEM-build $PRODUCT-$VERSION-nonscl-$SYSTEM
echo kkoji add-tag-inheritance --priority=15 $PRODUCT-$VERSION-$SYSTEM-build foreman-$VERSION-nonscl-$SYSTEM
done
# inherit core Foreman tags into both non-SCL and SCL plugin build tags
for SYSTEM in $NONSCL_SYSTEMS $SCL_SYSTEMS $(echo $SCL_SYSTEMS | sed 's/\(^\| \)/\1nonscl-/g'); do
echo kkoji add-tag-inheritance --priority=10 $PRODUCT-$VERSION-$SYSTEM-build foreman-$VERSION-$SYSTEM
done

Also available in: Unified diff