Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
Fix .m2/ perms on Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
oppegard committed Jan 9, 2023
1 parent 1f3c918 commit 94ecca4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/deploy-snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ REPO_DIR=$(git rev-parse --show-toplevel)
cd "$REPO_DIR"

sudo chmod 666 /var/run/docker.sock
mkdir -p "$WORKSPACE_TMP/.m2"
mkdir -p "$WORKSPACE_TMP/.m2" && chown -R "$(whoami)" "$WORKSPACE_TMP/.m2"

# Credentials for publishing to repo.spring.io
M2_SETTINGS_PATH="${M2_SETTINGS_SPRINGIO_XML}"
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ REPO_DIR=$(git rev-parse --show-toplevel)
cd "$REPO_DIR"

sudo chmod 666 /var/run/docker.sock
mkdir -p "$WORKSPACE_TMP/.m2"
mkdir -p "$WORKSPACE_TMP/.m2" && chown -R "$(whoami)" "$WORKSPACE_TMP/.m2"

if [ "${RELEASE_TYPE}" = "milestone" ]; then
# Credentials for publishing Milestones/RCs to repo.spring.io
Expand Down
2 changes: 1 addition & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ REPO_DIR=$(git rev-parse --show-toplevel)
cd "$REPO_DIR"

sudo chmod 666 /var/run/docker.sock
mkdir -p "$WORKSPACE_TMP/.m2"
mkdir -p "$WORKSPACE_TMP/.m2" && chown -R "$(whoami)" "$WORKSPACE_TMP/.m2"

DOCKER_NAME="${JOB_NAME}-${BUILD_NUMBER}"
docker run -t --rm --name "$DOCKER_NAME" -u 1000:1000 \
Expand Down

0 comments on commit 94ecca4

Please sign in to comment.