Update vars/jenkinsPipelineSkeleton.groovy
This commit is contained in:
@@ -36,34 +36,33 @@ def call(String projectName, Map config) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
withCredentials([
|
stage('Build and Deploy') {
|
||||||
string(credentialsId: 'quarkus-db-secret', variable: 'QUARKUS_DB_USER'),
|
steps {
|
||||||
string(credentialsId: 'quarkus-db-secret', variable: 'QUARKUS_DB_PASSWORD')
|
script {
|
||||||
]) {
|
withCredentials([
|
||||||
|
string(credentialsId: 'quarkus-db-secret', variable: 'QUARKUS_DB_USER'),
|
||||||
|
string(credentialsId: 'quarkus-db-secret', variable: 'QUARKUS_DB_PASSWORD')
|
||||||
|
]) {
|
||||||
|
|
||||||
def dbUser = QUARKUS_DB_USER
|
def dbUser = QUARKUS_DB_USER
|
||||||
def dbPass = QUARKUS_DB_PASSWORD
|
def dbPass = QUARKUS_DB_PASSWORD
|
||||||
|
buildAndDeploy(
|
||||||
stage('Build and Deploy') {
|
projectName,
|
||||||
steps {
|
config.helmChart,
|
||||||
script {
|
config.helmRepo,
|
||||||
buildAndDeploy(
|
config.namespace,
|
||||||
projectName,
|
config.version,
|
||||||
config.helmChart,
|
config.useCustomDocker,
|
||||||
config.helmRepo,
|
config.useInsecureRegistry,
|
||||||
config.namespace,
|
config.port,
|
||||||
config.version,
|
dbUser,
|
||||||
config.useCustomDocker,
|
dbPass
|
||||||
config.useInsecureRegistry,
|
)
|
||||||
config.port,
|
|
||||||
dbUser,
|
|
||||||
dbPass
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
echo "Build for '${projectName}' was successful!"
|
echo "Build for '${projectName}' was successful!"
|
||||||
|
|||||||
Reference in New Issue
Block a user