pyinfra/bamboo-specs/bamboo.yml
2022-11-10 13:24:51 +01:00

162 lines
3.4 KiB
YAML

---
version: 2
plan:
project-key: RED
key: PYINFRA
name: pyinfra
description: Build for pyinfra
stages:
- Sonar Stage:
manual: false
final: false
jobs:
- Sonar Job
- Licence Stage:
manual: false
final: false
jobs:
- Git Tag Job
- Licence Job
Sonar Job:
key: SONAR
docker:
image: nexus.iqser.com:5001/infra/release_build:4.2.0
volumes:
${bamboo.working.directory}: ${bamboo.working.directory}
${bamboo.tmp.directory}: ${bamboo.tmp.directory}
/var/run/docker.sock: /var/run/docker.sock
docker-run-arguments: []
tasks:
- clean:
description: Clean working directory.
- checkout:
force-clean-build: 'false'
description: Checkout default repository.
- script:
interpreter: SHELL
scripts:
- |-
mkdir -p ~/.ssh
echo "${bamboo.bamboo_agent_ssh}" | base64 -d >> ~/.ssh/id_rsa
echo "host vector.iqser.com" > ~/.ssh/config
echo " user bamboo-agent" >> ~/.ssh/config
chmod 600 ~/.ssh/config ~/.ssh/id_rsa
- script:
interpreter: SHELL
file: bamboo-specs/scripts/sonar-scan.sh
argument: pyinfra
description: Run Sonarqube scan.
artifact-subscriptions: []
Git Tag Job:
key: GITTAG
docker:
image: nexus.iqser.com:5001/infra/release_build:4.4.1
volumes:
${bamboo.working.directory}: ${bamboo.working.directory}
${bamboo.tmp.directory}: ${bamboo.tmp.directory}
docker-run-arguments: []
tasks:
- checkout:
force-clean-build: 'false'
description: Checkout default repository.
- script:
interpreter: SHELL
file: bamboo-specs/scripts/git-tag.sh
description: Build git tag.
- inject-variables:
file: git.tag
scope: LOCAL
namespace: g
description: Inject git tag.
- any-task:
plugin-key: com.atlassian.bamboo.plugins.vcs:task.vcs.tagging
configuration:
selectedRepository: defaultRepository
tagName: ${bamboo.g.gitTag}
description: ${bamboo.g.gitTag}
artifact-subscriptions: []
Licence Job:
key: LICENCE
docker:
image: nexus.iqser.com:5001/infra/maven:3.6.2-jdk-13-3.0.0
volumes:
${bamboo.working.directory}: ${bamboo.working.directory}
${bamboo.tmp.directory}: ${bamboo.tmp.directory}
/etc/maven/settings.xml: /usr/share/maven/ref/settings.xml
/var/run/docker.sock: /var/run/docker.sock
docker-run-arguments: []
tasks:
- checkout:
force-clean-build: 'false'
description: Checkout default repository.
- script:
interpreter: SHELL
file: bamboo-specs/scripts/create-licence.sh
description: Build licence.
artifact-subscriptions: []
repositories:
- RR / pyinfra:
scope: global
triggers:
- bitbucket-server-trigger
branches:
create: for-new-branch
delete:
after-deleted-days: never
after-inactive-days: 14
link-to-jira: true
notifications: []
labels: []
dependencies:
require-all-stages-passing: false
enabled-for-branches: true
block-strategy: none
plans: []
other:
concurrent-build-plugin: system-default
---
version: 2
plan:
key: RED-PYINFRA
plan-permissions:
- roles:
- logged-in
- anonymous
permissions:
- view
- users:
- atlbamboo
permissions:
- view
- edit
- build
- clone
- admin
- view-configuration
- groups:
- QA
- research
- Development
permissions:
- view
- edit
- build
- clone
- view-configuration
...