hi all , i found a issue I wanted to notify the github after my pipeline will complete execution ,
but after using same credentials , in the post steps there were getting error - repository not found with this account .
stage('Test GitHub Notify') {
steps {
script {
// Send GitHub notification
// def commitSHA = sh(script: 'git rev-parse HEAD', returnStdout: true).trim() // Get the current commit SHA
githubNotify(
context: 'Test',
status: 'SUCCESS',
description: 'Testing GitHub Notify',
repo: GITHUB_REPO,
credentialsId: GIT_CREDENTIALS_ID,
account: 'Jaideep1997',
// sha: commitSHA // Use the retrieved commit SHA
Expected Results
it will show the notifications in github about the pipeline commit status .
Actual Results
Started by user unknown or anonymous
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in /var/jenkins_home/workspace/github-test-notify
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Checkout Code)
[Pipeline] checkout
Selected Git installation does not exist. Using Default
The recommended git tool is: NONE
using credential github-new-creds
git rev-parse refs/remotes/origin/main^{commit} # timeout=10
Checking out Revision 68d2e3d59ebdf230c7e5196c9f0953106c352a6b (refs/remotes/origin/main)
git config core.sparsecheckout # timeout=10
git checkout -f 68d2e3d59ebdf230c7e5196c9f0953106c352a6b # timeout=10
Commit message: “Update README.md”
git rev-list --no-walk 68d2e3d59ebdf230c7e5196c9f0953106c352a6b # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Retrieve Commit SHA)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
- git rev-parse HEAD
[Pipeline] echo
Current commit SHA: 68d2e3d59ebdf230c7e5196c9f0953106c352a6b
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Test GitHub Notify)
[Pipeline] script
[Pipeline] {
[Pipeline] githubNotify
[Pipeline] echo
Failed to send GitHub notification: The specified repository does not exist for the specified account
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Declarative: Post Actions)
[Pipeline] echo
Notification attempt made for repository: Jaideep1997/ai-chatbot
[Pipeline] echo
The pipeline has finished with failure.
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: FAILURE
But you can see my git clone is done successfully , if creds were wrong , then clone was not happened , even in my api token and webhook also i have connected with full permission.
please help me to sort .