Skip to content

Commit

Permalink
feat(ci): add azure db stages to the ci (camunda#1507)
Browse files Browse the repository at this point in the history
* Add Pipeline Stages for Azure DB in the Sidetrack pipeline. Azure DB
  builds last longer, so they execute on the Sidetrack until the build
is optimized.
* Since Azure DB uses the Microsoft SQL Server DB engine, the Azure DB
  stages can be executed on PRs with the sqlserver PR label.

Related to CAM-13625
  • Loading branch information
koevskinikola authored Aug 18, 2021
1 parent d3504a3 commit 6df60d6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .ci/config/matrices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ daily-stages:
sidetrack-stages:
databases:
- 'cockroachdb_201'
- 'azure_sql_db_150'
stages:
- 'db-unit'
- 'db-unit-authorizations'
- 'sql-scripts'
- 'upgrade-database'
- 'instance-migration'
- 'old-engine'
Expand Down
3 changes: 1 addition & 2 deletions .ci/sidetrack/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,10 @@ pipeline {
stage('UNIT DB tests') {
steps {
script {
// see #shouldTrigger() at the beginning of the file
// see the .ci/config/matrices.yaml for the stage generation values
// see .ci/config/stage-types.yaml for the stage configurations
parallel(cambpmGetMatrixStages('sidetrack-stages', [], { stageInfo ->
return cambpmWithLabels(cambpmGetLabels(stageInfo.stageType))
return cambpmWithLabels(cambpmGetLabels(stageInfo.stageType), cambpmGetDbType(stageInfo.nodeType))
}))
}
}
Expand Down
6 changes: 4 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ pipeline {
}

// the sidetrack pipeline should be triggered on daily,
// or PR builds only, master builds should be excluded
if (env.BRANCH_NAME != cambpmDefaultBranch() && cambpmWithLabels('all-db', 'cockroachdb', 'authorizations')) {
// or PR builds only, master builds should be excluded.
// The Sidetrack pipeline contains CRDB and Azure DB stages,
// triggered with the cockroachdb and sqlserver PR labels.
if (env.BRANCH_NAME != cambpmDefaultBranch() && cambpmWithLabels('all-db', 'cockroachdb', 'sqlserver', 'authorizations')) {
cambpmTriggerDownstream(
platformVersionDir + "/cambpm-ce/cambpm-sidetrack/${env.BRANCH_NAME}",
[string(name: 'UPSTREAM_PROJECT_NAME', value: upstreamProjectName),
Expand Down

0 comments on commit 6df60d6

Please sign in to comment.