Consolidated deb and rpm packaging and signing.
NOTE: Create a directory named
artifactsin the root directory and place the built Rundeck WAR files there.
The build parses version information out of the file names, so the names matter!
NOTE:
-PlibsDirshould point to theRundeck oss packaging/libdirectory.
./gradlew \
-PpackageRelease=$RELEASE_NUM \
-PlibsDir=../lib \
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.shNOTE: 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