How to invoke Plesk Git extension webhook via cURL from Bitbucket Pipelines?
up vote
2
down vote
favorite
Unfortunately, Bitbucket doesn't support per-branch webhooks and won't support them in the near future (https://bitbucket.org/site/master/issues/11728/trigger-webhook-only-for-push-to-specific).
So I thought I maybe could write a simple bitbucket-pipelines.yml
which calls the corresponding webhook:
pipelines:
branches:
staging:
- step:
script:
- curl $WEBHOOK_STAGING
master:
- step:
script:
- curl $WEBHOOK_PRODUCTION
Simply requesting the webhook, doesn't seem to trigger a git pull
within Plesk, so I'm assuming that I need to add a payload.
Question: What do I need to send to the Plesk webhook in order to perform a pull?
git bitbucket plesk bitbucket-pipelines
add a comment |
up vote
2
down vote
favorite
Unfortunately, Bitbucket doesn't support per-branch webhooks and won't support them in the near future (https://bitbucket.org/site/master/issues/11728/trigger-webhook-only-for-push-to-specific).
So I thought I maybe could write a simple bitbucket-pipelines.yml
which calls the corresponding webhook:
pipelines:
branches:
staging:
- step:
script:
- curl $WEBHOOK_STAGING
master:
- step:
script:
- curl $WEBHOOK_PRODUCTION
Simply requesting the webhook, doesn't seem to trigger a git pull
within Plesk, so I'm assuming that I need to add a payload.
Question: What do I need to send to the Plesk webhook in order to perform a pull?
git bitbucket plesk bitbucket-pipelines
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
Unfortunately, Bitbucket doesn't support per-branch webhooks and won't support them in the near future (https://bitbucket.org/site/master/issues/11728/trigger-webhook-only-for-push-to-specific).
So I thought I maybe could write a simple bitbucket-pipelines.yml
which calls the corresponding webhook:
pipelines:
branches:
staging:
- step:
script:
- curl $WEBHOOK_STAGING
master:
- step:
script:
- curl $WEBHOOK_PRODUCTION
Simply requesting the webhook, doesn't seem to trigger a git pull
within Plesk, so I'm assuming that I need to add a payload.
Question: What do I need to send to the Plesk webhook in order to perform a pull?
git bitbucket plesk bitbucket-pipelines
Unfortunately, Bitbucket doesn't support per-branch webhooks and won't support them in the near future (https://bitbucket.org/site/master/issues/11728/trigger-webhook-only-for-push-to-specific).
So I thought I maybe could write a simple bitbucket-pipelines.yml
which calls the corresponding webhook:
pipelines:
branches:
staging:
- step:
script:
- curl $WEBHOOK_STAGING
master:
- step:
script:
- curl $WEBHOOK_PRODUCTION
Simply requesting the webhook, doesn't seem to trigger a git pull
within Plesk, so I'm assuming that I need to add a payload.
Question: What do I need to send to the Plesk webhook in order to perform a pull?
git bitbucket plesk bitbucket-pipelines
git bitbucket plesk bitbucket-pipelines
asked 2 days ago


sboesch
390112
390112
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
Webhooks are done via a POST
request instead of a GET
request, so you will have to pass the argument -X POST
to curl in order to send the request to your webhook correctly.
So your curl statement would look like this:
curl -X POST $WEBHOOK_PRODUCTION
Thank you so much!
– sboesch
yesterday
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
Webhooks are done via a POST
request instead of a GET
request, so you will have to pass the argument -X POST
to curl in order to send the request to your webhook correctly.
So your curl statement would look like this:
curl -X POST $WEBHOOK_PRODUCTION
Thank you so much!
– sboesch
yesterday
add a comment |
up vote
2
down vote
accepted
Webhooks are done via a POST
request instead of a GET
request, so you will have to pass the argument -X POST
to curl in order to send the request to your webhook correctly.
So your curl statement would look like this:
curl -X POST $WEBHOOK_PRODUCTION
Thank you so much!
– sboesch
yesterday
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
Webhooks are done via a POST
request instead of a GET
request, so you will have to pass the argument -X POST
to curl in order to send the request to your webhook correctly.
So your curl statement would look like this:
curl -X POST $WEBHOOK_PRODUCTION
Webhooks are done via a POST
request instead of a GET
request, so you will have to pass the argument -X POST
to curl in order to send the request to your webhook correctly.
So your curl statement would look like this:
curl -X POST $WEBHOOK_PRODUCTION
answered yesterday
Sven Hakvoort
1,430316
1,430316
Thank you so much!
– sboesch
yesterday
add a comment |
Thank you so much!
– sboesch
yesterday
Thank you so much!
– sboesch
yesterday
Thank you so much!
– sboesch
yesterday
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53373620%2fhow-to-invoke-plesk-git-extension-webhook-via-curl-from-bitbucket-pipelines%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown