Skip to content

Instantly share code, notes, and snippets.

@dragoonis
Created September 23, 2020 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dragoonis/576d2cb01013e1e9da9132a30ac3b7a6 to your computer and use it in GitHub Desktop.
Save dragoonis/576d2cb01013e1e9da9132a30ac3b7a6 to your computer and use it in GitHub Desktop.
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