This commit is contained in:
2026-01-08 20:13:32 +01:00
parent dc827d6e2c
commit 34f12e3e08

2
Jenkinsfile vendored
View File

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