-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7db8b5
commit a16fba8
Showing
5 changed files
with
25 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...jobs/janus-idp/backstage-showcase/janus-idp-backstage-showcase-release-1.4-periodics.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]" | ||
|
@@ -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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters