Skip to content

Commit 6f7097f

Browse files
committed
chore: strip java- prefix from migrated Kokoro cfg filenames
1 parent dc069a2 commit 6f7097f

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

monorepo-migration/migrate.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -194,40 +194,40 @@ COMMIT_COUNT=$((COMMIT_COUNT + 1))
194194

195195
# 6.4b Migrate GraalVM Native presubmit config if present
196196
if [ -f "$SOURCE_REPO_NAME/.kokoro/presubmit/graalvm-native-a.cfg" ]; then
197-
echo "Migrating graalvm-native-a.cfg to monorepo root .kokoro/presubmit/${SOURCE_REPO_NAME}-graalvm-native-presubmit.cfg..."
197+
echo "Migrating graalvm-native-a.cfg to monorepo root .kokoro/presubmit/${SOURCE_REPO_NAME#java-}-graalvm-native-presubmit.cfg..."
198198
mkdir -p .kokoro/presubmit
199199
sed -e 's/value: "graalvm"/value: "graalvm-single"/' \
200-
"$SOURCE_REPO_NAME/.kokoro/presubmit/graalvm-native-a.cfg" > ".kokoro/presubmit/${SOURCE_REPO_NAME}-graalvm-native-presubmit.cfg"
200+
"$SOURCE_REPO_NAME/.kokoro/presubmit/graalvm-native-a.cfg" > ".kokoro/presubmit/${SOURCE_REPO_NAME#java-}-graalvm-native-presubmit.cfg"
201201

202202
# Append BUILD_SUBDIR
203-
cat <<EOF >> ".kokoro/presubmit/${SOURCE_REPO_NAME}-graalvm-native-presubmit.cfg"
203+
cat <<EOF >> ".kokoro/presubmit/${SOURCE_REPO_NAME#java-}-graalvm-native-presubmit.cfg"
204204
205205
env_vars: {
206206
key: "BUILD_SUBDIR"
207207
value: "${SOURCE_REPO_NAME}"
208208
}
209209
EOF
210-
git add ".kokoro/presubmit/${SOURCE_REPO_NAME}-graalvm-native-presubmit.cfg"
210+
git add ".kokoro/presubmit/${SOURCE_REPO_NAME#java-}-graalvm-native-presubmit.cfg"
211211
git commit -n --no-gpg-sign -m "chore($SOURCE_REPO_NAME): migrate GraalVM Native presubmit config"
212212
COMMIT_COUNT=$((COMMIT_COUNT + 1))
213213
fi
214214

215215
# 6.4c Migrate Integration presubmit config if present
216216
if [ -f "$SOURCE_REPO_NAME/.kokoro/presubmit/integration.cfg" ]; then
217-
echo "Migrating integration.cfg to monorepo root .kokoro/presubmit/${SOURCE_REPO_NAME}-integration.cfg..."
217+
echo "Migrating integration.cfg to monorepo root .kokoro/presubmit/${SOURCE_REPO_NAME#java-}-integration.cfg..."
218218
mkdir -p .kokoro/presubmit
219219
sed -e 's/value: "integration"/value: "integration-single"/' \
220-
"$SOURCE_REPO_NAME/.kokoro/presubmit/integration.cfg" > ".kokoro/presubmit/${SOURCE_REPO_NAME}-integration.cfg"
220+
"$SOURCE_REPO_NAME/.kokoro/presubmit/integration.cfg" > ".kokoro/presubmit/${SOURCE_REPO_NAME#java-}-integration.cfg"
221221

222222
# Append BUILD_SUBDIR
223-
cat <<EOF >> ".kokoro/presubmit/${SOURCE_REPO_NAME}-integration.cfg"
223+
cat <<EOF >> ".kokoro/presubmit/${SOURCE_REPO_NAME#java-}-integration.cfg"
224224
225225
env_vars: {
226226
key: "BUILD_SUBDIR"
227227
value: "${SOURCE_REPO_NAME}"
228228
}
229229
EOF
230-
git add ".kokoro/presubmit/${SOURCE_REPO_NAME}-integration.cfg"
230+
git add ".kokoro/presubmit/${SOURCE_REPO_NAME#java-}-integration.cfg"
231231
git commit -n --no-gpg-sign -m "chore($SOURCE_REPO_NAME): migrate Integration presubmit config"
232232
COMMIT_COUNT=$((COMMIT_COUNT + 1))
233233
fi

0 commit comments

Comments
 (0)