-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05e4144
commit bea9418
Showing
3 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |