Update vars/jenkinsPipelineSkeleton.groovy
This commit is contained in:
@@ -36,34 +36,33 @@ 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') {
|
||||
steps {
|
||||
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 dbPass = 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,
|
||||
dbUser,
|
||||
dbPass
|
||||
)
|
||||
}
|
||||
def dbUser = QUARKUS_DB_USER
|
||||
def dbPass = QUARKUS_DB_PASSWORD
|
||||
buildAndDeploy(
|
||||
projectName,
|
||||
config.helmChart,
|
||||
config.helmRepo,
|
||||
config.namespace,
|
||||
config.version,
|
||||
config.useCustomDocker,
|
||||
config.useInsecureRegistry,
|
||||
config.port,
|
||||
dbUser,
|
||||
dbPass
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
success {
|
||||
echo "Build for '${projectName}' was successful!"
|
||||
|
||||
Reference in New Issue
Block a user