【问题标题】:Codemagic builds are not triggered from CodeCommitCodemagic 构建不会从 CodeCommit 触发
【发布时间】:2022-07-15 15:25:24
【问题描述】:

我按照 Codemagic 提供的说明将 WebHook 添加到 CodeCommit。其中包括创建主题、向其添加订阅,然后在存储库中配置通知。

无论如何,在直接合并或更改我的主人之后,仍然不会触发任何构建。

这是我的设置: Codemagic 中的 Webhook: 订阅主题:

通知规则目标:

我确实注意到通知目标状态无法访问。但我不知道它的真正含义。

我的问题是因为无法访问状态而出现的吗? 那到底是什么意思呢?

【问题讨论】:

    标签: amazon-sns aws-codecommit codemagic


    【解决方案1】:

    你参考这个文件吗? https://docs.codemagic.io/configuration/webhooks/#setting-up-webhooks-for-aws-codecommit

    您是否已完成以下步骤,是否可以在 Codemagic 中看到来自 AWS 的任何传入请求?

    6. In the Codemagic UI, navigate to your application and select the Webhooks tab.
    7. Under Recent deliveries, choose the most recent webhook, and copy the subscription link under the Results tab to your browser.
    

    【讨论】:

      【解决方案2】:

      嗯,显然这里的文档已经更新: https://docs.codemagic.io/configuration/webhooks/#setting-up-webhooks-for-aws-codecommit

      您必须为主题的访问策略更新配置:

      {
        "Version": "2008-10-17",
        "Statement": [
          {
            "Sid": "CodeNotification_publish",
            "Effect": "Allow",
            "Principal": {
              "Service": "codestar-notifications.amazonaws.com"
            },
            "Action": "SNS:Publish",
            "Resource": "arn:aws:sns:REGION:ACCOUNT_ID:REPOSITORY"
          }
        ]
      }
      

      确保更新资源! "Resource": "arn:aws:sns:REGION:ACCOUNT_ID:REPOSITORY"

      从您的主题复制 ARN:

      除此之外(如上所述)这一步很重要:

      在最近交付(在 Codemagic -> 应用程序 -> Webhooks 中)下,选择最近的 webhook,然后复制 结果选项卡下的订阅链接到您的浏览器。

      【讨论】:

        猜你喜欢
        • 2021-12-04
        • 2021-05-16
        • 2022-01-03
        • 2021-01-13
        • 1970-01-01
        • 1970-01-01
        • 2012-03-05
        • 2020-06-21
        • 2020-06-10
        相关资源
        最近更新 更多