Consolidated deb and rpm packaging and signing.
NOTE: Place the built Rundeck war files in
./artifacts
. The build parses version information out of the file names, so the names matter!
./gradlew \
-PpackageRelease=$RELEASE_NUM \
clean packageArtifacts
Inputs:
artifacts/*.war
Outputs:
build/distributions/*.{deb,rpm}
NOTE: The redline Java rpm library used by ospackage will not sign with our key lengh(stack overflow). For the reason we go ahead and utilize expect for signing both rpm and deb packages.
With the proper envars exported:
bash packaging/scripts/sign-packages.sh
NOTE: The Bintray Gradle plugin has few rough edges due to its implementation. Among them, only one package upload per project appears to work. We run the build once per package being published to work around this.
for PACKAGE in deb rpm; do
./gradlew --info \
-PpackagePrefix="" \
-PpackageType=$PACKAGE \
-PpackageOrg=rundeckpro \
-PpackageRevision=1 \
bintrayUpload
done