Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- version: 2
- plan:
- project-key: NOAHSPIN
- key: AUMLOADER
- name: Spinnaker Aum Loader
- stages:
- - Build and publish app:
- jobs:
- - BuildAndTest
- - DockerCleanup
- BuildAndTest:
- tasks:
- - script:
- - yarn install
- - npm run generateBuildName
- - npm test
- - npm pack
- - npm publish
- - npm run tag
- - inject-variables:
- file: .version
- scope: RESULT
- namespace: build
- - test-parser:
- type: mocha
- test-results:
- - "mocha.json"
- docker:
- image: our.docker.registry.com/node-8-builder-new:latest
- volumes:
- ${bamboo.working.directory}: /mnt/code/
- /mnt/bamboo-agent/cache/node_modules/: /mnt/code/node_modules/
- /mnt/bamboo-agent/cache/npmrc/.npmrc: /mnt/code/.npmrc
- artifacts:
- - name: Default
- pattern: .version
- DockerCleanup:
- tasks:
- - script:
- - docker system prune -a -f
- - clean
- ---
- version: 2
- deployment:
- name: Deploy spinnaker aum loader on DEV
- source-plan: NOAHSPIN-AUMLOADER
- release-naming:
- next-version-name: ${service-name}-${bamboo.build.npm.version}-develop-${bamboo.buildNumber}
- environments:
- - DEV
- DEV:
- tasks:
- - script:
- - git clone ssh://git@out.git.server.com:7999/noahcore/noah-deploy.git
- - cd noah-deploy
- - jq ".dependencies.\"$service-name\" = \"${bamboo.build.npm.version}\"" package.json | sponge package.json
- - git add package.json
- - git commit -m "[Bamboo] Automatic version bump for $service-name in DEV"
- - git push
- - clean
- - script: |
- #!/bin/bash
- ssh mlp_noah_dev << EOF
- sudo -H -u svc_spinnaker_dev
- cd $HOME
- source .bashrc
- carryall deploy
- EOF
- triggers:
- - build-success:
- branch: develop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement