Compare commits

..

8 Commits
main ... 11

Author SHA1 Message Date
fa5297c22e alright I lied, one more try. gitea strips file extensions?!
All checks were successful
gitea.arg.rip/jenkins-playground/pipeline/head This commit looks good
2024-11-10 02:35:53 -05:00
972f3fd8e3 works or not, close enough
All checks were successful
gitea.arg.rip/jenkins-playground/pipeline/head This commit looks good
2024-11-10 02:33:50 -05:00
7884549534 who tf abbreviates password as "PSW"?
All checks were successful
gitea.arg.rip/jenkins-playground/pipeline/head This commit looks good
2024-11-10 02:30:39 -05:00
92c7da272d giteapat as header. shrug.
All checks were successful
gitea.arg.rip/jenkins-playground/pipeline/head This commit looks good
2024-11-10 02:27:11 -05:00
87dc3eefeb sdf
All checks were successful
gitea.arg.rip/jenkins-playground/pipeline/head This commit looks good
2024-11-10 02:14:53 -05:00
fb3dc36e46 fuckin apostrophes
All checks were successful
gitea.arg.rip/jenkins-playground/pipeline/head This commit looks good
2024-11-10 02:11:36 -05:00
50abde1e82 fuck off it's right here
Some checks failed
gitea.arg.rip/jenkins-playground/pipeline/head There was a failure building this commit
2024-11-10 02:10:11 -05:00
a2c258989f Merge branch 'main' into release
Some checks failed
gitea.arg.rip/jenkins-playground/pipeline/head There was a failure building this commit
2024-11-10 02:08:22 -05:00

13
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 """
@ -37,25 +37,28 @@ 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_PSW' \
-H 'Content-Type: application/json' \
-d '{
"body": "\$(date)",
"body": "automatic build at '"\$(date)"'",
"draft": false,
"name": "$BUILD_NUMBER",
"prerelease": false,
"tag_name": "$BUILD_NUMBER",
"target_commitish": "$GIT_COMMIT"
}'
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_PSW' \
-H 'Content-Type: multipart/form-data' \
-F 'attachment=@\$fullfilename'
-F "attachment=@\$fullfilename;type=application/nupkg"
releaseid=null
filename=null