2019-05-16 05:51:31 +00:00
|
|
|
image: atlassian/docker-release-maker:latest
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
definitions:
|
|
|
|
services:
|
|
|
|
docker:
|
|
|
|
memory: 4096
|
|
|
|
|
|
|
|
options:
|
|
|
|
size: 2x
|
2017-10-10 02:24:57 +00:00
|
|
|
|
|
|
|
pipelines:
|
|
|
|
custom:
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
######################################################################
|
|
|
|
# Custom: Do full release for each image flavour
|
|
|
|
######################################################################
|
2019-08-02 04:52:43 +00:00
|
|
|
new-releases:
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
- step:
|
|
|
|
name: Confluence Alpine (Batch 1)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7'
|
|
|
|
- export JOB_OFFSET='0'
|
|
|
|
- export JOBS_TOTAL='5'
|
|
|
|
- export DEFAULT_RELEASE='false'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE='Dockerfile-alpine'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='alpine,alpine-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --create
|
|
|
|
- step:
|
|
|
|
name: Confluence Alpine (Batch 2)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7'
|
|
|
|
- export JOB_OFFSET='1'
|
|
|
|
- export JOBS_TOTAL='5'
|
|
|
|
- export DEFAULT_RELEASE='false'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE='Dockerfile-alpine'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='alpine,alpine-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --create
|
|
|
|
- step:
|
|
|
|
name: Confluence Alpine (Batch 3)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7'
|
|
|
|
- export JOB_OFFSET='2'
|
|
|
|
- export JOBS_TOTAL='5'
|
|
|
|
- export DEFAULT_RELEASE='false'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE='Dockerfile-alpine'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='alpine,alpine-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --create
|
|
|
|
- step:
|
|
|
|
name: Confluence Alpine (Batch 4)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7'
|
|
|
|
- export JOB_OFFSET='3'
|
|
|
|
- export JOBS_TOTAL='5'
|
|
|
|
- export DEFAULT_RELEASE='false'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE='Dockerfile-alpine'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='alpine,alpine-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --create
|
|
|
|
- step:
|
|
|
|
name: Confluence Alpine (Batch 5)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7'
|
|
|
|
- export JOB_OFFSET='4'
|
|
|
|
- export JOBS_TOTAL='5'
|
|
|
|
- export DEFAULT_RELEASE='false'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE='Dockerfile-alpine'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='alpine,alpine-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --create
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 8 (Batch 1)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7.1'
|
|
|
|
- export JOB_OFFSET='0'
|
|
|
|
- export JOBS_TOTAL='5'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_BUILDARGS='BASE_IMAGE=adoptopenjdk:8-hotspot'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='adoptopenjdk8,jdk8,ubuntu,ubuntu-18.04-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --create
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 8 (Batch 2)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7.1'
|
|
|
|
- export JOB_OFFSET='1'
|
|
|
|
- export JOBS_TOTAL='5'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_BUILDARGS='BASE_IMAGE=adoptopenjdk:8-hotspot'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='adoptopenjdk8,jdk8,ubuntu,ubuntu-18.04-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --create
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 8 (Batch 3)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7.1'
|
|
|
|
- export JOB_OFFSET='2'
|
|
|
|
- export JOBS_TOTAL='5'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_BUILDARGS='BASE_IMAGE=adoptopenjdk:8-hotspot'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='adoptopenjdk8,jdk8,ubuntu,ubuntu-18.04-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --create
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 8 (Batch 5)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7.1'
|
|
|
|
- export JOB_OFFSET='3'
|
|
|
|
- export JOBS_TOTAL='5'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_BUILDARGS='BASE_IMAGE=adoptopenjdk:8-hotspot'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='adoptopenjdk8,jdk8,ubuntu,ubuntu-18.04-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --create
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 8 (Batch 5)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7.1'
|
|
|
|
- export JOB_OFFSET='4'
|
|
|
|
- export JOBS_TOTAL='5'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_BUILDARGS='BASE_IMAGE=adoptopenjdk:8-hotspot'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='adoptopenjdk8,jdk8,ubuntu,ubuntu-18.04-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --create
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 11 (Batch 1)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='7.1'
|
|
|
|
- export END_VERSION='8'
|
|
|
|
- export JOB_OFFSET='0'
|
|
|
|
- export JOBS_TOTAL='5'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='jdk11,ubuntu'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --create --create-eap
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 11 (Batch 2)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='7.1'
|
|
|
|
- export END_VERSION='8'
|
|
|
|
- export JOB_OFFSET='1'
|
|
|
|
- export JOBS_TOTAL='5'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='jdk11,ubuntu'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --create --create-eap
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 11 (Batch 3)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='7.1'
|
|
|
|
- export END_VERSION='8'
|
|
|
|
- export JOB_OFFSET='2'
|
|
|
|
- export JOBS_TOTAL='5'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='jdk11,ubuntu'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --create --create-eap
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 11 (Batch 4)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='7.1'
|
|
|
|
- export END_VERSION='8'
|
|
|
|
- export JOB_OFFSET='3'
|
|
|
|
- export JOBS_TOTAL='5'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='jdk11,ubuntu'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --create --create-eap
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 11 (Batch 5)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='7.1'
|
|
|
|
- export END_VERSION='8'
|
|
|
|
- export JOB_OFFSET='4'
|
|
|
|
- export JOBS_TOTAL='5'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='jdk11,ubuntu'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --create --create-eap
|
|
|
|
custom-release:
|
|
|
|
- variables:
|
|
|
|
- name: CONFLUENCE_VERSION
|
|
|
|
- name: DOCKER_TAG
|
|
|
|
- step:
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- >
|
|
|
|
docker build -t atlassian/confluence-server:${DOCKER_TAG}
|
|
|
|
--build-arg CONFLUENCE_VERSION=${CONFLUENCE_VERSION} .
|
|
|
|
- snyk auth @SNYK_TOKEN
|
|
|
|
- snyk container test atlassian/confluence-server:${DOCKER_TAG} --severity-threshold=high
|
|
|
|
- docker push atlassian/confluence-server:${DOCKER_TAG}
|
|
|
|
branches:
|
|
|
|
######################################################################
|
|
|
|
# Master branch: Do full release for each image flavour
|
|
|
|
######################################################################
|
|
|
|
master:
|
2019-11-26 04:21:35 +00:00
|
|
|
- parallel:
|
|
|
|
- step:
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
name: Confluence Alpine(Batch 1)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7'
|
|
|
|
- export JOB_OFFSET='0'
|
|
|
|
- export JOBS_TOTAL='12'
|
|
|
|
- export DEFAULT_RELEASE='false'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE='Dockerfile-alpine'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='alpine,alpine-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Alpine(Batch 2)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7'
|
|
|
|
- export JOB_OFFSET='1'
|
|
|
|
- export JOBS_TOTAL='12'
|
|
|
|
- export DEFAULT_RELEASE='false'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE='Dockerfile-alpine'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='alpine,alpine-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Alpine(Batch 3)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7'
|
|
|
|
- export JOB_OFFSET='2'
|
|
|
|
- export JOBS_TOTAL='12'
|
|
|
|
- export DEFAULT_RELEASE='false'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE='Dockerfile-alpine'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='alpine,alpine-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Alpine(Batch 4)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7'
|
|
|
|
- export JOB_OFFSET='3'
|
|
|
|
- export JOBS_TOTAL='12'
|
|
|
|
- export DEFAULT_RELEASE='false'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE='Dockerfile-alpine'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='alpine,alpine-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Alpine(Batch 5)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7'
|
|
|
|
- export JOB_OFFSET='4'
|
|
|
|
- export JOBS_TOTAL='12'
|
|
|
|
- export DEFAULT_RELEASE='false'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE='Dockerfile-alpine'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='alpine,alpine-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Alpine(Batch 6)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7'
|
|
|
|
- export JOB_OFFSET='5'
|
|
|
|
- export JOBS_TOTAL='12'
|
|
|
|
- export DEFAULT_RELEASE='false'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE='Dockerfile-alpine'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='alpine,alpine-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Alpine(Batch 7)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7'
|
|
|
|
- export JOB_OFFSET='6'
|
|
|
|
- export JOBS_TOTAL='12'
|
|
|
|
- export DEFAULT_RELEASE='false'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE='Dockerfile-alpine'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='alpine,alpine-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Alpine(Batch 8)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7'
|
|
|
|
- export JOB_OFFSET='7'
|
|
|
|
- export JOBS_TOTAL='12'
|
|
|
|
- export DEFAULT_RELEASE='false'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE='Dockerfile-alpine'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='alpine,alpine-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Alpine(Batch 9)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7'
|
|
|
|
- export JOB_OFFSET='8'
|
|
|
|
- export JOBS_TOTAL='12'
|
|
|
|
- export DEFAULT_RELEASE='false'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE='Dockerfile-alpine'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='alpine,alpine-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Alpine(Batch 10)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7'
|
|
|
|
- export JOB_OFFSET='9'
|
|
|
|
- export JOBS_TOTAL='12'
|
|
|
|
- export DEFAULT_RELEASE='false'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE='Dockerfile-alpine'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='alpine,alpine-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Alpine(Batch 11)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7'
|
|
|
|
- export JOB_OFFSET='10'
|
|
|
|
- export JOBS_TOTAL='12'
|
|
|
|
- export DEFAULT_RELEASE='false'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE='Dockerfile-alpine'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='alpine,alpine-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Alpine(Batch 12)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7'
|
|
|
|
- export JOB_OFFSET='11'
|
|
|
|
- export JOBS_TOTAL='12'
|
|
|
|
- export DEFAULT_RELEASE='false'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE='Dockerfile-alpine'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='alpine,alpine-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 8(Batch 1)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7.1'
|
|
|
|
- export JOB_OFFSET='0'
|
|
|
|
- export JOBS_TOTAL='12'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_BUILDARGS='BASE_IMAGE=adoptopenjdk:8-hotspot'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='adoptopenjdk8,jdk8,ubuntu,ubuntu-18.04-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 8(Batch 2)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7.1'
|
|
|
|
- export JOB_OFFSET='1'
|
|
|
|
- export JOBS_TOTAL='12'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_BUILDARGS='BASE_IMAGE=adoptopenjdk:8-hotspot'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='adoptopenjdk8,jdk8,ubuntu,ubuntu-18.04-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 8(Batch 3)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7.1'
|
|
|
|
- export JOB_OFFSET='2'
|
|
|
|
- export JOBS_TOTAL='12'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_BUILDARGS='BASE_IMAGE=adoptopenjdk:8-hotspot'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='adoptopenjdk8,jdk8,ubuntu,ubuntu-18.04-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 8(Batch 4)
|
2019-11-26 04:21:35 +00:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
- export END_VERSION='7.1'
|
|
|
|
- export JOB_OFFSET='3'
|
|
|
|
- export JOBS_TOTAL='12'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
2019-11-26 04:21:35 +00:00
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
- export DOCKERFILE_BUILDARGS='BASE_IMAGE=adoptopenjdk:8-hotspot'
|
2019-11-26 04:21:35 +00:00
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
- export TAG_SUFFIXES='adoptopenjdk8,jdk8,ubuntu,ubuntu-18.04-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
2019-11-26 04:21:35 +00:00
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
- python /usr/src/app/run.py --update
|
2019-11-26 04:21:35 +00:00
|
|
|
- step:
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
name: Confluence Ubuntu JDK 8(Batch 5)
|
2019-11-26 04:21:35 +00:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7.1'
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
- export JOB_OFFSET='4'
|
|
|
|
- export JOBS_TOTAL='12'
|
2019-11-26 04:21:35 +00:00
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
2020-03-23 03:34:48 +00:00
|
|
|
- export DOCKERFILE_BUILDARGS='BASE_IMAGE=adoptopenjdk:8-hotspot'
|
2019-11-26 04:21:35 +00:00
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='adoptopenjdk8,jdk8,ubuntu,ubuntu-18.04-adoptopenjdk8'
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
- export CONCURRENT_BUILDS='1'
|
2019-11-26 04:21:35 +00:00
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
- python /usr/src/app/run.py --update
|
2019-11-26 04:21:35 +00:00
|
|
|
- step:
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
name: Confluence Ubuntu JDK 8(Batch 6)
|
2019-11-26 04:21:35 +00:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7.1'
|
|
|
|
- export JOB_OFFSET='5'
|
|
|
|
- export JOBS_TOTAL='12'
|
2019-11-26 04:21:35 +00:00
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
- export DOCKERFILE_BUILDARGS='BASE_IMAGE=adoptopenjdk:8-hotspot'
|
2019-11-26 04:21:35 +00:00
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
- export TAG_SUFFIXES='adoptopenjdk8,jdk8,ubuntu,ubuntu-18.04-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
2019-11-26 04:21:35 +00:00
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
- python /usr/src/app/run.py --update
|
2019-11-26 04:21:35 +00:00
|
|
|
- step:
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
name: Confluence Ubuntu JDK 8(Batch 7)
|
2019-11-26 04:21:35 +00:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
- export END_VERSION='7.1'
|
|
|
|
- export JOB_OFFSET='6'
|
|
|
|
- export JOBS_TOTAL='12'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
2019-11-26 04:21:35 +00:00
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
- export DOCKERFILE_BUILDARGS='BASE_IMAGE=adoptopenjdk:8-hotspot'
|
2019-11-26 04:21:35 +00:00
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
- export TAG_SUFFIXES='adoptopenjdk8,jdk8,ubuntu,ubuntu-18.04-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 8(Batch 8)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7.1'
|
|
|
|
- export JOB_OFFSET='7'
|
|
|
|
- export JOBS_TOTAL='12'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_BUILDARGS='BASE_IMAGE=adoptopenjdk:8-hotspot'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='adoptopenjdk8,jdk8,ubuntu,ubuntu-18.04-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 8(Batch 9)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7.1'
|
|
|
|
- export JOB_OFFSET='8'
|
|
|
|
- export JOBS_TOTAL='12'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_BUILDARGS='BASE_IMAGE=adoptopenjdk:8-hotspot'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='adoptopenjdk8,jdk8,ubuntu,ubuntu-18.04-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 8(Batch 10)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7.1'
|
|
|
|
- export JOB_OFFSET='9'
|
|
|
|
- export JOBS_TOTAL='12'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_BUILDARGS='BASE_IMAGE=adoptopenjdk:8-hotspot'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='adoptopenjdk8,jdk8,ubuntu,ubuntu-18.04-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 8(Batch 11)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7.1'
|
|
|
|
- export JOB_OFFSET='10'
|
|
|
|
- export JOBS_TOTAL='12'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_BUILDARGS='BASE_IMAGE=adoptopenjdk:8-hotspot'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='adoptopenjdk8,jdk8,ubuntu,ubuntu-18.04-adoptopenjdk8'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
2019-11-26 04:21:35 +00:00
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
name: Confluence Ubuntu JDK 8(Batch 12)
|
2019-11-26 04:21:35 +00:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='6'
|
|
|
|
- export END_VERSION='7.1'
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
- export JOB_OFFSET='11'
|
|
|
|
- export JOBS_TOTAL='12'
|
2019-11-26 04:21:35 +00:00
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
2020-03-23 03:34:48 +00:00
|
|
|
- export DOCKERFILE_BUILDARGS='BASE_IMAGE=adoptopenjdk:8-hotspot'
|
2019-11-26 04:21:35 +00:00
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='adoptopenjdk8,jdk8,ubuntu,ubuntu-18.04-adoptopenjdk8'
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 11(Batch 1)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='7.1'
|
|
|
|
- export END_VERSION='8'
|
|
|
|
- export JOB_OFFSET='0'
|
|
|
|
- export JOBS_TOTAL='11'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='jdk11,ubuntu'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 11(Batch 2)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='7.1'
|
|
|
|
- export END_VERSION='8'
|
|
|
|
- export JOB_OFFSET='1'
|
|
|
|
- export JOBS_TOTAL='11'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='jdk11,ubuntu'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 11(Batch 3)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='7.1'
|
|
|
|
- export END_VERSION='8'
|
|
|
|
- export JOB_OFFSET='2'
|
|
|
|
- export JOBS_TOTAL='11'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='jdk11,ubuntu'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 11(Batch 4)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='7.1'
|
|
|
|
- export END_VERSION='8'
|
|
|
|
- export JOB_OFFSET='3'
|
|
|
|
- export JOBS_TOTAL='11'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='jdk11,ubuntu'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 11(Batch 5)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='7.1'
|
|
|
|
- export END_VERSION='8'
|
|
|
|
- export JOB_OFFSET='4'
|
|
|
|
- export JOBS_TOTAL='11'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='jdk11,ubuntu'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 11(Batch 6)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='7.1'
|
|
|
|
- export END_VERSION='8'
|
|
|
|
- export JOB_OFFSET='5'
|
|
|
|
- export JOBS_TOTAL='11'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='jdk11,ubuntu'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 11(Batch 7)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='7.1'
|
|
|
|
- export END_VERSION='8'
|
|
|
|
- export JOB_OFFSET='6'
|
|
|
|
- export JOBS_TOTAL='11'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='jdk11,ubuntu'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 11(Batch 8)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='7.1'
|
|
|
|
- export END_VERSION='8'
|
|
|
|
- export JOB_OFFSET='7'
|
|
|
|
- export JOBS_TOTAL='11'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='jdk11,ubuntu'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 11(Batch 9)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='7.1'
|
|
|
|
- export END_VERSION='8'
|
|
|
|
- export JOB_OFFSET='8'
|
|
|
|
- export JOBS_TOTAL='11'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='jdk11,ubuntu'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
|
|
|
name: Confluence Ubuntu JDK 11(Batch 10)
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='7.1'
|
|
|
|
- export END_VERSION='8'
|
|
|
|
- export JOB_OFFSET='9'
|
|
|
|
- export JOBS_TOTAL='11'
|
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='jdk11,ubuntu'
|
|
|
|
- export CONCURRENT_BUILDS='1'
|
2019-11-26 04:21:35 +00:00
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
|
|
|
- step:
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
name: Confluence Ubuntu JDK 11(Batch 11)
|
2019-11-26 04:21:35 +00:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- export START_VERSION='7.1'
|
|
|
|
- export END_VERSION='8'
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
- export JOB_OFFSET='10'
|
|
|
|
- export JOBS_TOTAL='11'
|
2019-11-26 04:21:35 +00:00
|
|
|
- export DEFAULT_RELEASE='true'
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
|
|
|
- export DOCKERFILE_VERSION_ARG='CONFLUENCE_VERSION'
|
|
|
|
- export MAC_PRODUCT_KEY='confluence'
|
|
|
|
- export TAG_SUFFIXES='jdk11,ubuntu'
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
- export CONCURRENT_BUILDS='1'
|
2019-11-26 04:21:35 +00:00
|
|
|
- echo ${DOCKER_PASSWORD} | docker login --username ${DOCKER_USERNAME} --password-stdin
|
|
|
|
- python /usr/src/app/run.py --update
|
2019-09-05 03:53:40 +00:00
|
|
|
- step:
|
|
|
|
name: Update README
|
|
|
|
image: python:3.7-alpine3.9
|
|
|
|
script:
|
2019-11-20 10:32:32 +00:00
|
|
|
- apk add --no-cache git
|
|
|
|
- git submodule update --init --recursive
|
2019-09-05 03:53:40 +00:00
|
|
|
- pip install -q requests
|
|
|
|
- export DOCKER_REPO='atlassian/confluence-server'
|
2019-11-20 10:32:32 +00:00
|
|
|
- python shared-components/image/push-readme.py
|
2019-08-02 05:25:58 +00:00
|
|
|
pull-requests:
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
######################################################################
|
|
|
|
# All other branches & PRs; run unit tests & functional tests
|
|
|
|
# against latest app version
|
|
|
|
######################################################################
|
2019-08-02 05:25:58 +00:00
|
|
|
'**':
|
|
|
|
- step:
|
|
|
|
image: python:3.7-alpine3.9
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
script:
|
2019-11-20 10:32:32 +00:00
|
|
|
- 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'
|
|
|
|
- py.test tests/
|
|
|
|
- py.test shared-components/tests/
|
|
|
|
- export DOCKERFILE='Dockerfile-alpine'
|
2019-08-02 05:25:58 +00:00
|
|
|
- py.test tests/
|
2019-11-20 10:32:32 +00:00
|
|
|
- py.test shared-components/tests/
|
Merged in DCKUBE-136-RunSmoketestsInReleasePipeline (pull request #83)
DCKUBE-135, DCKUBE-136, DCKUBE_137, and DCKUBE-138: Add Smoke tests in Confluence Pipeline
This PR contains code change for three tickets which are related and should merge to master together.
KUBEDCKUBE-135:
Applied security scan to bitbucket pipeline for branch builds in confluence - for releases, the test script will run by run.py for releases and for branch builds and custom releases will directly runs snyk scanner
Created a smoke testing suite via REST and included these scenarios: Create a space, Create a page, Search for the page, View page, Add attachments, Delete the page, and Delete the space
KUBEDCKUBE-136:
Added a separated docker for confluence to based on the docker image to copy confluence home directory
Injected target confluence image to Dockerfile
set the number of concurrent builds to one in pipeline
clean docker-compose before start and force to recreate the containers
Modified the script in order to install netcat-openbsd using apkfor Alpine (apt-getis not available in Alpine)
Replaced colfuence-home directory and postgres scripts with confluence 6.0.1 compatible to avoid downgrade version in release images
Increased database connection numbers to 125
Addressed some review points, replaced the confluence home directory and sql with version 6.0.1
Addressed a review points, renamed CONFLUENCE_USER to CONFLUENCE_ADMIN
divided pipeline into batches to avoid pipeline timeout
KUBEDCKUBE-137:
Run smoketests in branch builds after each commit
Completed smoketests and also addressed some review points
KUBEDCKUBE-138:
Added development document
Approved-by: Adam Brokes
2021-03-12 03:30:51 +00:00
|
|
|
- step:
|
|
|
|
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/latest | jq -r .name`
|
|
|
|
- docker build --build-arg CONFLUENCE_VERSION=${CONFLUENCE_VERSION} -t test-image .
|
|
|
|
- export IS_RELEASE=false
|
|
|
|
- /usr/src/app/integration_test.sh test-image $IS_RELEASE
|
|
|
|
|