Compare commits

..

3 Commits

Author SHA1 Message Date
cb5ae43d2a apostrophes for string building
All checks were successful
gitea.arg.rip/jenkins-playground/pipeline/head This commit looks good
2024-11-10 02:07:58 -05:00
6a1c175e5c Merge branch 'release' 2024-11-10 02:04:44 -05:00
a84a7adc6d kjgh
Some checks failed
gitea.arg.rip/jenkins-playground/pipeline/head There was a failure building this commit
2024-11-10 02:03:59 -05:00

6
Jenkinsfile vendored
View File

@ -36,7 +36,7 @@ pipeline {
fullfilename=\$(basename -- \$filename)
noext=\${fullfilename%.*}
curl -X 'POST' \
-o release.json
-o release.json \
'https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases?token=$GITEA_PAT' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
@ -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)
}