Skip to content

Commit

Permalink
Switch nexus repository
Browse files Browse the repository at this point in the history
  • Loading branch information
OHaimanov committed Jun 8, 2024
1 parent de1907d commit ee8defd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion helm-index-charts.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,15 @@ ansiColor('xterm') {
if (!chartsForIndex.isEmpty()) {
helm.k8sClient {
chartsForIndex.each {
// sh """
// echo "Pushing ${it} to repo Nexus..."
// CHART_PACKAGE="\$(helm package ${it} --dependency-update | cut -d":" -f2 | tr -d '[:space:]')"
// curl -is -u "${NEXUS_USERNAME}:${NEXUS_PASSWORD}" ${Constants.FOLIO_HELM_V2_REPO_URL} --upload-file "\$CHART_PACKAGE"
// """
sh """
echo "Pushing ${it} to repo Nexus..."
CHART_PACKAGE="\$(helm package ${it} --dependency-update | cut -d":" -f2 | tr -d '[:space:]')"
curl -is -u "${NEXUS_USERNAME}:${NEXUS_PASSWORD}" ${Constants.FOLIO_HELM_V2_REPO_URL} --upload-file "\$CHART_PACKAGE"
curl -is -u "${NEXUS_USERNAME}:${NEXUS_PASSWORD}" https://repository.folio.org/repository/folio-helm-v2-deprecated/ --upload-file "\$CHART_PACKAGE"
"""
}
}
Expand Down

0 comments on commit ee8defd

Please sign in to comment.