在Azure Blob更新上触发Jenkins构建 [英] Trigger a Jenkins build on Azure Blob update
问题描述
以前,我已经为AWS创建了一个自动化作业,其中Jenkins使用Jenkins AWS SQS插件监视SQS队列,并在队列中找到消息时触发构建作业.将该队列配置为在发生任何创建"事件时从S3存储桶接收通知.
Previously I had created an automation job for AWS where Jenkins keeps an eye on an SQS queue using the Jenkins AWS SQS Plugin and triggers a build job when it finds a message in the queue. The queue is configured to receive notification from an S3 Bucket whenever any "create" event occurs.
我正在尝试在Microsoft Azure平台上测试类似的过程,并且对于要使用哪些Azure服务有些困惑.我看到可以使用Azure事件网格,或者我们可以直接从Blob存储服务发布通知,也可以使用Azure Service Bus?!?
I am trying to test out a similar process on Microsoft Azure platform and am a little confused as to which Azure services to use. I see that Azure Event Grid can be used or maybe we can directly post notification from Blob Storage service or maybe use Azure Service Bus ?!?
此外,我确实找到了 Jenkins Azure存储插件的功能稍有不同但有用.
Also, I did found a Jenkins Azure Storage plugin which has a slightly different but useful functionality.
对于文档,我发现只有一个链接接近完成此操作的方式,但似乎也不完整.
As for documentation, I found only one link that is close to how this might be done but that too seems incomplete..
任何人和所有帮助表示赞赏.
Any and all help appreciated.
推荐答案
您可以为其使用Azure功能.编写一个代码,该代码将在新的Blob到达/现有Blob更新时触发,然后向您的詹金斯发出请求以使构建排队.
You can use Azure Functions for it. Write a code that will be triggered when a new blob arrives / existing blob gets updated, then do a request to your jenkins to queue a build.
以下是有用的链接:
https://wiki.jenkins.io/display/JENKINS/Remote + access + API
这篇关于在Azure Blob更新上触发Jenkins构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!