docker-atlassian-confluence.../bitbucket-pipelines.yml
Eugene Ivantsov 2601be3f18 Merged in exclude-9-0-0 (pull request #172)
Temporarily exclude 9.0.0

* Skip 9.0.0

* Use 8.9.4 for branches and PR builds

* Update snyk ignore

* Override test version

* Update .snyk


Approved-by: Adam Brokes
2024-07-22 22:03:01 +00:00

1409 lines
65 KiB
YAML

---
# NOTE: This file is generated from `bitbucket-pipelines.yml.j2` via `pipelines-generator.py`:
#
# python3 pipelines-generator.py > bitbucket-pipelines.yml
image: docker-public.packages.atlassian.com/atlassian/docker-release-maker:latest
definitions:
services:
docker:
memory: 3072
options:
size: 1x
pipelines:
branches:
######################################################################
# Master branch: Do full release for each image flavour
######################################################################
master:
- step:
name: Check if pipelines config is up-to-date...
script:
- python3 pipelines-generator.py > bitbucket-piplines.yml.expected && diff bitbucket-pipelines.yml bitbucket-piplines.yml.expected
- parallel:
- step:
name: JDK 11-default - Batch 1
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='7.19' \
--end-version='8.3' \
--default-release \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:11' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk11,ubuntu-jdk11' \
--concurrent-builds='1' \
--job-offset='0' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 11-default - Batch 2
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='7.19' \
--end-version='8.3' \
--default-release \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:11' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk11,ubuntu-jdk11' \
--concurrent-builds='1' \
--job-offset='1' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 11-default - Batch 3
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='7.19' \
--end-version='8.3' \
--default-release \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:11' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk11,ubuntu-jdk11' \
--concurrent-builds='1' \
--job-offset='2' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 11-default - Batch 4
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='7.19' \
--end-version='8.3' \
--default-release \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:11' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk11,ubuntu-jdk11' \
--concurrent-builds='1' \
--job-offset='3' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 11-default - Batch 5
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='7.19' \
--end-version='8.3' \
--default-release \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:11' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk11,ubuntu-jdk11' \
--concurrent-builds='1' \
--job-offset='4' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 11-default - Batch 6
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='7.19' \
--end-version='8.3' \
--default-release \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:11' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk11,ubuntu-jdk11' \
--concurrent-builds='1' \
--job-offset='5' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 11-default - Batch 7
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='7.19' \
--end-version='8.3' \
--default-release \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:11' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk11,ubuntu-jdk11' \
--concurrent-builds='1' \
--job-offset='6' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 11-default - Batch 8
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='7.19' \
--end-version='8.3' \
--default-release \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:11' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk11,ubuntu-jdk11' \
--concurrent-builds='1' \
--job-offset='7' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 11 - Batch 1
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.3' \
--end-version='9.0' \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:11' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk11,ubuntu-jdk11' \
--concurrent-builds='1' \
--job-offset='0' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 11 - Batch 2
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.3' \
--end-version='9.0' \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:11' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk11,ubuntu-jdk11' \
--concurrent-builds='1' \
--job-offset='1' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 11 - Batch 3
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.3' \
--end-version='9.0' \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:11' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk11,ubuntu-jdk11' \
--concurrent-builds='1' \
--job-offset='2' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 11 - Batch 4
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.3' \
--end-version='9.0' \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:11' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk11,ubuntu-jdk11' \
--concurrent-builds='1' \
--job-offset='3' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 11 - Batch 5
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.3' \
--end-version='9.0' \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:11' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk11,ubuntu-jdk11' \
--concurrent-builds='1' \
--job-offset='4' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 11 - Batch 6
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.3' \
--end-version='9.0' \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:11' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk11,ubuntu-jdk11' \
--concurrent-builds='1' \
--job-offset='5' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 11 - Batch 7
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.3' \
--end-version='9.0' \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:11' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk11,ubuntu-jdk11' \
--concurrent-builds='1' \
--job-offset='6' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 11 - Batch 8
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.3' \
--end-version='9.0' \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:11' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk11,ubuntu-jdk11' \
--concurrent-builds='1' \
--job-offset='7' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17 - Batch 1
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.0' \
--end-version='8.3' \
--default-eap \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk17,ubuntu-jdk17' \
--concurrent-builds='1' \
--job-offset='0' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17 - Batch 2
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.0' \
--end-version='8.3' \
--default-eap \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk17,ubuntu-jdk17' \
--concurrent-builds='1' \
--job-offset='1' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17 - Batch 3
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.0' \
--end-version='8.3' \
--default-eap \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk17,ubuntu-jdk17' \
--concurrent-builds='1' \
--job-offset='2' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17 - Batch 4
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.0' \
--end-version='8.3' \
--default-eap \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk17,ubuntu-jdk17' \
--concurrent-builds='1' \
--job-offset='3' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17 - Batch 5
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.0' \
--end-version='8.3' \
--default-eap \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk17,ubuntu-jdk17' \
--concurrent-builds='1' \
--job-offset='4' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17 - Batch 6
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.0' \
--end-version='8.3' \
--default-eap \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk17,ubuntu-jdk17' \
--concurrent-builds='1' \
--job-offset='5' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17 - Batch 7
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.0' \
--end-version='8.3' \
--default-eap \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk17,ubuntu-jdk17' \
--concurrent-builds='1' \
--job-offset='6' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17 - Batch 8
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.0' \
--end-version='8.3' \
--default-eap \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk17,ubuntu-jdk17' \
--concurrent-builds='1' \
--job-offset='7' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17-default - Batch 1
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.3' \
--default-release \
--default-eap \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk17,ubuntu-jdk17' \
--concurrent-builds='1' \
--job-offset='0' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17-default - Batch 2
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.3' \
--default-release \
--default-eap \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk17,ubuntu-jdk17' \
--concurrent-builds='1' \
--job-offset='1' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17-default - Batch 3
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.3' \
--default-release \
--default-eap \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk17,ubuntu-jdk17' \
--concurrent-builds='1' \
--job-offset='2' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17-default - Batch 4
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.3' \
--default-release \
--default-eap \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk17,ubuntu-jdk17' \
--concurrent-builds='1' \
--job-offset='3' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17-default - Batch 5
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.3' \
--default-release \
--default-eap \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk17,ubuntu-jdk17' \
--concurrent-builds='1' \
--job-offset='4' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17-default - Batch 6
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.3' \
--default-release \
--default-eap \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk17,ubuntu-jdk17' \
--concurrent-builds='1' \
--job-offset='5' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17-default - Batch 7
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.3' \
--default-release \
--default-eap \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk17,ubuntu-jdk17' \
--concurrent-builds='1' \
--job-offset='6' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17-default - Batch 8
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.3' \
--default-release \
--default-eap \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk17,ubuntu-jdk17' \
--concurrent-builds='1' \
--job-offset='7' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17-ubi - Batch 1
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.5.6' \
--dockerfile='Dockerfile.ubi' \
--dockerfile-buildargs='BASE_IMAGE=registry.access.redhat.com/ubi9/openjdk-17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='ubi9,ubi9-jdk17' \
--concurrent-builds='1' \
--job-offset='0' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17-ubi - Batch 2
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.5.6' \
--dockerfile='Dockerfile.ubi' \
--dockerfile-buildargs='BASE_IMAGE=registry.access.redhat.com/ubi9/openjdk-17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='ubi9,ubi9-jdk17' \
--concurrent-builds='1' \
--job-offset='1' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17-ubi - Batch 3
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.5.6' \
--dockerfile='Dockerfile.ubi' \
--dockerfile-buildargs='BASE_IMAGE=registry.access.redhat.com/ubi9/openjdk-17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='ubi9,ubi9-jdk17' \
--concurrent-builds='1' \
--job-offset='2' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17-ubi - Batch 4
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.5.6' \
--dockerfile='Dockerfile.ubi' \
--dockerfile-buildargs='BASE_IMAGE=registry.access.redhat.com/ubi9/openjdk-17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='ubi9,ubi9-jdk17' \
--concurrent-builds='1' \
--job-offset='3' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17-ubi - Batch 5
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.5.6' \
--dockerfile='Dockerfile.ubi' \
--dockerfile-buildargs='BASE_IMAGE=registry.access.redhat.com/ubi9/openjdk-17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='ubi9,ubi9-jdk17' \
--concurrent-builds='1' \
--job-offset='4' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17-ubi - Batch 6
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.5.6' \
--dockerfile='Dockerfile.ubi' \
--dockerfile-buildargs='BASE_IMAGE=registry.access.redhat.com/ubi9/openjdk-17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='ubi9,ubi9-jdk17' \
--concurrent-builds='1' \
--job-offset='5' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17-ubi - Batch 7
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.5.6' \
--dockerfile='Dockerfile.ubi' \
--dockerfile-buildargs='BASE_IMAGE=registry.access.redhat.com/ubi9/openjdk-17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='ubi9,ubi9-jdk17' \
--concurrent-builds='1' \
--job-offset='6' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17-ubi - Batch 8
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--update \
--start-version='8.5.6' \
--dockerfile='Dockerfile.ubi' \
--dockerfile-buildargs='BASE_IMAGE=registry.access.redhat.com/ubi9/openjdk-17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='ubi9,ubi9-jdk17' \
--concurrent-builds='1' \
--job-offset='7' \
--jobs-total='8' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
######################################################################
# All other branches & PRs; run unit tests & functional tests
# against latest app version
######################################################################
'**':
- step:
name: Check if pipelines config is up-to-date...
script:
- python3 pipelines-generator.py > bitbucket-piplines.yml.expected && diff bitbucket-pipelines.yml bitbucket-piplines.yml.expected
- parallel:
- step:
name: Run unit tests
image: python:3.7-alpine3.9
services:
- docker
script:
- apk add --no-cache git
- git submodule update --init --recursive
- pip install -q -r shared-components/tests/requirements.txt
- export PYTHONPATH=./shared-components/tests:$PYTHONPATH
- export DOCKERFILE='Dockerfile'
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
- export MAC_PRODUCT_KEY='confluence'
- export APP_TEST_VERSION='8.9.4' # remove it after 9.0.0 is out
- py.test -v tests/
- py.test -v shared-components/tests/
- step:
name: Run unit tests - UBI
image: python:3.7-alpine3.9
services:
- docker
script:
- apk add --no-cache git
- git submodule update --init --recursive
- pip install -q -r shared-components/tests/requirements.txt
- export PYTHONPATH=./shared-components/tests:$PYTHONPATH
- export DOCKERFILE='Dockerfile.ubi'
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
- export MAC_PRODUCT_KEY='confluence'
- export APP_TEST_VERSION='8.9.4' # remove it after 9.0.0 is out
- py.test -v tests/
- step:
name: Run integration tests
services:
- docker
script:
- apk add --no-cache git docker-compose jq curl
- git submodule update --init --recursive
- export CONFLUENCE_VERSION=`curl -s https://marketplace.atlassian.com/rest/2/products/key/confluence/versions | jq -r '._embedded.versions | .[0].name'`
- export CONFLUENCE_VERSION="8.9.4" # remove it after 9.0.0 is out
- docker build --build-arg CONFLUENCE_VERSION=${CONFLUENCE_VERSION} -t test-image .
- export IS_RELEASE=false
- /usr/src/app/post_build.sh test-image $IS_RELEASE
- step:
name: Run integration tests - UBI
services:
- docker
script:
- apk add --no-cache git docker-compose jq curl
- git submodule update --init --recursive
- export CONFLUENCE_VERSION=`curl -s https://marketplace.atlassian.com/rest/2/products/key/confluence/versions | jq -r '._embedded.versions | .[0].name'`
- export CONFLUENCE_VERSION="8.9.4" # remove it after 9.0.0 is out
- docker build --build-arg CONFLUENCE_VERSION=${CONFLUENCE_VERSION} -t test-image-ubi . -f Dockerfile.ubi
- export IS_RELEASE=false
- /usr/src/app/post_build.sh test-image-ubi $IS_RELEASE
custom:
######################################################################
# Custom: Find and build new releases
######################################################################
new-releases:
- parallel:
- step:
name: JDK 11-default - Batch 1
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--create \
--create-eap \
--start-version='7.19' \
--end-version='8.3' \
--default-release \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:11' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk11,ubuntu-jdk11' \
--concurrent-builds='1' \
--job-offset='0' \
--jobs-total='1' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 11 - Batch 1
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--create \
--create-eap \
--start-version='8.3' \
--end-version='9.0' \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:11' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk11,ubuntu-jdk11' \
--concurrent-builds='1' \
--job-offset='0' \
--jobs-total='1' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17 - Batch 1
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--create \
--create-eap \
--start-version='8.0' \
--end-version='8.3' \
--default-eap \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk17,ubuntu-jdk17' \
--concurrent-builds='1' \
--job-offset='0' \
--jobs-total='1' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17-default - Batch 1
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--create \
--create-eap \
--start-version='8.3' \
--default-release \
--default-eap \
--dockerfile='Dockerfile' \
--dockerfile-buildargs='BASE_IMAGE=eclipse-temurin:17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='jdk17,ubuntu-jdk17' \
--concurrent-builds='1' \
--job-offset='0' \
--jobs-total='1' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
- step:
name: JDK 17-ubi - Batch 1
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- docker buildx create --name container --driver docker-container --use
- docker buildx ls
- >
python /usr/src/app/make-releases.py \
--create \
--create-eap \
--start-version='8.5.6' \
--dockerfile='Dockerfile.ubi' \
--dockerfile-buildargs='BASE_IMAGE=registry.access.redhat.com/ubi9/openjdk-17' \
--dockerfile-version-arg='CONFLUENCE_VERSION' \
--mac-product-key='confluence' \
--tag-suffixes='ubi9,ubi9-jdk17' \
--concurrent-builds='1' \
--job-offset='0' \
--jobs-total='1' \
--docker-repos='atlassian/confluence' \
--push \
--platforms=linux/amd64,linux/arm64 \
--skip-versions=9.0.0
custom-release:
- variables:
- name: CONFLUENCE_VERSION
- name: DOCKER_TAG
- step:
services:
- docker
script:
- git submodule update --init --recursive
- for i in {1..3}; do echo ${DOCKER_BOT_PASSWORD} | docker login ${DOCKER_REGISTRY} --username ${DOCKER_BOT_USERNAME} --password-stdin && break || sleep 5; done; if [ $? -ne 0 ]; then echo "Failed to login to container registry after 3 attempts" && exit 1; fi
- >
docker build -t ${DOCKER_REGISTRY}/atlassian/confluence:${DOCKER_TAG}
--build-arg CONFLUENCE_VERSION=${CONFLUENCE_VERSION} .
- snyk auth $SNYK_TOKEN
- snyk container test ${DOCKER_REGISTRY}/atlassian/confluence:${DOCKER_TAG} --severity-threshold=high
- docker push ${DOCKER_REGISTRY}/atlassian/confluence:${DOCKER_TAG}