Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- groups:
- - name: Development
- jobs:
- - Unit Tests
- - Code Quality
- #- Create Development Artifact
- #- Deploy to Development
- #- Security Scan
- #- Bump Quality Hub Version
- - name: Production Health
- jobs:
- # - Production Health Check
- - name: Change Request
- jobs:
- # - Generate Change Request
- resource_types:
- - name: slack-notification
- type: docker-image
- source:
- repository: cfcommunity/slack-notification-resource
- tag: latest
- resources:
- .
- - name: scanSvc-Master
- type: git
- check_every: 45m
- source:
- uri: https://github.homedepot.com/GlobalSourcing/SCAN_SVC.git
- private_key: {{github_private_key}}
- branch: master
- - name: scanSvc-Docker
- type: git
- check_every: 45m
- source:
- uri: git@github.homedepot.com:GlobalSourcing/SCAN_SVC.git
- branch: scanSvc-Docker
- private_key: {{github_private_key}}
- - name: scan-docker-image
- type: docker-image
- source:
- repository: cxw6692/gradle-image2
- username: cxw6692
- password: outkast126
- # - name: resource-deploy-web-app
- # type: cf
- # source:
- # api: https://api.run-np.homedepot.com
- # username: {{cf_username}}
- # password: {{cf_password}}
- # organization: MerchSOLO
- # space: development
- # skip_cert_check: true
- #
- # - name: resource-deploy-web-app-acceptance
- # type: cf
- # source:
- # api: https://api.run-np.homedepot.com
- # username: {{cf_username}}
- # password: {{cf_password}}
- # organization: MerchSOLO
- # space: acceptance
- # skip_cert_check: true
- # - name: deliver-stories
- # type: tracker
- # source:
- # token: f943ab5a288447c66cb9d64ce6bef04b
- # project_id: "1861413"
- # tracker_url: https://www.pivotaltracker.com
- # - name: 45m
- # type: time
- # source: {interval: 45m}
- # - name: 15m
- # type: time
- # source: {interval: 15m}
- - name: version
- type: semver
- source:
- initial_version: 1.0.0
- driver: git
- uri: git@github.homedepot.com:GlobalSourcing/SCAN_SVC.git
- branch: scanSvc-Docker
- private_key: {{github_private_key}}
- # - name: dev-version
- # type: semver
- # source:
- # initial_version: 1.0.0
- # driver: git
- # uri: git@github.homedepot.com:MerchandisingIT/SKUClone.git
- # branch: dev-version
- # file: version
- # private_key: {{github_private_key}}
- - name: qh-version
- type: semver
- source:
- initial_version: 1.0.0
- driver: git
- uri: git@github.homedepot.com:GlobalSourcing/SCAN_SVC.git
- branch: scanSvc-Docker
- file: version
- private_key: {{github_private_key}}
- # - name: slack-alert-prod
- # type: slack-notification
- # source:
- # url: https://hooks.slack.com/services/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
- jobs:
- ########### Development ###########################
- - name: Bump Quality Hub Version
- build_logs_to_retain: 2
- serial: true
- plan:
- - aggregate:
- - get: scanSvc-Docker
- trigger: true
- - get: docker-version
- resource: qh-version
- params: { bump: patch }
- - put: qh-version
- params: {file: docker-version/version}
- - name: Unit Tests
- build_logs_to_retain: 5
- serial: true
- plan:
- - aggregate:
- - get: scan-docker-image
- - get: version
- resource: qh-version
- - get: scanSvc-Docker
- trigger: true
- passed: [Bump Quality Hub Version]
- - task: unit
- file: scanSvc-Docker/ci/unit.yml
- image: scan-docker-image
- ########### END Development ###########################
- ########### END Production Health Checks ###########################
- ########### Change Requests ###########################
- - name: Generate Change Request
- build_logs_to_retain: 5
- serial: true
- plan:
- - aggregate:
- - get: scan-docker-image
- - get: version
- - get: scanSvc-Master
- trigger: false
- - task: create-change
- file: scanSvc-Master/ci/tasks/change/create.yml
- image: scan-docker-image
- ########### END Change Requests ###########################
- - name: Code Quality
- max_in_flight: 1
- plan:
- - get: scanSvc-Docker
- - task: Sonar
- file: ci/concourse/sonar_maven.yml
- input_mapping: {code-repo: scanSvc-Docker}
- params:
- ENVIRONMENT: st
- GITHUB_PRIVATE_KEY: {{github_private_key}}
- GITHUB_TOKEN: {{github-token}}
- SLACK_WEBHOOK_URL: {{slack-webhook-url}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement