From 7884549534d71f1014b3eeaa9dd4e9904ce5e205 Mon Sep 17 00:00:00 2001 From: adam Date: Sun, 10 Nov 2024 02:30:39 -0500 Subject: [PATCH] who tf abbreviates password as "PSW"? --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"