I am currently using Atlassian Stash as my source repository and have pipeline job in Jenkins v2.401.1, I tried integrating with the help of hooks but it troughing an error :
(Error: Jenkins response: <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/> <title>Error 401 An access token is required. Please refer to Git plugin documentation (https://plugins.jenkins.io/git/#plugin-content-push-notification-from-repository) for details.</title> </head> <body><h2>HTTP ERROR 401 An access token is required. Please refer to Git plugin documentation (https://plugins.jenkins.io/git/#plugin-content-push-notification-from-repository) for details.</h2> <table> <tr><th>URI:</th><td>/git/notifyCommit</td></tr> <tr><th>STATUS:</th><td>401</td></tr> <tr><th>MESSAGE:</th><td>An access token is required. Please refer to Git plugin documentation (https://plugins.jenkins.io/git/#plugin-content-push-notification-from-repository) for details.</td></tr> <tr><th>SERVLET:</th><td>Stapler</td></tr> </table> <hr/><a href="https://eclipse.org/jetty">Powered by Jetty:// 10.0.13</a><hr/> </body> </html>
)
I have tried every possible solution to do that but no luck. Not getting a way to integrate both Stash and Jenkins. Please help me out on this. Thanks in Advance.