Skip to content

Add KDP gating block to semaphore.yml #69

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
24 changes: 24 additions & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,30 @@ blocks:
- git clone --branch master --single-branch [email protected]:confluentinc/connect-releases.git
- ./connect-releases/tasks/release-connect-plugins/generate-connect-changelogs.sh

# This is auto-managed by connect-ci-cd-pipelines semaphore task, to disable please reach out on slack #connect-testability
- name: Connector Kafka Docker Playground Test
dependencies: []
run:
# Run this block only for pull requests
when: "pull_request =~ '.*'"
task:
jobs:
- name: Trigger Kafka Docker Playground Test
commands:
# Don't run this block if target branch for PR is not a nightly branch or master branch
- |
if [[ "$SEMAPHORE_GIT_BRANCH" =~ ^[0-9]+\.[0-9]+\.x$ ]] || [[ "$SEMAPHORE_GIT_BRANCH" == "master" ]] ; then \
echo "PR is targeted to ${SEMAPHORE_GIT_BRANCH} branch which is feature or master branch. Triggering run-kdp-matrix-on-pr-builds task."; \
sem-trigger -p connect-ci-cd-pipelines \
-t run-kdp-matrix-on-pr-builds \
-b master \
-i "REPO_NAME:$(basename $SEMAPHORE_GIT_REPO_SLUG)" \
-i "BRANCH_NAME:${SEMAPHORE_GIT_PR_BRANCH}" \
-w
else \
echo "PR is targeted to ${SEMAPHORE_GIT_BRANCH} branch which is not feature or master branch. Skipping Kafka Docker Playground Test Task."; \
fi;

after_pipeline:
task:
agent:
Expand Down