Update vars/jenkinsPipelineSkeleton.groovy

This commit is contained in:
2025-05-29 11:23:26 +03:00
parent db56b1f5fd
commit d89334d424

View File

@@ -36,14 +36,30 @@ def call(String projectName, Map config) {
}
}
stage('Build and Deploy') {
steps {
script {
buildAndDeploy(projectName, config.helmChart, config.helmRepo, config.namespace, config.version, config.useCustomDocker, config.useInsecureRegistry, config.port, config.quarkusDBName, config.quarkusDBPass)
withCredentials([
string(credentialsId: 'quarkus-db-secret', variable: 'QUARKUS_DB_USER'),
string(credentialsId: 'quarkus-db-secret', variable: 'QUARKUS_DB_PASSWORD')
]) {
stage('Build and Deploy') {
steps {
script {
buildAndDeploy(
projectName,
config.helmChart,
config.helmRepo,
config.namespace,
config.version,
config.useCustomDocker,
config.useInsecureRegistry,
config.port,
QUARKUS_DB_PASSWORD,
QUARKUS_DB_PASSWORD
)
}
}
}
}
}
}
post {
success {
echo "Build for '${projectName}' was successful!"