Skip to content

Commit

Permalink
use branch to build artifacts and deploy automatically to staging (#2056
Browse files Browse the repository at this point in the history
)

uses branch as version.
  • Loading branch information
shpwe authored Oct 14, 2024
1 parent 4e99647 commit e2300ac
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .jenkins/projectBuilder.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ projectBuilderV5 (
artifactType: "ecr",
projectDir: "backend",
runInProjectDir: true,
versioning: "calendar",
versioning: "branch",
appInfrastructure: [
[file: "cloudformation/backend/app-infrastructure.yml"]
],
Expand All @@ -23,14 +23,18 @@ projectBuilderV5 (
dockerConfig: [
dockerFile: "backend/cl.Dockerfile",
requiresCodeArtifactToken: true,
],
automatedBranchBuilds: [
"dev",
"release/.*"
]
],
"upgrade":[
artifactType: 'codeartifact',
projectDir: 'frontend',
runInProjectDir: true,
artifactDir: 'dist/upgrade',
versioning: 'calendar',
versioning: 'branch',
oneArtifactPerEnvironment: true,
buildScripts: [
[
Expand All @@ -54,6 +58,10 @@ projectBuilderV5 (
GOOGLE_CLIENT_ID: '@vault(secret/configs/upgrade/${environment}/GOOGLE_CLIENT_ID)',
GOOGLE_SERVICE_ACCOUNT_ID: '@vault(secret/configs/upgrade/${environment}/GOOGLE_SERVICE_ACCOUNT_ID)',
],
automatedBranchBuilds: [
"dev",
"release/.*"
]
],
"scheduler-lambda": [
artifactType: "s3",
Expand Down Expand Up @@ -91,7 +99,12 @@ projectBuilderV5 (
[
type: "defaultBranch",
environment: "qa"
],
[
branchRegex: "release/.*",
environment: "staging"
]

],
jobs: [
[
Expand All @@ -106,6 +119,10 @@ projectBuilderV5 (
[
type: "defaultBranch",
environment: "qa"
],
[
branchRegex: "release/.*",
environment: "staging"
]
],
jobs: [
Expand Down

0 comments on commit e2300ac

Please sign in to comment.