diff --git a/Jenkinsfile b/Jenkinsfile index 6569a16..a53a2f0 100755 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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}" \