1
0
Fork 0

misc fixes

This commit is contained in:
Konstantin Demin 2024-02-26 19:07:23 +03:00
parent 24a304655c
commit 8e6067e52f
Signed by: krd
GPG Key ID: 1F33CB0BA4731BC6
3 changed files with 4 additions and 2 deletions

View File

@ -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

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
/plugin-sonatype-nexus
/plugin-sonatype-nexus*
/.auth.json
/.build_env
/dist/

View File

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