We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6670e30 commit 4ce6623Copy full SHA for 4ce6623
tests/scripts/run-notebook-test.sh
@@ -81,8 +81,15 @@ echo "$LIFECYCLE_CONFIG_CONTENT"
81
82
set -euo pipefail
83
84
+# git doesn't work in codepipeline, use CODEBUILD_RESOLVED_SOURCE_VERSION to get commit id
85
+codebuild_initiator="${CODEBUILD_INITIATOR:-0}"
86
+if [ "${codebuild_initiator:0:12}" == "codepipeline" ]; then
87
+ COMMIT_ID="${CODEBUILD_RESOLVED_SOURCE_VERSION}"
88
+else
89
+ COMMIT_ID=$(git rev-parse --short HEAD)
90
+fi
91
+
92
ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)
-COMMIT_ID=$(git rev-parse --short HEAD)
93
LIFECYCLE_CONFIG_NAME="install-python-sdk-$COMMIT_ID"
94
95
python setup.py sdist
0 commit comments