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

[ST] AZP - Make it possible to run tests on main branch without building images #9794

Merged
merged 2 commits into from
Mar 7, 2024
Merged
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
7 changes: 5 additions & 2 deletions .azure/templates/steps/system_test_general.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,18 @@ jobs:
env:
MVN_ARGS: '-B -DskipTests -Dmaven.javadoc.skip=true'
displayName: "Build Strimzi images"
condition: eq(variables['docker_tag'], 'latest')
# Build images in case that we are not running tests on the `main` branch and the docker_tag is `latest`, which means
# that we are running tests on a PR
condition: and(eq(variables['docker_tag'], 'latest'), ne(variables['build.sourceBranch'], 'refs/heads/main'))

# Build Strimzi without images => used when running the STs against releases or release candidates where the images
# are already built, and we need only the Java build
- bash: "make java_install"
env:
MVN_ARGS: "-DskipTests -Dmaven.javadoc.skip=true -e -V -B"
displayName: "Build Strimzi Java code"
condition: ne(variables['docker_tag'], 'latest')
# Build Strimzi without images in case that we are on the `main` branch or in case that we are running tests against tags during release
condition: or(ne(variables['docker_tag'], 'latest'), eq(variables['build.sourceBranch'], 'refs/heads/main'))

- bash: mkdir -p docker-images/artifacts/binaries/kafka/archives
displayName: "Create dir for Kafka binaries cache"
Expand Down
Loading