diff --git a/vars/uploadHelmChart.groovy b/vars/uploadHelmChart.groovy index 20d22f1..0068d74 100644 --- a/vars/uploadHelmChart.groovy +++ b/vars/uploadHelmChart.groovy @@ -1,6 +1,4 @@ -def call(String chartFile, String nexusUser, String nexusPass) { - def nexusUrl = env.NEXUS_URL - +def call(String chartFile, String nexusUser, String nexusUrl, String nexusPass) { container('maven') { sh "curl -u ${nexusUser}:${nexusPass} --upload-file ${chartFile} ${nexusUrl}" echo "Helm chart uploaded: ${chartFile} -> ${nexusUrl}"