diff --git a/Jenkinsfile b/Jenkinsfile index e4b0b04..d369955 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -41,13 +41,14 @@ pipeline { -H 'accept: application/json' \ -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"