Skip to content

Commit 1db2163

Browse files
committed
updates to azure pipelines to be in line with other repositories
1 parent f86a47b commit 1db2163

File tree

2 files changed

+52
-6
lines changed

2 files changed

+52
-6
lines changed

.azure/README.md

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Azure Pipeline Configuration
2+
3+
This directory contains the Azure DevOps pipeline configuration for the JPO UTILS project.
4+
5+
## Overview
6+
7+
The pipeline configuration in `azure-pipelines.yml` is primarily used for Continuous Integration (CI) in the CDOT-CV fork of the JPO UTILS project. It serves as the first step in a two-stage process:
8+
9+
1. **Build Pipeline (this configuration)**
10+
- Triggers on changes to the `develop` branch
11+
- Monitors specific project directories for changes:
12+
- `jikkou/*`
13+
- `kafka-connect/*`
14+
- Copies all source files to the artifact staging directory
15+
- Publishes the source code as an artifact named 'jpo-utils-services'
16+
17+
2. **Release Pipeline (configured in Azure DevOps)**
18+
- Uses the published artifact from the build pipeline
19+
- Handles Docker image building and deployment
20+
- Configuration is managed through the Azure DevOps web interface
21+
22+
## Pipeline Trigger
23+
24+
The pipeline automatically triggers when:
25+
26+
- Changes are pushed to the `develop` branch
27+
- Changes occur in any of the monitored project directories
28+
29+
## Pipeline Steps
30+
31+
1. **Copy Files**
32+
- Copies project files to the artifact staging directory
33+
- Excludes certain files/directories by default:
34+
- `data` directories
35+
- `docs` directories
36+
- Markdown (`.md`) files
37+
38+
2. **Publish Artifact**
39+
- Creates an artifact named 'jpo-utils-services'
40+
- Makes the source code available for the release pipeline
41+
42+
## Note
43+
44+
The actual Docker build process and deployment steps are configured in the Azure DevOps release pipeline, which is separate from this build pipeline configuration. The release pipeline picks up the artifact produced by this build pipeline and performs the necessary build and deployment steps.

azure-pipelines.yml .azure/azure-pipelines.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
# Starter pipeline
2-
# Start with a minimal pipeline that you can customize to build and deploy your code.
3-
# Add steps that build, run tests, deploy, and more:
4-
# https://aka.ms/yaml
1+
# Azure pipeline used to trigger builds of the JPO UTILS project
2+
# This pipeline is primarily used for CI in the CDOT-CV fork
53

64
trigger:
75
branches:
@@ -18,8 +16,12 @@ pool:
1816
steps:
1917
- task: CopyFiles@2
2018
inputs:
21-
SourceFolder: '.'
22-
Contents: '**'
19+
SourceFolder: '$(Build.SourcesDirectory)'
20+
Contents: |
21+
**
22+
!**/data/**
23+
!**/docs/**
24+
!**/*.md
2325
TargetFolder: '$(Build.ArtifactStagingDirectory)'
2426

2527
# Publish the artifacts directory for consumption in publish pipeline

0 commit comments

Comments
 (0)