From 7a15657cb28a23c7c368f2ac5070ef7819cb6c59 Mon Sep 17 00:00:00 2001 From: cloudant-sdks-automation <71659186+cloudant-sdks-automation@users.noreply.github.com> Date: Fri, 30 Oct 2026 10:05:46 +0000 Subject: [PATCH] ci(generated): publish release Generated SDK source code using: - Generator version 3.117.2 - Specification version 1.0.0-dev0.1.41 - Automation (cloudant-sdks) version 5bea1b3 --- Jenkinsfile | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9d12fe1a..700fcb40 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -209,9 +209,7 @@ pipeline { beforeAgent true allOf { buildingTag() - anyOf { - tag pattern: /${env.SVRE_PRE_RELEASE_TAG}/, comparator: "REGEXP" - } + tag pattern: /${env.SVRE_PRE_RELEASE_TAG}/, comparator: "REGEXP" } } steps { @@ -219,6 +217,10 @@ pipeline { gitsh('github.com') { publishDocs() } + publishGitHubRelease( + tag: env.TAG_NAME, + assets: getReleaseAssets(env.TAG_NAME.replaceFirst(/^v(?=${env.SVRE_RELEASE})/,'')) + ) } } } @@ -238,6 +240,7 @@ def artifactUrl def moduleId def buildType def scanCode +def getReleaseAssets void defaultInit() { // Default to using bump-my-version @@ -318,6 +321,10 @@ void defaultInit() { sh "${scannerHome}/bin/sonar-scanner -Dsonar.qualitygate.wait=true -Dsonar.projectKey=cloudant-${libName}-sdk -Dsonar.exclusions=examples/**" } } + + getReleaseAssets = { tagVersion -> + return [] + } } // Language specific implementations of the methods: @@ -341,6 +348,21 @@ void applyCustomizations() { artifactUrl = "${STAGE_ROOT}storage/cloudant-sdks-pypi-local/ibmcloudant/${env.NEW_SDK_VERSION}" moduleId = "ibmcloudant:${env.NEW_SDK_VERSION}" } + + getReleaseAssets = { tagVersion -> + return [ + [ + name: "ibmcloudant-${tagVersion}.tar.gz", + path: "dist/ibmcloudant-${tagVersion}.tar.gz", + contentType: 'application/gzip' + ], + [ + name: "ibmcloudant-${tagVersion}-py3-none-any.whl", + path: "dist/ibmcloudant-${tagVersion}-py3-none-any.whl", + contentType: 'application/zip' + ] + ] + } } void buildSdk() {