CodePipeline - 将提交消息从源操作传递到批准操作
CodePipeline - Pass commit message from Source Action to Approval Action
在 AWS Codepipeline 中 - 有没有办法将与触发器相关的信息(例如:提交消息内容)从源操作传递到手动批准操作的“CustomData”字段?
注意:NotificationArn 指向一个主题,该主题具有对 Approve/Reject.
的电子邮件订阅
是的,这是可能的。
在 Source 操作中,定义命名空间:
"name": "Source",
"actions": [
{
"name": "Source",
"actionTypeId": {
"category": "Source",
"owner": "AWS",
"provider": "CodeCommit",
"version": "1"
},
"namespace": "SourceVariables"
在审批动作中,使用变量:
"name": "Approve",
"actionTypeId": {
"category": "Approval",
"owner": "AWS",
"provider": "Manual",
"version": "1"
},
"configuration": {
"CustomData": "Manual approval required. Message from Source is #{SourceVariables.CommitMessage}."
在 AWS Codepipeline 中 - 有没有办法将与触发器相关的信息(例如:提交消息内容)从源操作传递到手动批准操作的“CustomData”字段? 注意:NotificationArn 指向一个主题,该主题具有对 Approve/Reject.
的电子邮件订阅是的,这是可能的。
在 Source 操作中,定义命名空间:
"name": "Source",
"actions": [
{
"name": "Source",
"actionTypeId": {
"category": "Source",
"owner": "AWS",
"provider": "CodeCommit",
"version": "1"
},
"namespace": "SourceVariables"
在审批动作中,使用变量:
"name": "Approve",
"actionTypeId": {
"category": "Approval",
"owner": "AWS",
"provider": "Manual",
"version": "1"
},
"configuration": {
"CustomData": "Manual approval required. Message from Source is #{SourceVariables.CommitMessage}."