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

9 lines
282 B
Groovy

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