From 92c7da272d64fdf86ad0d178d89cd527a52c1a5a Mon Sep 17 00:00:00 2001 From: adam Date: Sun, 10 Nov 2024 02:27:11 -0500 Subject: [PATCH] giteapat as header. shrug. --- Jenkinsfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d369955..265cf58 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -37,8 +37,9 @@ pipeline { noext=\${fullfilename%.*} curl -X 'POST' \ -o release.json \ - 'https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases?token=$GITEA_PAT' \ + 'https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases' \ -H 'accept: application/json' \ + -H 'Authorization: token $GITEA_PAT' \ -H 'Content-Type: application/json' \ -d '{ "body": "automatic build at \$(date)", @@ -51,10 +52,11 @@ pipeline { cat release.json 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" + postURL="https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases/\$releaseid/assets?name=\$noext" curl -X 'POST' \ \$postURL \ -H 'accept: application/json' \ + -H 'Authorization: token $GITEA_PAT' \ -H 'Content-Type: multipart/form-data' \ -F "attachment=@\$fullfilename"