This commit is contained in:
2026-01-08 20:08:14 +01:00
parent 475ef2b702
commit dc827d6e2c

4
Jenkinsfile vendored
View File

@@ -49,8 +49,8 @@ pipeline {
def buildState = currentBuild.currentResult == 'SUCCESS' ? 'success' : 'failure'
def buildDesc = currentBuild.currentResult == 'SUCCESS' ? 'Build successful' : 'Build failed'
// Notify Gitea using the API (requires 'gitea-token' credential in Jenkins)
withCredentials([string(credentialsId: 'gitea-token', variable: 'GITEA_TOKEN')]) {
// Notify Gitea using the API (requires credential in Jenkins)
withCredentials([string(credentialsId: 'jenkins', variable: 'GITEA_TOKEN')]) {
sh """
curl -f -X POST "${GITEA_API_URL}/repos/${GITEA_REPO_PATH}/statuses/${commitSha}" \
-H "Authorization: token ${GITEA_TOKEN}" \