From 5621738bc4b14a9e7ed5fc261a58be02579e34c0 Mon Sep 17 00:00:00 2001 From: Yury-Fridlyand Date: Tue, 20 Jun 2023 14:23:24 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Sayali Gaikawad <61760125+gaiksaya@users.noreply.github.com> Signed-off-by: Yury-Fridlyand --- jenkins/release.jenkinsFile | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/jenkins/release.jenkinsFile b/jenkins/release.jenkinsFile index fc8d434..0ecb990 100644 --- a/jenkins/release.jenkinsFile +++ b/jenkins/release.jenkinsFile @@ -1,4 +1,4 @@ -lib = library(identifier: 'jenkins@1.5.3', retriever: modernSCM([ +lib = library(identifier: 'jenkins@4.2.2', retriever: modernSCM([ $class: 'GitSCMSource', remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', ])) @@ -8,9 +8,28 @@ standardReleasePipelineWithGenericTrigger( causeString: 'A tag was cut on opensearch-project/sql-odbc repository causing this workflow to run', downloadReleaseAsset: true, publishRelease: true) { - publishToMaven( - signingArtifactsPath: "$WORKSPACE/repository/", - mavenArtifactsPath: "$WORKSPACE/repository/", - autoPublish: true - ) + publishToArtifactsProdBucket( + assumedRoleName: 'sql-odbc-upload-role', + source: 'opensearch-sql-odbc-driver-32-bit-1.5.0.0-Windows.msi', + destination: 'opensearch-clients/odbc/opensearch-sql-odbc-driver-32-bit-1.5.0.0-Windows.msi', + signingPlatform: 'windows', + sigType: 'null', + sigOverwrite: true + ) + publishToArtifactsProdBucket( + assumedRoleName: 'sql-odbc-upload-role', + source: 'opensearch-sql-odbc-driver-64-bit-1.5.0.0-Windows.msi', + destination: 'opensearch-clients/odbc/opensearch-sql-odbc-driver-64-bit-1.5.0.0-Windows.msi', + signingPlatform: 'windows', + sigType: 'null', + sigOverwrite: true + ) + publishToArtifactsProdBucket( + assumedRoleName: 'sql-odbc-upload-role', + source: 'opensearch-sql-odbc-driver-64-bit-1.5.0.0-Darwin.pkg, + destination: 'opensearch-clients/odbc/opensearch-sql-odbc-driver-64-bit-1.5.0.0-Darwin.pkg', + signingPlatform: 'macos', + sigType: 'null', + sigOverwrite: true + ) }