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")