Skip to content

Commit a95762e

Browse files
committed
try a different way of checking success
1 parent 429b26d commit a95762e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/build_layers.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ function docker_build_zip {
162162

163163
rm -rf $temp_dir
164164
echo "Done creating archive $destination"
165-
rm pyproject.toml.bak
166165
}
167166

168167
rm -rf $LAYER_DIR
@@ -174,7 +173,8 @@ do
174173
do
175174
echo "Building layer for Python ${python_version} arch=${architecture}"
176175
docker_build_zip ${python_version} $LAYER_DIR/${LAYER_FILES_PREFIX}-${architecture}-${python_version}.zip ${architecture} "ddtrace_serverless" "serverless" || true
177-
if [ -f pyproject.toml.bak ]; then # true means the previous attempt failed
176+
if [ $? != 0 ]; then
177+
echo "Attempting layer build again with package ddtrace"
178178
docker_build_zip ${python_version} $LAYER_DIR/${LAYER_FILES_PREFIX}-${architecture}-${python_version}.zip ${architecture} "ddtrace" "manylinux2014"
179179
fi
180180
done

0 commit comments

Comments
 (0)