Skip to content

Commit

Permalink
Update components pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
anveshmuppeda committed Apr 18, 2024
1 parent 05e4144 commit bea9418
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger:
- main
trigger: none
# - main

pool: kubernetes-self-hosted-agent

Expand Down
42 changes: 42 additions & 0 deletions pipelines/key-component-pipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
################################################################################
# Here's the sample YAML pipeline with added comments to explain each section #
################################################################################
# Define the pipeline
trigger: none

# Select your agent pool, where your agents are hosted.
pool: kubernetes-self-hosted-agent

# Define stages
## Stage 1
stages:
- stage: Build
displayName: 'Build Stage'
## Job 1.1
jobs:
- job: BuildJob
displayName: 'Build Job'
steps:
## Step 1.1
- script: echo "Building the application..."
displayName: 'Build Application'
## Step 1.2
- script: echo "Running tests..."
displayName: 'Run Tests'

## Stage 2
- stage: DeployTest
displayName: 'Deploy & Test Stage'
jobs:
## Job 2.1
- job: DeployJob
displayName: 'Deploy Job'
steps:
- script: echo "Deploying the application..."
displayName: 'Deploy Application'
## Job 2.2
- job: DeployJob
displayName: 'Test Job'
steps:
- script: echo "Testing the application..."
displayName: 'Test Application'
18 changes: 18 additions & 0 deletions pipelines/my-first-azure-devops-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger: none
# - main

pool: kubernetes-self-hosted-agent

steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'

- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
displayName: 'Run a multi-line script'

0 comments on commit bea9418

Please sign in to comment.