Replies: 10 comments
-
I think a question related to this request is the support for git/gitlab hooks as well. Should we rename this enhancement to "CI Hooks" ? |
Beta Was this translation helpful? Give feedback.
-
Any chance for an update on this ? |
Beta Was this translation helpful? Give feedback.
-
Can you propose how it would work? Is it the same as github's webhooks? |
Beta Was this translation helpful? Give feedback.
-
I think we just need to create a plain, clear documentation about API: how to create user token, how to trigger task via API, etc. |
Beta Was this translation helpful? Give feedback.
-
I was planning on going with docker, but my few experiments show that that's more headache than it's worth. I've seen that I can trigger a task via the api. |
Beta Was this translation helpful? Give feedback.
-
@frostymarvelous here is example for curl:
You can get Template ID from Update Template dialog (if you use latest semaphore version). |
Beta Was this translation helpful? Give feedback.
-
We call Semaphore API from Jenkins via following snippet: https://gist.github.com/strangeman/a7abc310940247730aaa24a22cdf19ba Need to install https://wiki.jenkins-ci.org/display/JENKINS/HTTP+Request+Plugin, API Token generated via curl and stored in Jenkins Credentials. |
Beta Was this translation helpful? Give feedback.
-
Thank you. I'll give it a go with Gitlab and let you know what I come up with? |
Beta Was this translation helpful? Give feedback.
-
@frostymarvelous I have no experience with GitLab, but I think you can write simple BASH/Python/Ruby script that makes POST request to the API and add it to the post-receive Git hook - https://docs.gitlab.com/ce/administration/custom_hooks.html |
Beta Was this translation helpful? Give feedback.
-
Thanks for that tip.
Unfortunately, that won't work for us.
I am planning on building a small proxy to handle the webhook (we need
builds on accepted merges) as we currently use gitlab.com and semaphore is
behind a private network.
I'll tackle this a bit later though.
Currently busy trying to automate our infrastructure first.
…On Mon, Mar 13, 2017, 01:54 Anton Markelov ***@***.***> wrote:
@frostymarvelous <https://github.com/frostymarvelous> I have no
experience with GitLab, but I think you can write simple BASH/Python/Ruby
script that makes POST request to the API and add it to the post-receive
Git hook - https://docs.gitlab.com/ce/administration/custom_hooks.html
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#184 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA4XZZKCwfQVoz5Yj2AdRRpO2StUcet_ks5rlKHigaJpZM4JyaH5>
.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Can anybody please help me to trigger Tasks via Bitbucket hooks?
I am trying to write a bash script to use the API however I am finding this difficult.
Thanks
Taner
Beta Was this translation helpful? Give feedback.
All reactions