that's all folks
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
def call(String appName, String helmChartPath, String helmRepoName,String helmChartVersion, String dockerBuildFunction) {
|
||||
import com.example.DockerBuilder
|
||||
|
||||
def call(String appName, String helmChartPath, String helmRepoName,String helmChartVersion, Boolean useCustomDocker) {
|
||||
def dockerBuilder = new DockerBuilder()
|
||||
|
||||
stage('Make jar') {
|
||||
script {
|
||||
buildJar(true)
|
||||
@@ -16,7 +20,11 @@ def call(String appName, String helmChartPath, String helmRepoName,String helmCh
|
||||
}
|
||||
stage('Docker build & push') {
|
||||
script {
|
||||
this."${dockerBuildFunction}"(env.NEXUS_DOCKER_URL, appName, "./Dockerfile", "target", "admin", env.NEXUS_DOCKER_PASS)
|
||||
if (useCustomDocker) {
|
||||
dockerBuilder.customDockerBuildAndPush(env.NEXUS_DOCKER_URL, appName, "./Dockerfile", "target", "admin", env.NEXUS_DOCKER_PASS)
|
||||
} else {
|
||||
dockerBuilder.dockerBuildAndPush(env.NEXUS_DOCKER_URL, appName, "./Dockerfile", "target", "admin", env.NEXUS_DOCKER_PASS)
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Add Helm Repo') {
|
||||
|
||||
Reference in New Issue
Block a user