You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [ "$(ls -A ${PROJECT_ROOT}elastic-apm-agent/target/*.jar)" ]
21
+
FILE=$(ls -A ${PROJECT_ROOT}elastic-apm-agent/target/*.jar | grep -E "elastic-apm-agent-[0-9]+.[0-9]+.[0-9]+(-SNAPSHOT)?.jar")
22
+
23
+
if [ -n"${FILE}" ]
22
24
then
23
25
# We have build files to use
24
26
echo"INFO: Found local build artifact. Using locally built for Docker build"
25
-
find -E ${PROJECT_ROOT}elastic-apm-agent/target -regex '.*/elastic-apm-agent-[0-9]+.[0-9]+.[0-9]+(-SNAPSHOT)?.jar' -exec cp {} ${PROJECT_ROOT}apm-agent-java.jar\;||echo"INFO: No locally built image found"
27
+
cp "${FILE}""${PROJECT_ROOT}apm-agent-java.jar"||echo"INFO: No locally built image found"
26
28
elif [ !-z${SONATYPE_FALLBACK+x} ]
27
29
then
28
30
echo"INFO: No local build artifact and SONATYPE_FALLBACK. Falling back to downloading artifact from Sonatype Nexus repository for version $RELEASE_VERSION"
@@ -37,19 +39,27 @@ then
37
39
exit 1
38
40
fi
39
41
40
-
echo"INFO: Starting Docker build for version $RELEASE_VERSION"
0 commit comments