From cb5ae43d2abe919dd134693d30952b8956aa6cea Mon Sep 17 00:00:00 2001 From: adam Date: Sun, 10 Nov 2024 02:07:58 -0500 Subject: [PATCH] apostrophes for string building --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 921db50..ff3e98f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -50,8 +50,9 @@ pipeline { }' releaseid=\$(cat release.json | jq .id) + postURL = "https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases/\$releaseid/assets?name=\$noext&token=$GITEA_PAT" curl -X 'POST' \ - 'https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases/\$releaseid/assets?name=\$noext&token=$GITEA_PAT' \ + \$postURL \ -H 'accept: application/json' \ -H 'Content-Type: multipart/form-data' \ -F 'attachment=@\$fullfilename' @@ -60,6 +61,7 @@ pipeline { filename=null fullfilename=null noext=null + postURL=null """ dotnetNuGetPush(root: "./*.nupkg", source:"greyngitea", skipDuplicate:true) }