Advertisement
cwells126

Untitled

Jul 17th, 2017
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.86 KB | None | 0 0
  1. groups:
  2.   - name: Development
  3.     jobs:
  4.      - Unit Tests
  5.       - Code Quality
  6.       #- Create Development Artifact
  7.       #- Deploy to Development
  8.       #- Security Scan
  9.       #- Bump Quality Hub Version
  10.  
  11.   - name: Production Health
  12.     jobs:
  13.     # - Production Health Check
  14.  
  15.  
  16.  
  17.   - name: Change Request
  18.     jobs:
  19.    #  - Generate Change Request
  20.      
  21.  
  22.  
  23. resource_types:
  24.   - name: slack-notification
  25.     type: docker-image
  26.     source:
  27.       repository: cfcommunity/slack-notification-resource
  28.       tag: latest
  29.  
  30. resources:
  31. .
  32.  
  33.  
  34.   - name: scanSvc-Master
  35.     type: git
  36.     check_every: 45m
  37.     source:
  38.       uri: https://github.homedepot.com/GlobalSourcing/SCAN_SVC.git
  39.       private_key: {{github_private_key}}    
  40.       branch: master
  41.        
  42.      
  43.   - name: scanSvc-Docker
  44.     type: git
  45.     check_every: 45m
  46.     source:
  47.       uri: git@github.homedepot.com:GlobalSourcing/SCAN_SVC.git
  48.       branch: scanSvc-Docker
  49.       private_key: {{github_private_key}}
  50.      
  51.      
  52.   - name: scan-docker-image
  53.     type: docker-image
  54.     source:
  55.       repository: cxw6692/gradle-image2
  56.       username: cxw6692
  57.       password: outkast126
  58.  
  59.      
  60.    
  61. #  - name: resource-deploy-web-app
  62. #    type: cf
  63. #    source:
  64. #      api: https://api.run-np.homedepot.com
  65. #      username: {{cf_username}}
  66. #      password: {{cf_password}}
  67. #      organization: MerchSOLO
  68. #      space: development
  69. #      skip_cert_check: true
  70. #
  71. #  - name: resource-deploy-web-app-acceptance
  72. #    type: cf
  73. #    source:
  74. #      api: https://api.run-np.homedepot.com
  75. #      username: {{cf_username}}
  76. #      password: {{cf_password}}
  77. #      organization: MerchSOLO
  78. #      space: acceptance
  79. #      skip_cert_check: true
  80.  
  81.   # - name: deliver-stories
  82.   #   type: tracker
  83.   #   source:
  84.   #     token: f943ab5a288447c66cb9d64ce6bef04b
  85.   #     project_id: "1861413"
  86.   #     tracker_url: https://www.pivotaltracker.com
  87.  
  88. #  - name: 45m
  89. #    type: time
  90. #    source: {interval: 45m}
  91.  
  92. #  - name: 15m
  93. #    type: time
  94. #    source: {interval: 15m}
  95.  
  96.  
  97.                        
  98.   - name: version
  99.     type: semver
  100.     source:
  101.       initial_version: 1.0.0
  102.       driver: git
  103.       uri: git@github.homedepot.com:GlobalSourcing/SCAN_SVC.git
  104.       branch: scanSvc-Docker
  105.       private_key: {{github_private_key}}
  106.      
  107.  
  108. #  - name: dev-version
  109. #    type: semver
  110. #    source:
  111. #      initial_version: 1.0.0
  112. #      driver: git
  113. #      uri: git@github.homedepot.com:MerchandisingIT/SKUClone.git
  114. #      branch: dev-version
  115. #      file: version
  116. #      private_key: {{github_private_key}}
  117.  
  118.   - name: qh-version
  119.     type: semver
  120.     source:
  121.       initial_version: 1.0.0
  122.       driver: git
  123.       uri: git@github.homedepot.com:GlobalSourcing/SCAN_SVC.git
  124.       branch: scanSvc-Docker
  125.       file: version
  126.       private_key: {{github_private_key}}
  127.  
  128. #  - name: slack-alert-prod
  129. #    type: slack-notification
  130. #    source:
  131. #      url: https://hooks.slack.com/services/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
  132.  
  133. jobs:
  134.  
  135. ###########           Development            ###########################
  136.  
  137.   - name: Bump Quality Hub Version
  138.     build_logs_to_retain: 2
  139.     serial: true
  140.     plan:
  141.       - aggregate:
  142.         - get: scanSvc-Docker
  143.           trigger: true
  144.         - get: docker-version
  145.           resource: qh-version
  146.           params: { bump: patch }
  147.       - put: qh-version
  148.         params: {file: docker-version/version}
  149.        
  150.  
  151.        
  152.   - name: Unit Tests
  153.     build_logs_to_retain: 5
  154.     serial: true
  155.     plan:
  156.       - aggregate:
  157.         - get: scan-docker-image
  158.         - get: version
  159.           resource: qh-version
  160.         - get: scanSvc-Docker
  161.           trigger: true
  162.           passed: [Bump Quality Hub Version]
  163.       - task: unit
  164.         file: scanSvc-Docker/ci/unit.yml
  165.         image: scan-docker-image
  166.  
  167.  
  168.  
  169. ###########          END Development            ###########################
  170.  
  171. ###########           END Production Health Checks            ###########################
  172.  
  173.  
  174.  
  175. ###########           Change Requests            ###########################
  176.   - name: Generate Change Request
  177.     build_logs_to_retain: 5
  178.     serial: true
  179.     plan:
  180.       - aggregate:
  181.         - get: scan-docker-image
  182.         - get: version
  183.         - get: scanSvc-Master
  184.           trigger: false
  185.       - task: create-change
  186.         file: scanSvc-Master/ci/tasks/change/create.yml
  187.         image: scan-docker-image
  188.  
  189. ###########           END Change Requests            ###########################
  190.  
  191.   - name: Code Quality
  192.     max_in_flight: 1
  193.     plan:
  194.       - get: scanSvc-Docker
  195.       - task: Sonar
  196.         file: ci/concourse/sonar_maven.yml
  197.         input_mapping: {code-repo: scanSvc-Docker}
  198. params:
  199.  ENVIRONMENT: st
  200.  GITHUB_PRIVATE_KEY: {{github_private_key}}
  201.  GITHUB_TOKEN: {{github-token}}
  202.  SLACK_WEBHOOK_URL: {{slack-webhook-url}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement