who tf abbreviates password as "PSW"?
All checks were successful
gitea.arg.rip/jenkins-playground/pipeline/head This commit looks good

This commit is contained in:
adam 2024-11-10 02:30:39 -05:00
parent 92c7da272d
commit 7884549534

6
Jenkinsfile vendored
View File

@ -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"