Skip to content

Commit

Permalink
Update all variable display names
Browse files Browse the repository at this point in the history
  • Loading branch information
anveshmuppeda committed Apr 20, 2024
1 parent 6d0fc17 commit 584b20f
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pipelines/variables/01-pipeline-level-variable.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Pipeline Variables
# Pipeline level variables

trigger: none
# - main
Expand All @@ -7,7 +7,7 @@ pool: kubernetes-self-hosted-agent

# Define a pipeline-level variable
variables:
pipelineVariable: "Hello from pipeline variable"
pipelineVariable: "Hello from pipeline level variable"

# Define stages and jobs
stages:
Expand All @@ -20,4 +20,5 @@ stages:
jobs:
- job: DeployJob
steps:
- script: echo Deploy Stage $(pipelineVariable)
- script: echo $(pipelineVariable)
displayName: "Pipeline level"
1 change: 1 addition & 0 deletions pipelines/variables/02-pre-defined-variable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ stages:
displayName: "Build Job"
steps:
- script: echo "Building on branch $(Build.SourceBranch)"
displayName: "Pre Defined"
1 change: 1 addition & 0 deletions pipelines/variables/04-variable-group.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ stages:
displayName: "Build Job"
steps:
- script: echo $(groupVariable)
displayName: "Variable Group"
1 change: 1 addition & 0 deletions pipelines/variables/05-secret-secure-variable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ stages:
displayName: "Build Job"
steps:
- script: echo $(secretVariable)
displayName: "Secret Value"
1 change: 1 addition & 0 deletions pipelines/variables/06-environment-variable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ stages:
displayName: "Build Job"
steps:
- script: echo "The current working directory is ${{ env.BUILD_SOURCESDIRECTORY }}"
displayName: "Env variable"
1 change: 1 addition & 0 deletions pipelines/variables/07-conditional-variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ stages:
steps:
- script: echo "This step will only run if myVariable is set to true"
condition: eq(variables['myVariable'], 'true')
displayName: "Conditional variable"
1 change: 1 addition & 0 deletions pipelines/variables/08-variable-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ stages:
displayName: "Build Job"
steps:
- script: echo $(templateVariable)
displayName: "Variable template"

0 comments on commit 584b20f

Please sign in to comment.