Create or Update Unsigned Release Bundles - Declarative Pipeline Syntax

JFrog Integrations Documentation

Content Type
Integrations
ft:sourceType
Paligo

The dsCreateReleaseBundle and dsUpdateReleaseBundle steps create and update a release bundle on JFrog Distribution. The steps accept the configured JFrog Platform ID as well as the release bundle name and release bundle version to be created. The steps also accept a File Spec, which defines the files in Artifactory to be bundled into the release bundle.

Create a release bundle

dsCreateReleaseBundle(
    serverId: "jfrog-instance-1",
    name: "example-release-bundle",
    version: "1",
    spec: """{
        "files": [{
            "pattern": "libs-release-local/ArtifactoryPipeline.zip"
        }]
    }""",
        // The default is "plain_text". The syntax for the release notes. Can be one of 'markdown', 'asciidoc', or 'plain_text'.
    releaseNotesSyntax: "markdown",
        // Optional. If set to true, automatically signs the release bundle version.
    signImmediately: true,
    // Optional. Path to a file describing the release notes for the release bundle version.
        releaseNotesPath: "path/to/release-notes",
    // Optional. The passphrase for the signing key.
        gpgPassphrase: "abc",
    // Optional. A repository name at the source Artifactory instance, to store release bundle artifacts in. If not provided, Artifactory will use the default one.
        storingRepo: "release-bundles-1",
    // Optional.
        description: "Some desc",
    // Optional. Path to a file with the File Spec content.
        specPath: "path/to/filespec.json",
    // Optional. Set to true to disable communication with JFrog Distribution.
        dryRun: true
)

Update a release bundle

dsUpdateReleaseBundle(
    serverId: "jfrog-instance-1",
    name: "example-release-bundle",
    version: "1",
    spec: """{
        "files": [{
            "pattern": "libs-release-local/ArtifactoryPipeline.zip"
        }]
    }""",
        // The default is "plain_text". The syntax for the release notes. Can be one of 'markdown', 'asciidoc', or 'plain_text'.
    releaseNotesSyntax: "",
        // Optional. If set to true, automatically signs the release bundle version.
    signImmediately: true,
    // Optional. Path to a file describing the release notes for the release bundle version.
        releaseNotesPath: "path/to/release-notes",
    // Optional. The passphrase for the signing key.
        gpgPassphrase: "abc",
    // Optional. A repository name at the source Artifactory instance, to store release bundle artifacts in. If not provided, Artifactory will use the default one.
        storingRepo: "release-bundles-1",
    //Optional.
        description: "Some desc",
    // Optional. Path to a file with the File Spec content.
        specPath: "path/to/filespec.json",
    // Optional. Set to true to disable communication with JFrog Distribution.
        dryRun: true
)