Compare commits

..

3 Commits

Author SHA1 Message Date
deployer3000 a8ca18edc9 Merge pull request 'rc' (#16) from rc into main 2025-03-10 17:51:26 +03:00
yuobrezkov 448ea7a5a6 Added / to curl request
test-org/trust-module-frontend/pipeline/pr-main Build succeeded
2025-03-10 17:48:38 +03:00
yuobrezkov 5ef440384d Deleted Debug info 2025-03-10 17:47:09 +03:00
1 changed files with 1 additions and 2 deletions

3
Jenkinsfile vendored
View File

@ -15,7 +15,7 @@ def notify(
-u "${giteaUser}:${giteaPass}" \ -u "${giteaUser}:${giteaPass}" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d '{"context":"${context}","state": "${status}", "description": "${description}"}' \ -d '{"context":"${context}","state": "${status}", "description": "${description}"}' \
${repositoryUrl}${repositoryName}/statuses/${commitHash} ${repositoryUrl}deployer3000/${repositoryName}/statuses/${commitHash}
""" """
} }
@ -81,7 +81,6 @@ pipeline {
echo "PR ${prId} merged successfully into master!" echo "PR ${prId} merged successfully into master!"
def context = "test-org/trust-module-frontend/pipeline/pr-${env.CHANGE_TARGET}" def context = "test-org/trust-module-frontend/pipeline/pr-${env.CHANGE_TARGET}"
def commitHash = sh(script: "git rev-parse HEAD~1", returnStdout: true).trim() def commitHash = sh(script: "git rev-parse HEAD~1", returnStdout: true).trim()
echo "commit hash = ${commitHash}"
notify(context, GITEA_USER, GITEA_PASS, env.GITEA_REPOSITORY_URL, "trust-module-frontend", commitHash, "success") notify(context, GITEA_USER, GITEA_PASS, env.GITEA_REPOSITORY_URL, "trust-module-frontend", commitHash, "success")
} }
} }