shrug
Some checks failed
gitea.arg.rip/jenkins-playground/pipeline/head There was a failure building this commit

This commit is contained in:
adam 2024-11-10 02:00:57 -05:00
parent 10fd09d6eb
commit dfb1e06538

7
Jenkinsfile vendored
View File

@ -27,6 +27,9 @@ pipeline {
when { when {
branch "release" branch "release"
} }
environment {
GITEA_PAT = credentials('0bd7c8f5-046c-44b9-9c77-7a28a219ae31')
}
steps{ steps{
sh """ sh """
filename=\$(ls ./*.nupkg | head -1) filename=\$(ls ./*.nupkg | head -1)
@ -34,7 +37,7 @@ pipeline {
noext=\${fullfilename%.*} noext=\${fullfilename%.*}
curl -X 'POST' \ curl -X 'POST' \
-o release.json -o release.json
'https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases?token=$0bd7c8f5-046c-44b9-9c77-7a28a219ae31' \ 'https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases?token=$GITEA_PAT' \
-H 'accept: application/json' \ -H 'accept: application/json' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-d '{ -d '{
@ -48,7 +51,7 @@ pipeline {
releaseid=\$(cat release.json | jq .id) releaseid=\$(cat release.json | jq .id)
curl -X 'POST' \ curl -X 'POST' \
'https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases/\$releaseid/assets?name=\$noext&token=$0bd7c8f5-046c-44b9-9c77-7a28a219ae31' \ 'https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases/\$releaseid/assets?name=\$noext&token=$GITEA_PAT' \
-H 'accept: application/json' \ -H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \ -H 'Content-Type: multipart/form-data' \
-F 'attachment=@\$fullfilename' -F 'attachment=@\$fullfilename'