Skip to content

Commit

Permalink
Prepare upgrade files in packit pipelines in test phase where all env…
Browse files Browse the repository at this point in the history
…s are set properly (strimzi#10819)

Signed-off-by: Jakub Stejskal <[email protected]>
  • Loading branch information
Frawless authored Nov 11, 2024
1 parent c0f4a0f commit 692ddc4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
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

0 comments on commit 692ddc4

Please sign in to comment.