Skip to content

Commit e53022f

Browse files
committed
fix: mkdir .m2 before copying settings.xml
AI-Session-Id: 53746d45-e1a8-4be9-9ae1-7164847af11c AI-Tool: claude-code AI-Model: unknown
1 parent 73a63e8 commit e53022f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pipeline:
4747
redis-cli ping 2>/dev/null | grep -q PONG && { echo "Redis is up"; break; }
4848
echo "Waiting for Redis... ($i/30)"; sleep 1
4949
done
50-
cp .ci.settings.xml ${HOME}/.m2/settings.xml
50+
mkdir -p ${HOME}/.m2 && cp .ci.settings.xml ${HOME}/.m2/settings.xml
5151
mvn --batch-mode clean install
5252
when:
5353
stageStatus: Success
@@ -91,7 +91,7 @@ pipeline:
9191
redis-cli ping 2>/dev/null | grep -q PONG && { echo "Redis is up"; break; }
9292
echo "Waiting for Redis... ($i/30)"; sleep 1
9393
done
94-
cp .ci.settings.xml ${HOME}/.m2/settings.xml
94+
mkdir -p ${HOME}/.m2 && cp .ci.settings.xml ${HOME}/.m2/settings.xml
9595
if [ -n "$PR_NUMBER" ] && [ "$PR_NUMBER" != "null" ]; then
9696
mvn --batch-mode clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
9797
-Dsonar.host.url="$SONAR_HOST_URL" \

0 commit comments

Comments
 (0)