Closed
Description
Description
Ability to use variables
similarly to what is now available in GithubSourceAction.
Use Case
Using bitbucket and recommended CodeStarConnectionsSourceAction I'd like access commit id of the particular source and use it to tag AMI build further down in the pipeline.
Proposed Solution
?
Other information
cdk-version: 1.134.0
Acknowledge
- I may be able to implement this feature requestThis feature might incur a breaking change
Activity
kornicameister commentedon Dec 2, 2021
It works using syntax from documentation, but would certainly be nicer to have common interface.
skinny85 commentedon Dec 3, 2021
Yep, agreed @kornicameister, thanks for opening the issue!
Would you consider contributing this as a PR? It should be relatively straightforward I think if you look how the existing source Actions implement variables (for example, here's the code for the
GitHubSourceAction
).Our contributing guide: https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md
Thanks,
Adam
kornicameister commentedon Dec 7, 2021
I will certainly try but I cannot give any ETA on this so if anyone can jump in, all the better.
kewur commentedon Dec 13, 2021
Is there a workaround to get the commitId from CodeStarConnectionsAction in the meantime?
skinny85 commentedon Dec 13, 2021
Yep! Just pass the
variableNamespace
property when creating theCodeStarConnectionsSourceAction
, and then use the syntax"#{MyVariableNamespace.CommitId}"
in another Action's definition (like CodeBuild Action's environment variable).14 remaining items