From 205f935b3fef01ad880796c5bd80343e4b6d554a Mon Sep 17 00:00:00 2001 From: khaled Date: Wed, 30 Sep 2026 14:42:46 +0000 Subject: [PATCH] Update vars/publishArtifact.groovy --- vars/publishArtifact.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vars/publishArtifact.groovy b/vars/publishArtifact.groovy index 127ac0e..ff74efb 100644 --- a/vars/publishArtifact.groovy +++ b/vars/publishArtifact.groovy @@ -6,13 +6,13 @@ def call(Map config = [:]) { def path = config.path ?: error('publishArtifact: "path" is required') def repo = config.repo ?: 'lab-generic-local' def base = config.base ?: 'http://10.0.1.4:8082/artifactory' - container('build') { + container('maven') { // maven a curl nativement, pas python:3.12-slim stage('Publish to Artifactory') { withCredentials([string(credentialsId: 'artifactory-token', variable: 'ART_TOKEN')]) { sh """ - HTTP=\$(curl -s -o /tmp/resp.txt -w '%{http_code}' \ - -H "Authorization: Bearer \${ART_TOKEN}" \ - -T ${file} \ + HTTP=\$(curl -s -o /tmp/resp.txt -w '%{http_code}' \\ + -H "Authorization: Bearer \${ART_TOKEN}" \\ + -T ${file} \\ ${base}/${repo}/${path}/${file}) echo "Artifactory responded HTTP \${HTTP}" cat /tmp/resp.txt