New try
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -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}" \
|
||||
|
||||
Reference in New Issue
Block a user