Change repo branch: master -> main
This commit is contained in:
parent
626221cd41
commit
b336e820f9
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user