Skip to content

rundeck/packaging

Repository files navigation

Rundeck DEB/RPM Packaging

Consolidated deb and rpm packaging and signing.

Usage

Package

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}

Sign

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

Publish

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published