Compare commits

..

No commits in common. "main" and "v1.0.1" have entirely different histories.
main ... v1.0.1

10
Jenkinsfile vendored
View File

@ -29,9 +29,9 @@ pipeline {
script {
def repoOwner = 'reza'
def repoName = 'go-hello-world'
def tagName = 'v1.0.3'
def releaseTitle = 'v1.0.3'
def releaseDescription = 'v1.0.3'
def tagName = 'v1.0.1'
def releaseTitle = 'v1.0.1'
def releaseDescription = 'v1.0.1'
def zipFile = 'hello-world.zip'
def createReleaseResponse = sh(script: """
@ -44,8 +44,8 @@ pipeline {
def releaseID = parsedResponse.id
sh """
curl -X POST -H "Authorization: token ${GITEA_API_TOKEN}" -H "Content-Type: multipart/form-data" \\
-F 'attachment=@${zipFile};type=application/zip' \\
curl -X POST -H "Authorization: token ${GITEA_API_TOKEN}" -H "Content-Type: application/octet-stream" \\
--data-binary @${zipFile} \\
"https://git.behzadan.ir/api/v1/repos/${repoOwner}/${repoName}/releases/${releaseID}/assets?name=${zipFile}"
"""