From f3352d8546bc2fa10c24149f1bb0ae96ffd10aa2 Mon Sep 17 00:00:00 2001 From: cloudant-sdks-automation <71659186+cloudant-sdks-automation@users.noreply.github.com> Date: Wed, 4 Nov 2026 09:54:30 +0000 Subject: [PATCH] ci(generated): publish updates Generated SDK source code using: - Generator version 3.117.3 - Specification version 1.0.0-dev0.1.41 - Automation (cloudant-sdks) version 530fba1 --- Jenkinsfile | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fd0a481f..6090c9ce 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -391,24 +391,20 @@ void packageArtifacts() { } void publishStaging() { - withEnv(["FLIT_INDEX_URL=${env.STAGE_ROOT}pypi/cloudant-sdks-pypi-local", 'FLIT_USERNAME=' + env.ARTIFACTORY_CREDS_USR, 'FLIT_PASSWORD=' + env.ARTIFACTORY_CREDS_PSW]) { - publishFlit() + withEnv(["TWINE_REPOSITORY_URL=${env.STAGE_ROOT}pypi/cloudant-sdks-pypi-local", 'TWINE_USERNAME=' + env.ARTIFACTORY_CREDS_USR, 'TWINE_PASSWORD=' + env.ARTIFACTORY_CREDS_PSW]) { + publishUpload() } } void publishPublic() { - withCredentials([usernamePassword(credentialsId: 'pypi', passwordVariable: 'FLIT_PASSWORD', usernameVariable: 'FLIT_USERNAME')]) { - publishFlit() - } + // No-op + // This happens via OIDC Trusted Publisher } -void publishFlit() { - dir('dist') { - deleteDir() - } +void publishUpload() { sh ''' python3 --version - flit publish --no-use-vcs + twine upload dist/* ''' }