Skip to content

Commit

Permalink
RHDH release 1.4 ci jobs setup
Browse files Browse the repository at this point in the history
  • Loading branch information
subhashkhileri committed Nov 29, 2024
1 parent b7db8b5 commit a16fba8
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
build_root:
project_image:
dockerfile_literal: |
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.16
RUN yum -y install make wget gcc git httpd-tools
image_stream_tag:
name: release
namespace: openshift
tag: golang-1.20
use_build_cache: true
images:
- context_dir: .ibm/images
dockerfile_path: Dockerfile
to: showcase-e2e-runner
releases:
initial:
integration:
name: "4.13"
namespace: ocp
latest:
integration:
include_built_images: true
name: "4.13"
namespace: ocp
release:
architecture: amd64
channel: fast
version: "4.15"
resources:
'*':
limits:
Expand All @@ -31,7 +28,7 @@ tests:
test:
- ref: janus-idp-backstage-showcase-release-1.4
- as: e2e-tests-nightly
cron: 0 6 * * *
cron: 0 4 * * *
steps:
test:
- ref: janus-idp-backstage-showcase-release-1.4-nightly
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
periodics:
- agent: kubernetes
cluster: build03
cron: 0 6 * * *
cron: 0 4 * * *
decorate: true
decoration_config:
skip_cloning: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ NAME_SPACE_POSTGRES_DB=postgress-external-db-1-4-x
QUAY_REPO="janus-idp/backstage-showcase"

# Clone and checkout the specific PR
git clone "https://github.com/${GITHUB_ORG_NAME}/${GITHUB_REPOSITORY_NAME}.git"
# git clone "https://github.com/${GITHUB_ORG_NAME}/${GITHUB_REPOSITORY_NAME}.git"
git clone "https://github.com/subhashkhileri/backstage-showcase.git"
cd backstage-showcase || exit
git checkout "release-1.4" || exit
git checkout "rhdh-release-1-4-jobs" || exit

git config --global user.name "rhdh-qe"
git config --global user.email "[email protected]"
Expand All @@ -35,20 +36,20 @@ if [ "$JOB_TYPE" == "presubmit" ] && [[ "$JOB_NAME" != rehearse-* ]]; then
IMAGE_NAME="${GITHUB_ORG_NAME}/${GITHUB_REPOSITORY_NAME}:${TAG_NAME}"
fi

PR_CHANGESET=$(git diff --name-only release-1.4)
echo "Changeset: $PR_CHANGESET"
# PR_CHANGESET=$(git diff --name-only release-1.4)
# echo "Changeset: $PR_CHANGESET"

# Directories to check if changes are exclusively within the specified directories
DIRECTORIES_TO_CHECK=".ibm|e2e-tests"
ONLY_IN_DIRS=true

for change in $PR_CHANGESET; do
# Check if the change is not within the specified directories
if ! echo "$change" | grep -qE "^($DIRECTORIES_TO_CHECK)/"; then
ONLY_IN_DIRS=false
break
fi
done
# for change in $PR_CHANGESET; do
# # Check if the change is not within the specified directories
# if ! echo "$change" | grep -qE "^($DIRECTORIES_TO_CHECK)/"; then
# ONLY_IN_DIRS=false
# break
# fi
# done

if $ONLY_IN_DIRS || [[ "$JOB_NAME" == rehearse-* ]]; then
echo "Skipping wait for new PR image and proceeding with image tag : 1.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ ref:
name: rhdh
namespace: test-credentials
from: showcase-e2e-runner
grace_period: 5m
resources:
limits:
memory: 6Gi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ref:
- name: OC_CLIENT_VERSION
default: stable-4.16
from: showcase-e2e-runner
grace_period: 5m
resources:
limits:
memory: 6Gi
Expand Down

0 comments on commit a16fba8

Please sign in to comment.