From 3b2c78291368949a898a6479e417ce25f10b2ec9 Mon Sep 17 00:00:00 2001 From: venkatit67b Date: Wed, 14 Jul 2021 11:28:56 +0530 Subject: [PATCH 01/32] commited from b1 branch --- b1 | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 b1 diff --git a/b1 b/b1 new file mode 100644 index 0000000..e69de29 From b2ae7507d71b09a2d4e7af4b3a62b4c1a74c2391 Mon Sep 17 00:00:00 2001 From: venkat123_34 Date: Fri, 21 Jan 2022 07:43:06 +0530 Subject: [PATCH 02/32] modified the code --- 1 | 1 + b1 | 1 + 2 files changed, 2 insertions(+) create mode 100644 1 diff --git a/1 b/1 new file mode 100644 index 0000000..4551da5 --- /dev/null +++ b/1 @@ -0,0 +1 @@ +thsi isddiwdasfsdfg diff --git a/b1 b/b1 index e69de29..4551da5 100644 --- a/b1 +++ b/b1 @@ -0,0 +1 @@ +thsi isddiwdasfsdfg From 3c6cd6454caaf5fc6fc833454aa3f45584ce8b7d Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Fri, 21 Jan 2022 07:44:23 +0530 Subject: [PATCH 03/32] Update b1 --- b1 | 1 + 1 file changed, 1 insertion(+) diff --git a/b1 b/b1 index 4551da5..ec93110 100644 --- a/b1 +++ b/b1 @@ -1 +1,2 @@ thsi isddiwdasfsdfg +this is second lineasdafdfdfsdf From 72cc8d323fbe31c28453637350bf99753adc2239 Mon Sep 17 00:00:00 2001 From: venkat123_34 Date: Fri, 21 Jan 2022 07:45:04 +0530 Subject: [PATCH 04/32] sdfsdfdsg --- b1 | 1 + 1 file changed, 1 insertion(+) diff --git a/b1 b/b1 index 4551da5..3e50397 100644 --- a/b1 +++ b/b1 @@ -1 +1,2 @@ thsi isddiwdasfsdfg +this is second line From 6d88f7b2fe8310547ca08340e2bfe7d8e5433136 Mon Sep 17 00:00:00 2001 From: venkat Date: Fri, 4 Feb 2022 07:27:04 +0530 Subject: [PATCH 05/32] cide changes done --- HelloWorld.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HelloWorld.java b/HelloWorld.java index 63eb2cb..417f53b 100644 --- a/HelloWorld.java +++ b/HelloWorld.java @@ -35,5 +35,6 @@ public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World"); + System.out.println("hi"); } -} \ No newline at end of file +} From e25ebb1b01bd3adb662b71ee1a5314aa9ccece12 Mon Sep 17 00:00:00 2001 From: venkat Date: Fri, 4 Feb 2022 07:30:01 +0530 Subject: [PATCH 06/32] test the code --- file1.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 file1.txt diff --git a/file1.txt b/file1.txt new file mode 100644 index 0000000..78696eb --- /dev/null +++ b/file1.txt @@ -0,0 +1 @@ +adfdsgdfg From 3af1a2d44fc061a31f7314e374f473ef2f6f6039 Mon Sep 17 00:00:00 2001 From: venkat Date: Fri, 4 Feb 2022 07:32:46 +0530 Subject: [PATCH 07/32] wdfsddf --- file2.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 file2.txt diff --git a/file2.txt b/file2.txt new file mode 100644 index 0000000..ba836d2 --- /dev/null +++ b/file2.txt @@ -0,0 +1 @@ +sdfdsfgdfg From eccbbf935a5201b214f39edfdfadb66a033fe0a3 Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Wed, 11 May 2022 19:40:58 +0530 Subject: [PATCH 08/32] Update HelloWorld.java --- HelloWorld.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HelloWorld.java b/HelloWorld.java index 417f53b..3d3d9d7 100644 --- a/HelloWorld.java +++ b/HelloWorld.java @@ -34,7 +34,7 @@ */ public class HelloWorld { public static void main(String[] args) { - System.out.println("Hello, World"); + System.out.println("Hello,ddddddd World"); System.out.println("hi"); } } From fd7746bb1a372c7625bce31468fd33ecac3e1391 Mon Sep 17 00:00:00 2001 From: venkat Date: Sat, 6 Aug 2022 09:58:14 +0530 Subject: [PATCH 09/32] this is test message --- b1 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/b1 b/b1 index b6e8077..8620e7b 100644 --- a/b1 +++ b/b1 @@ -1,3 +1,11 @@ +SDFSDFSDFSDFSDFSDFDFS FROM GITKRAKEN +THIS IS FROM GITKRAKEN +THIS IS FROM vs CODE +VS CODE CHANGES HAVE DONE +SDFSDFSDFSDFSDFSDFDFS +SDFFFSDFDFDFGDF +SDDFGDFGFFGDF +this file is modified in test thsi isddiwdasfsdfg this is second line this is second lineasdafdfdfsdf From 9f1f4a656dc4b9bfbc8de97eca13fe527fcee2f3 Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Sat, 8 Oct 2022 06:37:28 +0530 Subject: [PATCH 10/32] Update file1.txt --- file1.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/file1.txt b/file1.txt index 78696eb..dc4c287 100644 --- a/file1.txt +++ b/file1.txt @@ -1 +1,2 @@ adfdsgdfg +modified the file to test POLL SCM From 935fddacceee93ebf084be9e0a0eb40369f2ddd4 Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Mon, 13 Feb 2023 06:59:14 +0530 Subject: [PATCH 11/32] Update file1.txt --- file1.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/file1.txt b/file1.txt index dc4c287..9163d9e 100644 --- a/file1.txt +++ b/file1.txt @@ -1,2 +1,3 @@ adfdsgdfg modified the file to test POLL SCM +this code is modified for testing the pollscm From 57df6a92e6be03c297ce27c916238161df6a45e1 Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Sat, 2 Sep 2023 12:08:18 +0530 Subject: [PATCH 12/32] Update HelloWorld.java --- HelloWorld.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/HelloWorld.java b/HelloWorld.java index 3d3d9d7..40eca6f 100644 --- a/HelloWorld.java +++ b/HelloWorld.java @@ -33,8 +33,11 @@ * The HelloWorldApp class implements an application that simply prints "Hello World" to standard output. */ public class HelloWorld { + //int j=10; + //int i=10; public static void main(String[] args) { System.out.println("Hello,ddddddd World"); + //System.out.println("hi"); System.out.println("hi"); } } From cc1514913c6805d04b6f24ade2f7faa2986c1383 Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Fri, 8 Nov 2024 15:31:47 +0530 Subject: [PATCH 13/32] Create rds.yml --- rds.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 rds.yml diff --git a/rds.yml b/rds.yml new file mode 100644 index 0000000..f41ca9d --- /dev/null +++ b/rds.yml @@ -0,0 +1,18 @@ +Resources: + MyDB0: + Type: 'AWS::RDS::DBInstance' + Properties: + DBName: 'mydb' + DBInstanceClass: 'db.t3.micro' + Engine: 'mysql' + MasterUsername: 'master' + MasterUserPassword: 'password' + MyDB1: + Type: 'AWS::RDS::DBInstance' + Properties: + DBName: 'mydb' + DBInstanceClass: 'db.t3.micro' + Engine: 'mysql' + MasterUsername: 'master' + MasterUserPassword: 'password' + StorageEncrypted: false From d7fe584c53138b94e6226615a3d4205a41156e6b Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Sat, 10 May 2025 10:27:36 +0530 Subject: [PATCH 14/32] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..27a798a --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,19 @@ +# 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: +- master + +pool: + vmImage: ubuntu-latest + +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' From 3eb28d07a504ccdbbefa4397ae9ec306a7416f2f Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Sat, 10 May 2025 23:28:12 +0530 Subject: [PATCH 15/32] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-1.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 azure-pipelines-1.yml diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml new file mode 100644 index 0000000..364f310 --- /dev/null +++ b/azure-pipelines-1.yml @@ -0,0 +1,19 @@ +# 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: +- master + +pool: + DevOps: Linux + +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' From 41a59f159464faaf3d889825cdc540b3db390c4f Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Sat, 10 May 2025 23:38:14 +0530 Subject: [PATCH 16/32] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 27a798a..364f310 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,7 +7,7 @@ trigger: - master pool: - vmImage: ubuntu-latest + DevOps: Linux steps: - script: echo Hello, world! From 4b0b308ba4670714428fbb778625ce0ae8a4b89c Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Sat, 10 May 2025 23:46:48 +0530 Subject: [PATCH 17/32] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-2.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 azure-pipelines-2.yml diff --git a/azure-pipelines-2.yml b/azure-pipelines-2.yml new file mode 100644 index 0000000..c80ab3b --- /dev/null +++ b/azure-pipelines-2.yml @@ -0,0 +1,20 @@ +# 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: +- master + +pool: + name: Hello + - Agent.Name -equals linuxvm + +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' From f0e87e7bbf3ddfc0e7cdb5ab38149b54fbca6cd9 Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Sat, 10 May 2025 23:48:18 +0530 Subject: [PATCH 18/32] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-3.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 azure-pipelines-3.yml diff --git a/azure-pipelines-3.yml b/azure-pipelines-3.yml new file mode 100644 index 0000000..68cc69a --- /dev/null +++ b/azure-pipelines-3.yml @@ -0,0 +1,19 @@ +# 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: +- master + +pool: + Hello: linuxvm + +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' From 7d23cd23ce0af2ce5ecbf906117aa4dff06f57cf Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Sat, 10 May 2025 23:55:50 +0530 Subject: [PATCH 19/32] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-4.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 azure-pipelines-4.yml diff --git a/azure-pipelines-4.yml b/azure-pipelines-4.yml new file mode 100644 index 0000000..162302b --- /dev/null +++ b/azure-pipelines-4.yml @@ -0,0 +1,21 @@ +# 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: +- master + +pool: + Name: Hello + demands: + - Agent.Name -equals linuxvm + +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' From 763faa2c4ec0c4d22c0b121fd0047be4aa46a5c2 Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Sat, 10 May 2025 23:59:24 +0530 Subject: [PATCH 20/32] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-5.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 azure-pipelines-5.yml diff --git a/azure-pipelines-5.yml b/azure-pipelines-5.yml new file mode 100644 index 0000000..c2f6b5b --- /dev/null +++ b/azure-pipelines-5.yml @@ -0,0 +1,19 @@ +# 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: +- master + +pool: + name: Hello + +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' From e300a0d634883818080c5146f681c68daaa2084a Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Sun, 11 May 2025 00:19:22 +0530 Subject: [PATCH 21/32] Update azure-pipelines-5.yml for Azure Pipelines --- azure-pipelines-5.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/azure-pipelines-5.yml b/azure-pipelines-5.yml index c2f6b5b..11c644b 100644 --- a/azure-pipelines-5.yml +++ b/azure-pipelines-5.yml @@ -3,6 +3,10 @@ # Add steps that build, run tests, deploy, and more: # https://aka.ms/yaml +variables: +- name: one + value: InitialValue + trigger: - master @@ -10,9 +14,15 @@ pool: name: Hello steps: +- script: | + echo hello world + echo ${{ variables.one }} + echo $(one) + displayName: 'accessing the varialbes' + - 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 From 6f12dd0527e6460fc4697c6ded83392ab727d23f Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Sun, 11 May 2025 00:30:04 +0530 Subject: [PATCH 22/32] Update azure-pipelines-5.yml for Azure Pipelines --- azure-pipelines-5.yml | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/azure-pipelines-5.yml b/azure-pipelines-5.yml index 11c644b..af506bb 100644 --- a/azure-pipelines-5.yml +++ b/azure-pipelines-5.yml @@ -4,26 +4,25 @@ # https://aka.ms/yaml variables: -- name: one - value: InitialValue + global_variable: value # this is available to all jobs -trigger: -- master +jobs: +- job: job1 + pool: + name: 'Hello' + variables: + job_variable1: value1 # this is only available in job1 + steps: + - bash: echo $(global_variable) + - bash: echo $(job_variable1) + - bash: echo $JOB_VARIABLE1 # variables are available in the script environment too -pool: - name: Hello - -steps: -- script: | - echo hello world - echo ${{ variables.one }} - echo $(one) - displayName: 'accessing the varialbes' - -- 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' +- job: job2 + pool: + name: 'Hello' + variables: + job_variable2: value2 # this is only available in job2 + steps: + - bash: echo $(global_variable) + - bash: echo $(job_variable2) + - bash: echo $GLOBAL_VARIABLE \ No newline at end of file From c1dd23073da54ce181009db289fd3c85a9c50250 Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Sun, 11 May 2025 00:31:01 +0530 Subject: [PATCH 23/32] Update azure-pipelines-5.yml for Azure Pipelines --- azure-pipelines-5.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/azure-pipelines-5.yml b/azure-pipelines-5.yml index af506bb..4b67b94 100644 --- a/azure-pipelines-5.yml +++ b/azure-pipelines-5.yml @@ -25,4 +25,6 @@ jobs: steps: - bash: echo $(global_variable) - bash: echo $(job_variable2) - - bash: echo $GLOBAL_VARIABLE \ No newline at end of file + - bash: echo $GLOBAL_VARIABLE + - bash: echo $(Agent.WorkFolder) + - bash: echo $(Agent.OSArchitecture) \ No newline at end of file From 6513788e4905b14ab27e224b7c491154d96b62a5 Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Sun, 11 May 2025 11:20:36 +0530 Subject: [PATCH 24/32] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 364f310..481fe5d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,13 +7,21 @@ trigger: - master pool: - DevOps: Linux + name: DevOps + +variables: +- name: var1 + value: 10 +- group: vargroup1 steps: - script: echo Hello, world! + echo the value of var is $(var1) + echo the value of vargroup is $(vargroup1) displayName: 'Run a one-line script' - + workingDirectory: - script: | echo Add other tasks to build, test, and deploy your project. echo See https://aka.ms/yaml displayName: 'Run a multi-line script' + From 6c5ea961cb16840cfb36a6d629663c8d5e09396e Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Sun, 11 May 2025 11:30:35 +0530 Subject: [PATCH 25/32] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 481fe5d..4cbd6da 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -15,9 +15,9 @@ variables: - group: vargroup1 steps: -- script: echo Hello, world! - echo the value of var is $(var1) - echo the value of vargroup is $(vargroup1) +- script: | + echo Hello, world! + echo the value of var is $(var1) displayName: 'Run a one-line script' workingDirectory: - script: | From ecdd82fd8f933144774f9c00ef35f39900d06e8c Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Sun, 11 May 2025 11:41:57 +0530 Subject: [PATCH 26/32] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4cbd6da..6bc2355 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,14 +14,23 @@ variables: value: 10 - group: vargroup1 -steps: -- script: | - echo Hello, world! - echo the value of var is $(var1) - displayName: 'Run a one-line script' - workingDirectory: -- script: | - echo Add other tasks to build, test, and deploy your project. - echo See https://aka.ms/yaml - displayName: 'Run a multi-line script' - +stages: +- stage: A + displayName: "Stage-A Build and Test" + jobs: + - job: A1 + displayName: "Job-A1 build" + steps: + - script: echo "Building the application in A1" + displayName: "Build Step" + - job: A2 + displayName: "Job A2 Test" + steps: + - script: echo "Building the application in A2" + displayName: "Test Step" + +- stage: B + displayName: "Stage-B Deploy" + jobs: + - job: B1 + From d82a1b6e500b7a2e5a9249fe279510b5a8932b26 Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Sun, 11 May 2025 11:42:47 +0530 Subject: [PATCH 27/32] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6bc2355..c3a8e99 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -33,4 +33,9 @@ stages: displayName: "Stage-B Deploy" jobs: - job: B1 - + displayName: "Stage B1 Deploy" + steps: + - script: echo "Building the application B1" + + + From 3d3724b5279b7ea3efb2cae58936b90afcb44bde Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Sun, 11 May 2025 12:30:09 +0530 Subject: [PATCH 28/32] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c3a8e99..f8f51dd 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,13 +10,17 @@ pool: name: DevOps variables: -- name: var1 - value: 10 -- group: vargroup1 + var1: 10 + staticvar: 'myvalue' + compilevar: ${{ variables.staticvar }} + isMain: $[eq(variables['Build.SourceBranch'], 'refs/heads/main')] stages: - stage: A displayName: "Stage-A Build and Test" + variables: + - name: var2 + value: 100 jobs: - job: A1 displayName: "Job-A1 build" @@ -25,6 +29,12 @@ stages: displayName: "Build Step" - job: A2 displayName: "Job A2 Test" + dependsOn: A1 + condition: succeeded() + timeoutInMinutes: 10 + cancelTimeoutInMinutes: 2 + workspace: + clean: all steps: - script: echo "Building the application in A2" displayName: "Test Step" From 191fec1ecd3930902c002caf324a03a4ddbb0add Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Sun, 11 May 2025 12:32:59 +0530 Subject: [PATCH 29/32] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f8f51dd..6fc53e3 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -25,7 +25,11 @@ stages: - job: A1 displayName: "Job-A1 build" steps: - - script: echo "Building the application in A1" + - script: | + echo "Building the application in A1" + echo ${{ variables.staticvar }} + echo $(compilevar) + echo $(isMain) displayName: "Build Step" - job: A2 displayName: "Job A2 Test" From 4a94415def77d91687854d6183165e189e5b869d Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Sun, 11 May 2025 12:48:29 +0530 Subject: [PATCH 30/32] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6fc53e3..f7be4c4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -42,6 +42,20 @@ stages: steps: - script: echo "Building the application in A2" displayName: "Test Step" + + - job: A3 + steps: + - bash: echo "##vso[task.setvariable variable=shouldrun;isOutput=true]true" + # or on Windows: + # - script: echo ##vso[task.setvariable variable=shouldrun;isOutput=true]true + name: printvar + displayName: "defining the varialbe" + + - job: A4 + condition: and(succeeded(), eq(dependencies.A.outputs['printvar.shouldrun'], 'true')) + dependsOn: A3 + steps: + - script: echo hello from A4 - stage: B displayName: "Stage-B Deploy" @@ -53,3 +67,4 @@ stages: + From 22f588f72ff9dbba1d5e54ef8510e7e2b7ccafd3 Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Sun, 11 May 2025 15:46:27 +0530 Subject: [PATCH 31/32] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f7be4c4..091008a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,6 +9,11 @@ trigger: pool: name: DevOps +parameters: + - name: environment + type: string + default: 'production' + variables: var1: 10 staticvar: 'myvalue' @@ -23,13 +28,14 @@ stages: value: 100 jobs: - job: A1 - displayName: "Job-A1 build" + displayName: "Job-A1 build deploy to ${{ parameters.environment }}" steps: - script: | echo "Building the application in A1" echo ${{ variables.staticvar }} echo $(compilevar) echo $(isMain) + echo $(Pipeline.Workspace) displayName: "Build Step" - job: A2 displayName: "Job A2 Test" From f7c242d1ebb21a004a3f5b249b3e015396abc585 Mon Sep 17 00:00:00 2001 From: venkatn087 <52975559+venkatn087@users.noreply.github.com> Date: Sun, 11 May 2025 15:51:54 +0530 Subject: [PATCH 32/32] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 091008a..88fc315 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -12,8 +12,13 @@ pool: parameters: - name: environment type: string - default: 'production' - + default: production + - name: myMultiString + type: string + default: default + values: + - default + - ubuntu variables: var1: 10 staticvar: 'myvalue'