Skip to content
Snippets Groups Projects
Commit 3b26dd8b authored by Erick Hitter's avatar Erick Hitter
Browse files

Fix SVN credentials, and make commit ref configurable

parent a79ccb3e
1 merge request!8Fix SVN credentials in build process
Pipeline #761 passed
...@@ -119,12 +119,12 @@ svn cp "trunk" "tags/$PLUGIN_VERSION" ...@@ -119,12 +119,12 @@ svn cp "trunk" "tags/$PLUGIN_VERSION"
svn status svn status
# Stop here unless this is a merge into master. # Stop here unless this is a merge into master.
if [[ -z "$CI_COMMIT_REF_NAME" || "$CI_COMMIT_REF_NAME" != "master" ]]; then if [[ -z "$CI_COMMIT_REF_NAME" || -z "$WP_ORG_RELEASE_TAG" || "$CI_COMMIT_REF_NAME" != "$WP_ORG_RELEASE_TAG" ]]; then
echo "𝘅︎ EXITING before commit step as this is the '${CI_COMMIT_REF_NAME}' branch, not the 'master' branch." 1>&2 echo "𝘅︎ EXITING before commit step as this is the '${CI_COMMIT_REF_NAME}' ref, not the '${WP_ORG_RELEASE_TAG}' ref." 1>&2
exit 0 exit 0
fi fi
echo "➤ Committing files..." echo "➤ Committing files..."
svn commit -m "Update to version ${PLUGIN_VERSION} from GitLab (${CI_PROJECT_URL}; ${CI_JOB_URL})" --no-auth-cache --non-interactive --username "$SVN_USERNAME" --password "$SVN_PASSWORD" svn commit -m "Update to version ${PLUGIN_VERSION} from GitLab (${CI_PROJECT_URL}; ${CI_JOB_URL})" --no-auth-cache --non-interactive --username "$WP_ORG_USERNAME" --password "$WP_ORG_PASSWORD"
echo "✓ Plugin deployed!" echo "✓ Plugin deployed!"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment