azure-pipelines.yml [67:116]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - bash: |
        # Fail if any of these files have warnings
        find . -path ./gopath -prune -o -path ./get_helm.sh -prune -o -type f \( -name "*.sh" -o -name "*.bash" -o -name "*.ksh" \) -print |
          while IFS="" read -r file
          do
            shellcheck "$file"
          done
      displayName: 'Run Shell Linting (ShellCheck)'
    - script: |
        terraform fmt -check=true -write=false -list=true > /dev/null
        if [ $? -eq 0 ]
        then
          echo "Bedrock_Linting: All terraform files are valid."
        else
          echo "Bedrock_Linting: Terraform files invalid format, submit new commit with changes (run terraform fmt)."
          exit 1
        fi
        gofmt -d ../bedrock/test/ | grep "^@@.*@@" > /dev/null
        if [ "$?" -eq "1" ]; then
          echo "Bedrock_Linting: All golang files are valid."
        else
          go fmt ../bedrock/test/
          echo "Bedrock_Linting: Golang files invalid format, submit new commit with changes (run gofmt in /test/ directory)."
          exit 1
        fi
      workingDirectory: '$(modulePath)/cluster'
      displayName: 'Terraform lint check'
    - bash: |
        AZ_SIMPLE_TEST=$(Whitelist_Bedrock.AZ_SIMPLE_TEST)
        AZ_COMMON_MC_TEST=$(Whitelist_Bedrock.AZ_COMMON_MC_TEST)
        ALL_IT_TESTS=$(Whitelist_Bedrock.ALL_IT_TESTS)
        AZ_COMMON_KV_TEST=$(Whitelist_Bedrock.AZ_COMMON_KV_TEST)
        mkdir -p $(Pipeline.Workspace)/variables
        echo "Whitelisting Integration Test Values 1. ALL_TESTS: $ALL_IT_TESTS 2. AZ_SIMPLE: $AZ_SIMPLE_TEST 3. AZ_COMMON: $AZ_COMMON_KV_TEST 4. AZ_MC: $AZ_COMMON_MC_TEST"
        echo "$ALL_IT_TESTS" > $(Pipeline.Workspace)/variables/ALL_IT_TESTS
        echo "$AZ_SIMPLE_TEST" > $(Pipeline.Workspace)/variables/AZ_SIMPLE_TEST
        echo "$AZ_COMMON_KV_TEST" > $(Pipeline.Workspace)/variables/AZ_COMMON_KV_TEST
        echo "$AZ_COMMON_MC_TEST" > $(Pipeline.Workspace)/variables/AZ_COMMON_MC_TEST
      displayName: Exporting Integration Test Trigger Variables to Pipeline Workspace
    - publish: $(Pipeline.Workspace)/variables
      artifact: variables
  - job: Bedrock_Test_SIMPLE
    displayName: Bedrock_Build_Azure_Simple
    dependsOn: Bedrock_Init_Validate
    condition: and(succeeded(), or(eq(dependencies.Bedrock_Init_Validate.outputs['Whitelist_Bedrock.AZ_SIMPLE_TEST'], 'true'), eq(dependencies.Bedrock_Init_Validate.outputs['Whitelist_Bedrock.ALL_IT_TESTS'], 'true')))
    timeoutInMinutes: 60
    pool:
      vmImage: 'Ubuntu-16.04'
      timeoutInMinutes: 60
    steps:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



pipelines/bedrock-scheduled.yml [33:82]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - bash: |
        # Fail if any of these files have warnings
        find . -path ./gopath -prune -o -path ./get_helm.sh -prune -o -type f \( -name "*.sh" -o -name "*.bash" -o -name "*.ksh" \) -print |
          while IFS="" read -r file
          do
            shellcheck "$file"
          done
      displayName: 'Run Shell Linting (ShellCheck)'
    - script: |
        terraform fmt -check=true -write=false -list=true > /dev/null
        if [ $? -eq 0 ]
        then
          echo "Bedrock_Linting: All terraform files are valid."
        else
          echo "Bedrock_Linting: Terraform files invalid format, submit new commit with changes (run terraform fmt)."
          exit 1
        fi
        gofmt -d ../bedrock/test/ | grep "^@@.*@@" > /dev/null
        if [ "$?" -eq "1" ]; then
          echo "Bedrock_Linting: All golang files are valid."
        else
          go fmt ../bedrock/test/
          echo "Bedrock_Linting: Golang files invalid format, submit new commit with changes (run gofmt in /test/ directory)."
          exit 1
        fi
      workingDirectory: '$(modulePath)/cluster'
      displayName: 'Terraform lint check'
    - bash: |
        AZ_SIMPLE_TEST=$(Whitelist_Bedrock.AZ_SIMPLE_TEST)
        AZ_COMMON_MC_TEST=$(Whitelist_Bedrock.AZ_COMMON_MC_TEST)
        ALL_IT_TESTS=$(Whitelist_Bedrock.ALL_IT_TESTS)
        AZ_COMMON_KV_TEST=$(Whitelist_Bedrock.AZ_COMMON_KV_TEST)
        mkdir -p $(Pipeline.Workspace)/variables
        echo "Whitelisting Integration Test Values 1. ALL_TESTS: $ALL_IT_TESTS 2. AZ_SIMPLE: $AZ_SIMPLE_TEST 3. AZ_COMMON: $AZ_COMMON_KV_TEST 4. AZ_MC: $AZ_COMMON_MC_TEST"
        echo "$ALL_IT_TESTS" > $(Pipeline.Workspace)/variables/ALL_IT_TESTS
        echo "$AZ_SIMPLE_TEST" > $(Pipeline.Workspace)/variables/AZ_SIMPLE_TEST
        echo "$AZ_COMMON_KV_TEST" > $(Pipeline.Workspace)/variables/AZ_COMMON_KV_TEST
        echo "$AZ_COMMON_MC_TEST" > $(Pipeline.Workspace)/variables/AZ_COMMON_MC_TEST
      displayName: Exporting Integration Test Trigger Variables to Pipeline Workspace
    - publish: $(Pipeline.Workspace)/variables
      artifact: variables
  - job: Bedrock_Test_SIMPLE
    displayName: Bedrock_Build_Azure_Simple
    dependsOn: Bedrock_Init_Validate
    condition: and(succeeded(), or(eq(dependencies.Bedrock_Init_Validate.outputs['Whitelist_Bedrock.AZ_SIMPLE_TEST'], 'true'), eq(dependencies.Bedrock_Init_Validate.outputs['Whitelist_Bedrock.ALL_IT_TESTS'], 'true')))
    timeoutInMinutes: 60
    pool:
      vmImage: 'Ubuntu-16.04'
      timeoutInMinutes: 60
    steps:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



