Update vars/jenkinsPipelineSkeleton.groovy
This commit is contained in:
@@ -36,6 +36,9 @@ def call(String projectName, Map config) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('Build and Deploy') {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
withCredentials([
|
withCredentials([
|
||||||
string(credentialsId: 'quarkus-db-secret', variable: 'QUARKUS_DB_USER'),
|
string(credentialsId: 'quarkus-db-secret', variable: 'QUARKUS_DB_USER'),
|
||||||
string(credentialsId: 'quarkus-db-secret', variable: 'QUARKUS_DB_PASSWORD')
|
string(credentialsId: 'quarkus-db-secret', variable: 'QUARKUS_DB_PASSWORD')
|
||||||
@@ -43,10 +46,6 @@ def call(String projectName, Map config) {
|
|||||||
|
|
||||||
def dbUser = QUARKUS_DB_USER
|
def dbUser = QUARKUS_DB_USER
|
||||||
def dbPass = QUARKUS_DB_PASSWORD
|
def dbPass = QUARKUS_DB_PASSWORD
|
||||||
|
|
||||||
stage('Build and Deploy') {
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
buildAndDeploy(
|
buildAndDeploy(
|
||||||
projectName,
|
projectName,
|
||||||
config.helmChart,
|
config.helmChart,
|
||||||
@@ -63,7 +62,7 @@ def call(String projectName, Map config) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
echo "Build for '${projectName}' was successful!"
|
echo "Build for '${projectName}' was successful!"
|
||||||
|
|||||||
Reference in New Issue
Block a user