From 197569c55d25335e770ce293929e6f2151692815 Mon Sep 17 00:00:00 2001 From: "shamrao shinde, sumedh" Date: Fri, 6 Dec 2024 12:13:42 +0000 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2318be5..fce2b74 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -28,6 +28,7 @@ stages: - script: | echo "Building the first repository..." + pwd ls -lrth displayName: 'list files' @@ -71,8 +72,8 @@ stages: docker images displayName: 'List docker images after removal' - - upload: manifests - artifact: manifests + #- upload: manifests + # artifact: manifests - stage: Deploy displayName: Deploy stage @@ -91,6 +92,8 @@ stages: runOnce: deploy: steps: + - checkout: self # Check out the pipeline repository (optional) + - script: | echo "##vso[task.setvariable variable=shortCommitSha]$(echo $(Build.SourceVersion) | cut -c1-8)" displayName: 'Set Short Commit SHA' @@ -100,10 +103,11 @@ stages: echo "Short Commit SHA: $(shortCommitSha)" displayName: 'Echo short commit SHA' - - task: KubernetesManifest@0 + - task: KubernetesManifest@1 displayName: Deploy to Kubernetes cluster inputs: action: deploy + namespace: olympus manifests: | $(Pipeline.Workspace)/manifests/hermione-fe-deployment.yaml containers: |