diff --git a/Jenkinsfile b/Jenkinsfile index 265cf58..831696f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,7 +28,7 @@ pipeline { branch "release" } environment { - GITEA_PAT = credentials('0bd7c8f5-046c-44b9-9c77-7a28a219ae31') + GITEA = credentials('0bd7c8f5-046c-44b9-9c77-7a28a219ae31') } steps{ sh """ @@ -39,7 +39,7 @@ pipeline { -o release.json \ 'https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases' \ -H 'accept: application/json' \ - -H 'Authorization: token $GITEA_PAT' \ + -H 'Authorization: token $GITEA_PSW' \ -H 'Content-Type: application/json' \ -d '{ "body": "automatic build at \$(date)", @@ -56,7 +56,7 @@ pipeline { curl -X 'POST' \ \$postURL \ -H 'accept: application/json' \ - -H 'Authorization: token $GITEA_PAT' \ + -H 'Authorization: token $GITEA_PSW' \ -H 'Content-Type: multipart/form-data' \ -F "attachment=@\$fullfilename"