diff --git a/Jenkinsfile b/Jenkinsfile index db74299..5418bfa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,7 +36,7 @@ pipeline { def createReleaseResponse = sh(script: """ curl -s -X POST -H "Content-Type: application/json" -H "Authorization: token ${GITEA_API_TOKEN}" \\ - -d '{ "tag_name": "${tagName}", "target_commitish": "master", "name": "${releaseTitle}", "body": "${releaseDescription}", "draft": false, "prerelease": false }' \\ + -d '{ "tag_name": "${tagName}", "target_commitish": "main", "name": "${releaseTitle}", "body": "${releaseDescription}", "draft": false, "prerelease": false }' \\ "https://git.behzadan.ir/api/v1/repos/${repoOwner}/${repoName}/releases" """, returnStdout: true).trim()