[DO-1361] add_pipeline_avroid_service_lib (!53)

Co-authored-by: Rustam Tagaev <rustam.tagaev@avroid.tech>
Reviewed-on: https://git.avroid.tech/DevOps/jenkins-pipelines/pulls/53
This commit is contained in:
Rustam Tagaev
2024-11-27 18:58:14 +03:00
parent 75a63330e8
commit 1c0d6f7f40

View File

@@ -55,12 +55,13 @@ slaveTemplates.jnlp {
print "Upload from tag ${env.TAG_NAME}" print "Upload from tag ${env.TAG_NAME}"
dir(localArtifactDir){ dir(localArtifactDir){
String artifact = sh( String artifacts = sh(
script: """#!/bin/sh script: """#!/bin/sh
ls *.whl ls *.whl *.gz
""", """,
returnStdout: true).trim() returnStdout: true).trim()
print artifact
artifacts.split().each { artifact ->
nexus.uploadPypiArtifact( nexus.uploadPypiArtifact(
artifact: "${artifact}", artifact: "${artifact}",
repository: nexusRepoName repository: nexusRepoName
@@ -69,6 +70,7 @@ slaveTemplates.jnlp {
} }
} }
} }
}
} catch (err) { } catch (err) {
errorMessage = err.getMessage() errorMessage = err.getMessage()