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/HelloWorld.java b/HelloWorld.java index 63eb2cb..40eca6f 100644 --- a/HelloWorld.java +++ b/HelloWorld.java @@ -33,7 +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, World"); + System.out.println("Hello,ddddddd World"); + //System.out.println("hi"); + System.out.println("hi"); } -} \ No newline at end of file +} 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' 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' 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' 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' diff --git a/azure-pipelines-5.yml b/azure-pipelines-5.yml new file mode 100644 index 0000000..4b67b94 --- /dev/null +++ b/azure-pipelines-5.yml @@ -0,0 +1,30 @@ +# 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 + +variables: + global_variable: value # this is available to all jobs + +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 + +- 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 + - bash: echo $(Agent.WorkFolder) + - bash: echo $(Agent.OSArchitecture) \ No newline at end of file diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..88fc315 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,81 @@ +# 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: DevOps + +parameters: + - name: environment + type: string + default: production + - name: myMultiString + type: string + default: default + values: + - default + - ubuntu +variables: + 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 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" + dependsOn: A1 + condition: succeeded() + timeoutInMinutes: 10 + cancelTimeoutInMinutes: 2 + workspace: + clean: all + 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" + jobs: + - job: B1 + displayName: "Stage B1 Deploy" + steps: + - script: echo "Building the application B1" + + + + diff --git a/b1 b/b1 new file mode 100644 index 0000000..8620e7b --- /dev/null +++ b/b1 @@ -0,0 +1,12 @@ +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 +3c6cd6454caaf5fc6fc833454aa3f45584ce8b7d diff --git a/file1.txt b/file1.txt new file mode 100644 index 0000000..9163d9e --- /dev/null +++ b/file1.txt @@ -0,0 +1,3 @@ +adfdsgdfg +modified the file to test POLL SCM +this code is modified for testing the pollscm diff --git a/file2.txt b/file2.txt new file mode 100644 index 0000000..ba836d2 --- /dev/null +++ b/file2.txt @@ -0,0 +1 @@ +sdfdsfgdfg 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