1

build(ci): вывод результата curl

This commit is contained in:
2025-08-18 12:28:37 +03:00
parent e8229053cd
commit ab43b2e778

View File

@@ -34,13 +34,16 @@ pipeline {
}
"""
sh(script: '''
def apiResponse = sh(script: '''
curl -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/json" \
-d '${releaseData}' \
"${GITEA_API_URL}/repos/${GITEA_REPO_OWNER}/${GITEA_REPO_NAME}/releases"
''', returnStdout: true).trim()
echo "📥 Ответ от Gitea API:"
echo apiResponse
}
}
}