Just committing so I can go home
This commit is contained in:
@@ -1,41 +1,30 @@
|
|||||||
def call(String appName, String helmChartPath, String helmRepoName,String helmChartVersion, String dockerBuildFunction) {
|
def call(String appName, String helmChartPath, String helmRepoName,String helmChartVersion, String dockerBuildFunction) {
|
||||||
stage('Make jar') {
|
stage('Make jar') {
|
||||||
steps {
|
|
||||||
script {
|
script {
|
||||||
buildJar(true)
|
buildJar(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
stage('Package helm chart') {
|
stage('Package helm chart') {
|
||||||
steps {
|
|
||||||
script {
|
script {
|
||||||
makeHelmChart("${helmChartPath}/${appName}")
|
makeHelmChart("${helmChartPath}/${appName}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
stage('Upload helm chart') {
|
stage('Upload helm chart') {
|
||||||
steps {
|
|
||||||
script {
|
script {
|
||||||
uploadHelmChart("${appName}-${helmChartVersion}", env.NEXUS_URL, "admin", env.NEXUS_PASS)
|
uploadHelmChart("${appName}-${helmChartVersion}", env.NEXUS_URL, "admin", env.NEXUS_PASS)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
stage('Docker build & push') {
|
stage('Docker build & push') {
|
||||||
steps {
|
|
||||||
script {
|
script {
|
||||||
this."${dockerBuildFunction}"(env.NEXUS_DOCKER_URL, appName, "./Dockerfile", "target", "admin", env.NEXUS_DOCKER_PASS)
|
this."${dockerBuildFunction}"(env.NEXUS_DOCKER_URL, appName, "./Dockerfile", "target", "admin", env.NEXUS_DOCKER_PASS)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
stage('Add Helm Repo') {
|
stage('Add Helm Repo') {
|
||||||
steps {
|
|
||||||
script {
|
script {
|
||||||
addHelmRepo(helmRepoName, env.NEXUS_URL)
|
addHelmRepo(helmRepoName, env.NEXUS_URL)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
stage('Deploy Helm Chart') {
|
stage('Deploy Helm Chart') {
|
||||||
steps {
|
|
||||||
script {
|
script {
|
||||||
deployHelm(
|
deployHelm(
|
||||||
appName,
|
appName,
|
||||||
@@ -49,4 +38,3 @@ def call(String appName, String helmChartPath, String helmRepoName,String helmCh
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user