Bitbucket and Jenkins remote build trigger -


what trying achieve

trigger build bitbucket when pr created using remote trigger option in jenkins. created job in jenkins , configured trigger build remote api. enter image description here

in bitbucket created webhooks trigger build following url structure

http://jenkins_server_ip:port/job/job-name/build?token=<t1> 

i getting following error

<html>     <head>         <meta http-equiv="content-type" content="text/html;charset=utf-8"/>         <title>error 403 no valid crumb included in request</title>     </head>     <body>         <h2>http error 403</h2>         <p>problem accessing /job/android-sample/build. reason:              <pre>    no valid crumb included in request</pre>         </p>         <hr>         <a href="http://eclipse.org/jetty">powered jetty:// 9.4.z-snapshot</a>         <hr/>     </body> </html> 

digged internet , says need use crumbissuer api in jenkins done wget. how can use in bitbucket?

you can close csrf security check in : system configure -> configure global security -> csrf protection, , uncheck checkbox.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -