sdf
All checks were successful
gitea.arg.rip/jenkins-playground/pipeline/head This commit looks good
All checks were successful
gitea.arg.rip/jenkins-playground/pipeline/head This commit looks good
This commit is contained in:
parent
fb3dc36e46
commit
87dc3eefeb
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -41,13 +41,14 @@ pipeline {
|
|||||||
-H 'accept: application/json' \
|
-H 'accept: application/json' \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
-d '{
|
-d '{
|
||||||
"body": "\$(date)",
|
"body": "automatic build at \$(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&token=$GITEA_PAT"
|
postURL="https://gitea.arg.rip/api/v1/repos/greyn/jenkins-playground/releases/\$releaseid/assets?name=\$noext&token=$GITEA_PAT"
|
||||||
|
Loading…
Reference in New Issue
Block a user