From 8e6067e52f73f03a0f8330b3cd8ee852daaaefb8 Mon Sep 17 00:00:00 2001 From: Konstantin Demin Date: Mon, 26 Feb 2024 19:07:23 +0300 Subject: [PATCH] misc fixes --- .ci/env.sh | 1 + .gitignore | 2 +- settings.go | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.ci/env.sh b/.ci/env.sh index 62bdee5..caceb43 100755 --- a/.ci/env.sh +++ b/.ci/env.sh @@ -99,6 +99,7 @@ if [ -n "${CI_COMMIT_TAG}" ] ; then tags="${CI_COMMIT_TAG#v}" fi if [ "${CI_COMMIT_BRANCH}" = "${CI_REPO_DEFAULT_BRANCH}" ] ; then + ## TODO: think about "latest" tag: it should be error-prone for "backward tag push" tags="${tags} ${VERSION} latest" echo "RELMODE=1" >> .build_env fi diff --git a/.gitignore b/.gitignore index d5ed011..e1b6a61 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -/plugin-sonatype-nexus +/plugin-sonatype-nexus* /.auth.json /.build_env /dist/ diff --git a/settings.go b/settings.go index d064bdf..538d4fa 100644 --- a/settings.go +++ b/settings.go @@ -96,7 +96,8 @@ func (p *Plugin) parseSettings() error { var ur UploadRule ur.Repository = p.Settings.Repository - ur.Paths = p.Settings.Paths.Value() + ur.Paths = make([]string, len(p.Settings.Paths.Value())) + copy(ur.Paths, p.Settings.Paths.Value()) if ur.Repository == "" { return reportEmptySetting("nexus.repository")