I would like to configure my slack outgoing webhook such that it can trigger concourse job over http. Is there a way that we can trigger concourse jobs via http requests instead of manually clicking on job from web UI?
concourse has a feature where you can trigger pipelines via HTTP if you use a webhook token
https://concourse-ci.org/resources.html#resource-webhook-token
Yes, you can apparently trigger a concourse job via HTTP request as pointed out in this answer on Stackoverflow.
However you would need to implement an intermediary script (or Slack app) that receives the request from Slack and then triggers the concourse job accordingly. That would not work with a simple outgoing webhooks.
Also please note that Outgoing Webhooks are now outdated. Better use either a custom bot (based on Events API or RTM API) or a slash command to trigger them. The former is more flexible and powerful, the latter more easy to implement. I would advise to look into all mentioned concepts to see which bets fits your requirements.
Related
I'm trying to connect a Slack channel to Teams and to forward all messages to teams. I thought it would be as easy as using an outgoing webhook in Slack and and incoming webhook in Teams. However nothing is ever sent to Teams. Is this even possible without the use of some automation tool like Zapier or IFTTT?
I think there are probably a bunch of reasons this is not working - I can imagine there could be authentication issues, and also that the structure of the data coming from slack is unlikely to be what Teams can consume 100% as is. Basically, you're going to need some kind of intermediary, like perhaps an Azure Function or AWS Lambda (unless Zapier/IFTTT can offer something out of the box for this). Power Automate could be another option, incidentally.
As another option, you could look to a 3rd party that does something like this already, like m.io (Disclaimer: I have no affiliation with them, or even experience with their platform, I'm just aware of the existence of their tool).
With regards docs, have a look at Outgoing Webhooks for Slack and Incoming Webhooks for Teams. Even from the docs, you can see the format/structure is very different, so it's just a case of a small Cloud function to map input <-> output.
I need to integrate an external application with SharePoint Online where i need to retrieve data on a daily basis.
Was thinking of implementing it as a Microsoft Flow scheduler and using HTTP REST API action . Is this the right way or is there any other way ?
Thanks in advance
Apart from it sounds rather like general question about some business process architecture, let's go through it:
i need to retrieve data on a daily basis.
That's ok and what MS Flow is widely used for. You can list items/folders, create new ones or delete them and get file content.
Was thinking of implementing it as a Microsoft Flow scheduler
This sounds like Reccurence trigger which runs an event at regular, customized time intervals.
using HTTP REST API action
Indeed, HTTP action allows you to invoke REST API. On the other hand When a HTTP request is received trigger allows you to start the flow from other flow/app.
I have several spring-boot based micro-services on Heroku platform.
They using http API to communicate each other.
And I need some tool (it can be heroku add-on, spring feature or other tool) to monitor how they communicate (see all requests and responses).
I know that I can implement custom spring http interceptors and store http messages somehow but it will be better to use already ready solution.
Probably the easiest thing is to log to stdout, using any logging library or simply printing, and have heroku logs display it on the command line.
I'm a noob using Hubot, so please bear with me.
I was going through Hubot's documentation ( https://hubot.github.com/docs/deploying/ ) and saw that we can deploy to Heroku, Unix systems and others.
May I know how can Hubot be deployed on AWS Lambda ?
Best Regards.
I was wondering the same thing. I think the answer is probably "yes, if your chat system can send you http when traffic happens". I think Lambda is probably a great choice, since each message in chat is an event to process according to the rules that your bot has. So, the Lambda function invocation model is a good fit - lots of tiny invokes. You might, though, want to filter the traffic that gets to the function, though, if your chat system is high-traffic.
For example Slack's Events API lets you subscribe to all of the things you might need the bot to see, I think. You'd then need to route those requests to your lambda function, which you could do via AWS API Gateway.
The existing hubot-slack adapter uses the Real-Time Messaging API, though, so you'd need to write your own adaptor for the Events API http that the API Gateway receives.
The same approach (and requirement) applies to other chat systems.
Is there any realtime API functionality which would allow me to know when an application has been pushed and completed? I didn't see anything in the documentation. Essentially, I'd like to write an add-on that could receive push events and than do something with them (trigger selenium tests, etc).
You can use deploy hooks. The HTTP POST hook is the most versatile one.