Files
my-jenkins-library/vars/uploadHelmChart.groovy

7 lines
265 B
Groovy

def call(String chartFile, String nexusUrl, String nexusUser, String nexusPass) {
container('maven') {
sh "curl -u ${nexusUser}:${nexusPass} --upload-file ${chartFile} ${nexusUrl}"
echo "Helm chart uploaded: ${chartFile} -> ${nexusUrl}"
}
}