From 2ed802543cc7a10947f4950c0e5319c655918c88 Mon Sep 17 00:00:00 2001 From: konsthol Date: Thu, 29 May 2025 12:01:59 +0300 Subject: [PATCH] Update vars/jenkinsPipelineSkeleton.groovy --- vars/jenkinsPipelineSkeleton.groovy | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vars/jenkinsPipelineSkeleton.groovy b/vars/jenkinsPipelineSkeleton.groovy index 4d536d2..cba9481 100644 --- a/vars/jenkinsPipelineSkeleton.groovy +++ b/vars/jenkinsPipelineSkeleton.groovy @@ -38,10 +38,11 @@ def call(String projectName, Map config) { stage('Build and Deploy') { steps { - withCredentials([ - string(credentialsId: 'quarkus-db-secret', variable: 'QUARKUS_DB_USER'), - string(credentialsId: 'quarkus-db-secret', variable: 'QUARKUS_DB_PASSWORD') - ]) { + withCredentials([ + usernamePassword(credentialsId: 'quarkus-db-secret', + usernameVariable: 'QUARKUS_DB_USER', + passwordVariable: 'QUARKUS_DB_PASSWORD') + ]) { script {