Last active
April 1, 2024 12:49
-
-
Save rupertbg/1fbdec3dfa746e0d5eee69234d995689 to your computer and use it in GitHub Desktop.
Get a CodePipeline Execution ID from within a CodeBuild Job
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws codepipeline get-pipeline-state --region us-west-2 --name ${CODEBUILD_INITIATOR#codepipeline/} --query 'stageStates[?actionStates[?latestExecution.externalExecutionId==`'${CODEBUILD_BUILD_ID}'`]].latestExecution.pipelineExecutionId' --output text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment