-
-
Save dragoonis/576d2cb01013e1e9da9132a30ac3b7a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def purchaseExpenseTests(k8s_env) { | |
node("kubernetes && ${k8s_env.name}") { | |
checkout scm | |
runTests("Purchase Expense", '@purchase and @expenses', k8s_env) | |
} | |
} | |
def purchaseBillTests(k8s_env) { | |
node("kubernetes && ${k8s_env.name}") { | |
checkout scm | |
runTests("Purchase Expense", '@purchase and @bills', k8s_env) | |
} | |
} | |
def purchaseBillPaymentTests(k8s_env) { | |
node("kubernetes && ${k8s_env.name}") { | |
checkout scm | |
runTests("Purchase Expense", '@purchase and @bills', k8s_env) | |
} | |
} | |
// START OF PIPELINE | |
properties([ | |
buildDiscarder(logRotator(numToKeepStr: '50')), | |
parameters([ | |
choice(choices: mont_blanc_envs("gke-preprod env: prod"), description: 'Env to run.', name: 'MONT_BLANC_DEPLOY_NAME'), | |
]) | |
]) | |
parallel( | |
PurchaseExpense: { | |
mont_blanc_deploy(auto: true, finishAfterDeploy: true, this.&purchaseExpenseTests)) | |
} | |
PurchaseBill: { | |
mont_blanc_deploy(auto: true, this.&purchaseBillTests) | |
}, | |
PurchaseBillPayment: { | |
mont_blanc_deploy(auto: true, finishAfterDeploy: true, this.&purchaseBillPaymentTests) | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment