Compare commits

..

No commits in common. "9" and "main" have entirely different histories.
9 ... main

13
Jenkinsfile vendored
View File

@ -28,7 +28,7 @@ pipeline {
branch "release" branch "release"
} }
environment { environment {
GITEA = credentials('0bd7c8f5-046c-44b9-9c77-7a28a219ae31') GITEA_PAT = credentials('0bd7c8f5-046c-44b9-9c77-7a28a219ae31')
} }
steps{ steps{
sh """ sh """
@ -37,28 +37,25 @@ pipeline {
noext=\${fullfilename%.*} noext=\${fullfilename%.*}
curl -X 'POST' \ curl -X 'POST' \
-o release.json \ -o release.json \
'https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases' \ 'https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases?token=$GITEA_PAT' \
-H 'accept: application/json' \ -H 'accept: application/json' \
-H 'Authorization: token $GITEA_PSW' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-d '{ -d '{
"body": "automatic build at \$(date)", "body": "\$(date)",
"draft": false, "draft": false,
"name": "$BUILD_NUMBER", "name": "$BUILD_NUMBER",
"prerelease": false, "prerelease": false,
"tag_name": "$BUILD_NUMBER", "tag_name": "$BUILD_NUMBER",
"target_commitish": "$GIT_COMMIT" "target_commitish": "$GIT_COMMIT"
}' }'
cat release.json
releaseid=\$(cat release.json | jq .id) releaseid=\$(cat release.json | jq .id)
postURL="https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases/\$releaseid/assets?name=\$noext" postURL = "https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases/\$releaseid/assets?name=\$noext&token=$GITEA_PAT"
curl -X 'POST' \ curl -X 'POST' \
\$postURL \ \$postURL \
-H 'accept: application/json' \ -H 'accept: application/json' \
-H 'Authorization: token $GITEA_PSW' \
-H 'Content-Type: multipart/form-data' \ -H 'Content-Type: multipart/form-data' \
-F "attachment=@\$fullfilename" -F 'attachment=@\$fullfilename'
releaseid=null releaseid=null
filename=null filename=null