sonatype-nexus-community / helm-nexus-push

A plugin for helm that will push a chart to a Nexus Hosted Repository
Apache License 2.0
43 stars 47 forks source link

Error: plugin "nexus-push" exited with error" #28

Closed golimix closed 1 year ago

golimix commented 1 year ago

the condition

# helm repo list | grep limix
limix-com        http://helm.limix.top/repository/helm-community/
limix            http://helm.limix.top/repository/helm/

the exited with err

helm nexus-push limix demo-app/ -u demo -p demo
Pushing demo-app/ to repo http://helm.limix.top/repository/helm-comm/
http://helm.limix.top/repository/helm-community//...
Error: plugin "nexus-push" exited with error"

why

# push.sh
helm repo list | grep "^$REPO" | awk '{print $2}'
# helm repo list | grep limix
limix-com        http://helm.limix.top/repository/helm-community/
limix            http://helm.limix.top/repository/helm/

solved by

add a blank space for the grep repository

# push.sh
helm repo list | grep "^$REPO " | awk '{print $2}'