File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,10 @@ echo "Info: Building ADOT Lambda Java SDK Layer Code"
4949echo " Info: Creating the layer artifact"
5050mkdir -p " $SOURCEDIR " /build/distributions/
5151cp " $SOURCEDIR " /build/javaagent/aws-opentelemetry-agent* .jar " $SOURCEDIR " /build/distributions/aws-opentelemetry-javaagent.jar
52- zip -r ./build/distributions/aws-opentelemetry-java-layer.zip " $SOURCEDIR " /build/distributions/aws-opentelemetry-javaagent.jar otel-instrument
52+ cp otel-instrument " $SOURCEDIR " /build/distributions/otel-instrument
53+ pushd " $SOURCEDIR " /build/distributions
54+ zip -r aws-opentelemetry-java-layer.zip aws-opentelemetry-javaagent.jar otel-instrument
55+ popd
5356
5457# # Cleanup
5558# revert the patch applied since it is only needed while building the layer.
You can’t perform that action at this time.
0 commit comments