From 01ef716aea3ac16b3f2cab16c3f6a9be3621850a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ors=C3=A1k=20Maro=C5=A1?= <30839163+see-quick@users.noreply.github.com> Date: Thu, 20 Jan 2022 17:01:03 +0100 Subject: [PATCH] [MO] - allow tags to push to the next and retrict release branch to do so (#20) Signed-off-by: morsak --- .azure/build-pipeline.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.azure/build-pipeline.yaml b/.azure/build-pipeline.yaml index 92b5292..a7f0b0f 100644 --- a/.azure/build-pipeline.yaml +++ b/.azure/build-pipeline.yaml @@ -33,8 +33,6 @@ jobs: - bash: mvn clean verify env: - STRIMZI_TEST_CONTAINER_KAFKA_VERSION: 3.0.0 - STRIMZI_TEST_CONTAINER_IMAGE_VERSION: latest # Test container optimization TESTCONTAINERS_RYUK_DISABLED: TRUE TESTCONTAINERS_CHECKS_DISABLE: TRUE @@ -47,7 +45,7 @@ jobs: NEXUS_USERNAME: $(NEXUS_USERNAME) NEXUS_PASSWORD: $(NEXUS_PASSWORD) displayName: "Push artifacts to Nexus repository" - condition: and(succeeded(), or(eq(variables['build.sourceBranch'], 'refs/heads/main'), startsWith(variables['build.sourceBranch'], 'refs/heads/release-'))) + condition: and(succeeded(), or(eq(variables['build.sourceBranch'], 'refs/heads/main'), startsWith(variables['build.sourceBranch'], 'refs/tags/'))) - task: PublishTestResults@2 inputs: