Skip to content

Commit cfe315b

Browse files
authored
Revert "Update Kokoro config to include Wear"
1 parent 6d76ae4 commit cfe315b

File tree

6 files changed

+56
-66
lines changed

6 files changed

+56
-66
lines changed

build.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,21 @@ collect_artifacts() {
123123
cp "${aab_path}" "${artifact_dest_dir}/${aab_dest_file}"
124124
echo "SUCCESS: AAB copied to ${artifact_dest_dir}"
125125

126+
# Find and list the files before copying
127+
# Store the find results in a variable to avoid running find twice
128+
# and to handle the case where no files are found gracefully.
129+
local intoto_files
130+
intoto_files=$(find . -type f -name "*.intoto.jsonl")
131+
132+
if [ -n "$intoto_files" ]; then
133+
echo "INFO: Found the following .intoto.jsonl files:"
134+
echo "$intoto_files" # This will list each file on a new line
135+
echo "INFO: Copying .intoto.jsonl files to ${artifact_dest_dir}/"
136+
# Use print0 and xargs -0 for safe handling of filenames with spaces or special characters
137+
find . -type f -name "*.intoto.jsonl" -print0 | xargs -0 -I {} cp {} "${artifact_dest_dir}/"
138+
else
139+
echo "INFO: No .intoto.jsonl files found."
140+
fi
126141
else
127142
echo "FAILURE: AAB not found at ${aab_path}"
128143
exit 1

build_presubmit.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,21 @@ collect_artifacts() {
125125
cp "${aab_path}" "${artifact_dest_dir}/${aab_dest_file}"
126126
echo "SUCCESS: AAB copied to ${artifact_dest_dir}"
127127

128+
# Find and list the files before copying
129+
# Store the find results in a variable to avoid running find twice
130+
# and to handle the case where no files are found gracefully.
131+
local intoto_files
132+
intoto_files=$(find . -type f -name "*.intoto.jsonl")
133+
134+
if [ -n "$intoto_files" ]; then
135+
echo "INFO: Found the following .intoto.jsonl files:"
136+
echo "$intoto_files" # This will list each file on a new line
137+
echo "INFO: Copying .intoto.jsonl files to ${artifact_dest_dir}/"
138+
# Use print0 and xargs -0 for safe handling of filenames with spaces or special characters
139+
find . -type f -name "*.intoto.jsonl" -print0 | xargs -0 -I {} cp {} "${artifact_dest_dir}/"
140+
else
141+
echo "INFO: No .intoto.jsonl files found."
142+
fi
128143
else
129144
echo "FAILURE: AAB not found at ${aab_path}"
130145
exit 1

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
# build
3-
appVersionCode = "7"
4-
appVersionName = "1.1.5"
3+
appVersionCode = "6"
4+
appVersionName = "1.1.4"
55
agp = "8.11.1"
66
bcpkixJdk18on = "1.81"
77
compileSdk = "36"
Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,12 @@
11
build_file: "androidify/kokoro/gcp_ubuntu_docker/kokoro_build.sh"
22

3-
4-
fileset_artifacts {
5-
name: "androidify_phone_aab"
6-
artifact_globs: "artifacts/app-release-unsigned.aab"
7-
artifact_globs: "artifacts/app-release.spdx.json"
8-
destinations {
9-
store_attestation: true
10-
gcs {
11-
gcs_root_path: "androidify-app-prod-kokoro-artifacts/gcp_ubuntu_docker/continuous/mobile"
12-
}
3+
action {
4+
define_artifacts {
5+
regex: "artifacts/**.aab"
6+
regex: "artifacts/**.intoto.jsonl"
7+
sbom_regex: "artifacts/app-release.spdx.json"
8+
# Optional: Removes the "artifacts/" part from the path in the artifact storage
9+
strip_prefix: "artifacts"
10+
fail_if_no_artifacts: true
1311
}
1412
}
15-
16-
# Fileset for the Wear OS App AAB
17-
fileset_artifacts {
18-
name: "androidify_wear_aab"
19-
artifact_globs: "artifacts/wear-release-unsigned.aab"
20-
destinations {
21-
store_attestation: true
22-
gcs {
23-
gcs_root_path: "androidify-app-prod-kokoro-artifacts/gcp_ubuntu_docker/continuous/wear"
24-
}
25-
}
26-
}
27-
Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,12 @@
11
build_file: "androidify/kokoro/gcp_ubuntu_docker/kokoro_presubmit_build.sh"
22

3-
fileset_artifacts {
4-
name: "androidify_phone_aab"
5-
artifact_globs: "artifacts/app-release-unsigned.aab"
6-
artifact_globs: "artifacts/app-release.spdx.json"
7-
destinations {
8-
store_attestation: true
9-
gcs {
10-
gcs_root_path: "androidify-app-prod-kokoro-artifacts/gcp_ubuntu_docker/presubmit/mobile"
11-
}
12-
}
13-
}
14-
15-
# Fileset for the Wear OS App AAB
16-
fileset_artifacts {
17-
name: "androidify_wear_aab"
18-
artifact_globs: "artifacts/wear-release-unsigned.aab"
19-
destinations {
20-
store_attestation: true
21-
gcs {
22-
gcs_root_path: "androidify-app-prod-kokoro-artifacts/gcp_ubuntu_docker/presubmit/wear"
23-
}
3+
action {
4+
define_artifacts {
5+
regex: "artifacts/**.aab"
6+
regex: "artifacts/**.intoto.jsonl"
7+
sbom_regex: "artifacts/app-release.spdx.json"
8+
# Optional: Removes the "artifacts/" part from the path in the artifact storage
9+
strip_prefix: "artifacts"
10+
fail_if_no_artifacts: true
2411
}
2512
}
Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,13 @@
11
build_file: "androidify/kokoro/gcp_ubuntu_docker/kokoro_build.sh"
22

3-
fileset_artifacts {
4-
name: "androidify_phone_aab"
5-
artifact_globs: "artifacts/app-release-unsigned.aab"
6-
artifact_globs: "artifacts/app-release.spdx.json"
7-
destinations {
8-
store_attestation: true
9-
gcs {
10-
gcs_root_path: "androidify-app-prod-kokoro-artifacts/gcp_ubuntu_docker/release/mobile"
11-
}
12-
}
13-
}
3+
action {
4+
define_artifacts {
5+
regex: "artifacts/**.aab"
6+
regex: "artifacts/**.intoto.jsonl"
7+
sbom_regex: "artifacts/app-release.spdx.json"
148

15-
# Fileset for the Wear OS App AAB
16-
fileset_artifacts {
17-
name: "androidify_wear_aab"
18-
artifact_globs: "artifacts/wear-release-unsigned.aab"
19-
destinations {
20-
store_attestation: true
21-
gcs {
22-
gcs_root_path: "androidify-app-prod-kokoro-artifacts/gcp_ubuntu_docker/release/wear"
23-
}
9+
# Optional: Removes the "artifacts/" part from the path in the artifact storage
10+
strip_prefix: "artifacts"
11+
fail_if_no_artifacts: true
2412
}
2513
}

0 commit comments

Comments
 (0)