Skip to content

Commit 50486c1

Browse files
committed
skip kokoro files
1 parent 1f03e0b commit 50486c1

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

monorepo-migration/migrate.sh

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ rm -f "$SOURCE_REPO_NAME/.gitignore"
175175
rm -f "$SOURCE_REPO_NAME/renovate.json"
176176
rm -f "$SOURCE_REPO_NAME/LICENSE"
177177
rm -f "$SOURCE_REPO_NAME/java.header"
178-
rm -rf "$SOURCE_REPO_NAME/.kokoro/continuous" "$SOURCE_REPO_NAME/.kokoro/nightly" "$SOURCE_REPO_NAME/.kokoro/presubmit"
178+
rm -rf "$SOURCE_REPO_NAME/.kokoro"
179+
# rm -rf "$SOURCE_REPO_NAME/.kokoro/continuous" "$SOURCE_REPO_NAME/.kokoro/nightly" "$SOURCE_REPO_NAME/.kokoro/presubmit"
179180
rm -f "$SOURCE_REPO_NAME/codecov.yaml"
180181
rm -f "$SOURCE_REPO_NAME/synth.metadata"
181182
rm -f "$SOURCE_REPO_NAME/license-checks.xml"
@@ -293,18 +294,7 @@ echo "Migrating owlbot.py..."
293294
if [ -f "$SOURCE_DIR/owlbot.py" ]; then
294295
TARGET_OWLBOT="$SOURCE_REPO_NAME/owlbot.py"
295296

296-
# Check for a template owlbot.py to source common excludes from
297-
TEMPLATE_OWLBOT=""
298-
if [ -f "java-workstations/owlbot.py" ]; then
299-
TEMPLATE_OWLBOT="java-workstations/owlbot.py"
300-
echo "Using $TEMPLATE_OWLBOT as template for excludes."
301-
fi
302-
303-
if [ -n "$TEMPLATE_OWLBOT" ]; then
304-
python3 "$TRANSFORM_OWLBOT_SCRIPT" "$TARGET_OWLBOT" "$SOURCE_DIR/owlbot.py" "$TEMPLATE_OWLBOT"
305-
else
306-
python3 "$TRANSFORM_OWLBOT_SCRIPT" "$TARGET_OWLBOT" "$SOURCE_DIR/owlbot.py"
307-
fi
297+
python3 "$TRANSFORM_OWLBOT_SCRIPT" "$TARGET_OWLBOT" "$SOURCE_DIR/owlbot.py"
308298

309299
echo "Committing owlbot.py migration..."
310300
git add "$TARGET_OWLBOT"

monorepo-migration/update_owlbot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ def generate_target_content(excludes, top_level_lines, loop_body_lines, standard
132132
if standard_excludes is None:
133133
standard_excludes = {
134134
".github/*",
135-
".kokoro/*",
136135
"samples/*",
137136
"CODE_OF_CONDUCT.md",
138137
"CONTRIBUTING.md",

0 commit comments

Comments
 (0)