Automatically pull to production server after clicking on BitBucket

I develop my code locally, commit it to my local repository, and then click on my Bitbucket server. After that I need to log in via ssh to my production server for example:

ssh my-server@my-host.de
pass: very-secure-passs
cd www/myPage
cd git pull origin master
pass: very-secure-pass 

I would like to avoid logging into my production server and let it automatically pull out.

I want to have 3 repositories (local, BitBucket and production server), so I can not use this solution: Perform an automatic pull request after clicking on the server

I found this question A hook that allows you to “pull out” from the VPS when I “click” on Bitbucket , which is exactly what I want, but this is from 2013 and the answer has been deprecated since BitBucket has changed since then.

I found here https://community.atlassian.com/t5/Answers-Developer-Questions/How-can-I-deploy-my-bitbucket-repo-to-my-production-server/qaq-p/565348 that someone suggested using a free plugin called HTTP Request Hook for a Bitbucket server

"Pull": , , . Bitbucket - , , - Http Request Post Receive Hook: , push, URL-, . -, HTTP-. HTPP-Request (: ...)

:

+6
2

webhook Bitbucket Cloud (bitbucket.org), Bitbucket ( URL-). BB Cloud, HTTP-Request Hook , . BB, https://confluence.atlassian.com/bitbucketserver/managing-webhooks-in-bitbucket-server-938025878.html , -.

- - - , -, - , pull, , . Google "webhook deploy $LANGUAGE", , , , gist , .

+4

, , Jenkins, . Jenkins, .

0

All Articles