Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare upgrade files in packit pipelines in test phase where all envs are set properly #10819

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .azure/scripts/setup_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

set -x

RELEASE=$(cat release.version)
RELEASE_VERSION=$(cat release.version)

# The commands 1) and 2) are used for change tag in installation files for CO. For each branch only of them match and apply changes
# 1) The following command is applied only for branches, where release.version contains *SNAPSHOT* (main + others)
sed -i "s#:latest#:${DOCKER_TAG}#g" packaging/install/cluster-operator/*-Deployment-strimzi-cluster-operator.yaml
# 2) The following command is applied only for release branches, where release.version contains a final version like 0.29.0
sed -i "s#:${RELEASE}#:${DOCKER_TAG}#g" packaging/install/cluster-operator/*-Deployment-strimzi-cluster-operator.yaml
sed -i "s#:${RELEASE_VERSION}#:${DOCKER_TAG}#g" packaging/install/cluster-operator/*-Deployment-strimzi-cluster-operator.yaml

# Change registry and org
sed -i "s#/opt/${DOCKER_REGISTRY}#/opt#g" packaging/install/cluster-operator/*-Deployment-strimzi-cluster-operator.yaml
Expand Down
7 changes: 1 addition & 6 deletions systemtest/tmt/plans/main.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@ prepare:
script: |
./.azure/scripts/setup-helm.sh

- name: Setup upgrade
how: shell
script: |
./.azure/scripts/setup_upgrade.sh

- name: Install shellcheck
how: shell
script: |
Expand Down Expand Up @@ -240,4 +235,4 @@ finish:
- size: ">= 60 GB"
discover+:
test:
- capacity
- capacity
3 changes: 3 additions & 0 deletions systemtest/tmt/tests/strimzi/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ echo "Using container org '$DOCKER_ORG'"
echo "Using container tag '$DOCKER_TAG'"
echo "Using CONNECT_IMAGE_WITH_FILE_SINK_PLUGIN=$CONNECT_IMAGE_WITH_FILE_SINK_PLUGIN"

# Prepare upgrade files
./.azure/scripts/setup_upgrade.sh

mvn compile -pl config-model-generator -DskipTests -Dmaven.javadoc.skip=true --no-transfer-progress
mvn verify -pl systemtest -P ${TEST_PROFILE} \
$([[ "${TEST_GROUPS}" != "" ]] && echo "-Dgroups=${TEST_GROUPS}" || echo "") \
Expand Down
Loading