This is an automated email from the ASF dual-hosted git repository.
bnolsen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/trafficserver-ci.git
The following commit(s) were added to refs/heads/main by this push:
new 63380b4 simplify setting json contents for CMakeUserPresets.json
(#322)
63380b4 is described below
commit 63380b43fd12e3843d7f10a429ed1aa81a5728ea
Author: Brian Olsen <[email protected]>
AuthorDate: Fri Mar 8 14:29:34 2024 -0700
simplify setting json contents for CMakeUserPresets.json (#322)
---
jenkins/bin/cmake.sh | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/jenkins/bin/cmake.sh b/jenkins/bin/cmake.sh
index 1e4e412..c3f69cc 100755
--- a/jenkins/bin/cmake.sh
+++ b/jenkins/bin/cmake.sh
@@ -57,17 +57,17 @@ done
# comma separate
inherits=$(sed 's/ /, /g' <<< "${farray[@]}")
-read -d '' contents << EOF
+contents="
{
- "version": 2,
- "configurePresets": [
+ \"version\": 2,
+ \"configurePresets\": [
{
- "name": "branch-user-preset",
- "inherits": [${inherits}]
+ \"name\": \"branch-user-preset\",
+ \"inherits\": [${inherits}]
}
]
}
-EOF
+"
echo "${contents}" > CMakeUserPresets.json