From cd278835ae8999dce8c0511f855053501570a6cd Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Mon, 1 Jan 2024 13:24:31 +0300 Subject: [PATCH] Update JFrog cli configuration to include --overwrite --- jfrog-oauth/run.sh | 2 +- jfrog-token/run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jfrog-oauth/run.sh b/jfrog-oauth/run.sh index ea8d039..2b24d9e 100644 --- a/jfrog-oauth/run.sh +++ b/jfrog-oauth/run.sh @@ -16,7 +16,7 @@ fi export CI=true # Authenticate with the JFrog CLI. jf c rm 0 || true -echo "${ARTIFACTORY_ACCESS_TOKEN}" | jf c add --access-token-stdin --url "${JFROG_URL}" 0 +echo "${ARTIFACTORY_ACCESS_TOKEN}" | jf c add --access-token-stdin --url "${JFROG_URL}" --overwrite 0 if [ -z "${REPOSITORY_NPM}" ]; then echo "🤔 no npm repository is set, skipping npm configuration." diff --git a/jfrog-token/run.sh b/jfrog-token/run.sh index 2e43bd5..77be1e8 100644 --- a/jfrog-token/run.sh +++ b/jfrog-token/run.sh @@ -16,7 +16,7 @@ fi export CI=true # Authenticate with the JFrog CLI. jf c rm 0 || true -echo "${ARTIFACTORY_ACCESS_TOKEN}" | jf c add --access-token-stdin --url "${JFROG_URL}" 0 +echo "${ARTIFACTORY_ACCESS_TOKEN}" | jf c add --access-token-stdin --url "${JFROG_URL}" --overwrite 0 if [ -z "${REPOSITORY_NPM}" ]; then echo "🤔 no npm repository is set, skipping npm configuration."