From 1c0d6f7f404467c19923637fd14e4d7537af4a1e Mon Sep 17 00:00:00 2001 From: Rustam Tagaev Date: Wed, 27 Nov 2024 18:58:14 +0300 Subject: [PATCH] [DO-1361] add_pipeline_avroid_service_lib (!53) Co-authored-by: Rustam Tagaev Reviewed-on: https://git.avroid.tech/DevOps/jenkins-pipelines/pulls/53 --- .../Cloud/Apps-Backend/avroid-service-lib.groovy | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pipelines/Cloud/Apps-Backend/avroid-service-lib.groovy b/pipelines/Cloud/Apps-Backend/avroid-service-lib.groovy index 45ac19f..03a4f98 100644 --- a/pipelines/Cloud/Apps-Backend/avroid-service-lib.groovy +++ b/pipelines/Cloud/Apps-Backend/avroid-service-lib.groovy @@ -55,16 +55,18 @@ slaveTemplates.jnlp { print "Upload from tag ${env.TAG_NAME}" dir(localArtifactDir){ - String artifact = sh( + String artifacts = sh( script: """#!/bin/sh - ls *.whl + ls *.whl *.gz """, returnStdout: true).trim() - print artifact - nexus.uploadPypiArtifact( - artifact: "${artifact}", - repository: nexusRepoName - ) + + artifacts.split().each { artifact -> + nexus.uploadPypiArtifact( + artifact: "${artifact}", + repository: nexusRepoName + ) + } } } }