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"