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