From b798788757a62d88353ff97a4c9b69cc6b6d84b0 Mon Sep 17 00:00:00 2001 From: Maxim Topciu Date: Fri, 26 Apr 2024 12:36:24 +0300 Subject: [PATCH] add increment specs --- bamboo-specs/bamboo.yaml | 3 ++ bamboo-specs/increment.yaml | 57 +++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 bamboo-specs/increment.yaml diff --git a/bamboo-specs/bamboo.yaml b/bamboo-specs/bamboo.yaml index fd888cd..97e4794 100644 --- a/bamboo-specs/bamboo.yaml +++ b/bamboo-specs/bamboo.yaml @@ -9,3 +9,6 @@ --- !include 'permissions.yaml' + +--- +!include 'increment.yaml' diff --git a/bamboo-specs/increment.yaml b/bamboo-specs/increment.yaml new file mode 100644 index 0000000..1fe279f --- /dev/null +++ b/bamboo-specs/increment.yaml @@ -0,0 +1,57 @@ +--- +version: 2 +plan: + project-key: AJL + key: GHACTIONSRUNINC + name: github-actions-runner - increment version +variables: + dockerNode: adguard/node-ssh:18.19--0 + +stages: + - Increment: + manual: true + final: false + jobs: + - Increment + +Increment: + key: INCR + other: + clean-working-dir: true + docker: + image: ${bamboo.dockerNode} + volumes: + ${system.PNPM_DIR}: "${bamboo.cachePnpm}" + tasks: + - checkout: + force-clean-build: true + - script: + interpreter: SHELL + scripts: + - |- + set -x + set -e + + # Fix mixed logs + exec 2>&1 + + ls -alt + + pnpm increment + - any-task: + plugin-key: com.atlassian.bamboo.plugins.vcs:task.vcs.commit + configuration: + commitMessage: 'skipci: Automatic increment build number' + selectedRepository: defaultRepository + requirements: + - adg-docker: true + +branches: + create: manually + delete: never + link-to-jira: true + +notifications: [] +labels: [] +other: + concurrent-build-plugin: system-default