misc fixes
This commit is contained in:
parent
24a304655c
commit
8e6067e52f
|
@ -99,6 +99,7 @@ if [ -n "${CI_COMMIT_TAG}" ] ; then
|
||||||
tags="${CI_COMMIT_TAG#v}"
|
tags="${CI_COMMIT_TAG#v}"
|
||||||
fi
|
fi
|
||||||
if [ "${CI_COMMIT_BRANCH}" = "${CI_REPO_DEFAULT_BRANCH}" ] ; then
|
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"
|
tags="${tags} ${VERSION} latest"
|
||||||
echo "RELMODE=1" >> .build_env
|
echo "RELMODE=1" >> .build_env
|
||||||
fi
|
fi
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
||||||
/plugin-sonatype-nexus
|
/plugin-sonatype-nexus*
|
||||||
/.auth.json
|
/.auth.json
|
||||||
/.build_env
|
/.build_env
|
||||||
/dist/
|
/dist/
|
||||||
|
|
|
@ -96,7 +96,8 @@ func (p *Plugin) parseSettings() error {
|
||||||
var ur UploadRule
|
var ur UploadRule
|
||||||
|
|
||||||
ur.Repository = p.Settings.Repository
|
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 == "" {
|
if ur.Repository == "" {
|
||||||
return reportEmptySetting("nexus.repository")
|
return reportEmptySetting("nexus.repository")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user