Skip to content

Commit

Permalink
Fixed the syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhadapaithankar committed Dec 10, 2024
1 parent 0e3b1ea commit 251be5b
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ variables:

stages:
- stage: Set_Tag_Stage
displayName: "Set Dynamic TAG Variables"
jobs:
- job: Set_Tag_Variables
displayName: "Set Dynamic TAG Variables"
displayName: "Set TAG Variables"
pool:
name: 1es-aro-ci-pool
steps:
- checkout: self

# Script to dynamically set PR_TAG, MASTER_TAG, and TAG

- script: |
echo "Setting dynamic variables..."
if [ -n "$(System.PullRequest.PullRequestId)" ] && [ -n "$(System.PullRequest.SourceCommitId)" ]; then
Expand All @@ -65,32 +65,27 @@ stages:
echo "##vso[task.setvariable variable=TAG;isOutput=true]default-tag"
fi
name: SetTagVars
displayName: "Set TAG Dynamically"
# Debug output to verify TAG
- script: |
echo "PR_TAG: $(PR_TAG)"
echo "MASTER_TAG: $(MASTER_TAG)"
echo "TAG: $(TAG)"
displayName: "Debug TAG Variables"
displayName: "Set PR_TAG, MASTER_TAG, and TAG"
- stage: Containerized_CI
displayName: "Containerized CI"
dependsOn: Set_Tag_Stage
variables:
TAG: $[ stageDependencies.Set_Tag_Stage.Set_Tag_Variables.outputs['SetTagVars.TAG'] ]
jobs:
- job: Build_Test_And_Push_Az_ARO_Extension
displayName: "Build and Push Az ARO Extension"
dependsOn: Set_Tag_Variables
pool:
name: 1es-aro-ci-pool
variables:
TAG: $[ dependencies.Set_Tag_Variables.outputs['SetTagVars.TAG'] ]
steps:
- checkout: self

# Debugging step to confirm TAG
- script: |
echo "Using TAG: $(TAG)"
displayName: "Verify TAG"
echo "PR_TAG: $(PR_TAG)"
echo "MASTER_TAG: $(MASTER_TAG)"
echo "TAG: $(TAG)"
displayName: "Debug TAG Variables"
# Build and Test Az ARO Extension
- script: |
Expand All @@ -107,6 +102,7 @@ stages:
tag: $(TAG)
pushLatest: true


- job: Build_And_Test_RP_And_Portal
pool:
name: 1es-aro-ci-pool
Expand Down

0 comments on commit 251be5b

Please sign in to comment.