lib = library(identifier: 'jenkins@1.5.3', retriever: modernSCM([
    $class: 'GitSCMSource',
    remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git',
]))

standardReleasePipelineWithGenericTrigger(
    overrideDockerImage: 'opensearchstaging/ci-runner:release-centos7-clients-v4',
    tokenIdCredential: 'jenkins-performance-analyzer-commons-generic-webhook-token',
    causeString: 'A tag was cut on opensearch-project/performance-analyzer-commons repository causing this workflow to run',
    downloadReleaseAsset: true,
    publishRelease: false) {
        publishToMaven(
            signingArtifactsPath: "$WORKSPACE/repository/",
            mavenArtifactsPath: "$WORKSPACE/repository/",
            autoPublish: false
        )
    }