Update vars/jenkinsPipelineSkeleton.groovy
This commit is contained in:
@@ -36,10 +36,26 @@ def call(String projectName, Map config) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
withCredentials([
|
||||||
|
string(credentialsId: 'quarkus-db-secret', variable: 'QUARKUS_DB_USER'),
|
||||||
|
string(credentialsId: 'quarkus-db-secret', variable: 'QUARKUS_DB_PASSWORD')
|
||||||
|
]) {
|
||||||
stage('Build and Deploy') {
|
stage('Build and Deploy') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
buildAndDeploy(projectName, config.helmChart, config.helmRepo, config.namespace, config.version, config.useCustomDocker, config.useInsecureRegistry, config.port, config.quarkusDBName, config.quarkusDBPass)
|
buildAndDeploy(
|
||||||
|
projectName,
|
||||||
|
config.helmChart,
|
||||||
|
config.helmRepo,
|
||||||
|
config.namespace,
|
||||||
|
config.version,
|
||||||
|
config.useCustomDocker,
|
||||||
|
config.useInsecureRegistry,
|
||||||
|
config.port,
|
||||||
|
QUARKUS_DB_PASSWORD,
|
||||||
|
QUARKUS_DB_PASSWORD
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user