Change repo branch: master -> main

This commit is contained in:
Reza Behzadan 2024-03-31 12:54:14 +03:30
parent 626221cd41
commit b336e820f9

2
Jenkinsfile vendored
View File

@ -36,7 +36,7 @@ pipeline {
def createReleaseResponse = sh(script: """ def createReleaseResponse = sh(script: """
curl -s -X POST -H "Content-Type: application/json" -H "Authorization: token ${GITEA_API_TOKEN}" \\ 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" "https://git.behzadan.ir/api/v1/repos/${repoOwner}/${repoName}/releases"
""", returnStdout: true).trim() """, returnStdout: true).trim()