This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 4397c09bc0d7 [SPARK-45848][BUILD] Make `spark-version-info.properties`
generated by `spark-build-info.ps1` include `docroot`
4397c09bc0d7 is described below
commit 4397c09bc0d79fe70bcc8253d584684b84d3b768
Author: yangjie01 <[email protected]>
AuthorDate: Sun Nov 12 14:50:15 2023 -0800
[SPARK-45848][BUILD] Make `spark-version-info.properties` generated by
`spark-build-info.ps1` include `docroot`
### What changes were proposed in this pull request?
The `spark-version-info.properties` generated by `spark-build-info` include
`docroot=https://spark.apache.org/docs/latest`, this pr make
`spark-version-info.properties` generated by `spark-build-info.ps1` also
include `docroot` part.
### Why are the changes needed?
Keep the items generated by `spark-build-info` and `spark-build-info.ps1`
consistent
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Manual verification with this pr:
- `spark-version-info.properties` generated by `spark-build-info`
```
version=4.0.0-SNAPSHOT
user=yangjie01
revision=d92f634bdaf8d040b7c7a5ca675db3cb265486b5
branch=SPARK-45848
date=2023-11-09T06:21:05Z
url=gitgithub.com:LuciferYang/spark.git
docroot=https://spark.apache.org/docs/latest
```
- `spark-version-info.properties` generated by `spark-build-info.ps1`
```
version=4.0.0-SNAPSHOT
user=yangjie01
revision=d92f634bdaf8d040b7c7a5ca675db3cb265486b5
branch=SPARK-45848
date=2023-11-09T06:22:25Z
url=gitgithub.com:LuciferYang/spark.git,
docroot=https://spark.apache.org/docs/latest
```
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #43726 from LuciferYang/SPARK-45848.
Lead-authored-by: yangjie01 <[email protected]>
Co-authored-by: YangJie <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
build/spark-build-info.ps1 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/build/spark-build-info.ps1 b/build/spark-build-info.ps1
index 43db8823340c..def98fec85f5 100644
--- a/build/spark-build-info.ps1
+++ b/build/spark-build-info.ps1
@@ -41,6 +41,7 @@ user=$($Env:USERNAME)
revision=$(git rev-parse HEAD)
branch=$(git rev-parse --abbrev-ref HEAD)
date=$([DateTime]::UtcNow | Get-Date -UFormat +%Y-%m-%dT%H:%M:%SZ)
-url=$(git config --get remote.origin.url)"
+url=$(git config --get remote.origin.url),
+docroot=https://spark.apache.org/docs/latest"
Set-Content -Path $SparkBuildInfoPath -Value $SparkBuildInfoContent
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]