2021-01-20 00:10:14 +02:00
|
|
|
package model
|
|
|
|
|
2022-08-19 19:16:18 +02:00
|
|
|
import (
|
|
|
|
"github.com/mattermost/mattermost-server/v6/shared/mlog"
|
|
|
|
)
|
|
|
|
|
2021-01-20 00:10:14 +02:00
|
|
|
// This is a list of all the current versions including any patches.
|
|
|
|
// It should be maintained in chronological order with most current
|
|
|
|
// release at the front of the list.
|
|
|
|
var versions = []string{
|
2023-06-08 19:43:37 +02:00
|
|
|
"7.8.6",
|
2023-05-08 17:37:38 +02:00
|
|
|
"7.8.5",
|
2023-03-28 17:51:15 +02:00
|
|
|
"7.8.4",
|
2023-03-14 22:34:26 +02:00
|
|
|
"7.8.3",
|
2023-02-13 17:19:36 +02:00
|
|
|
"7.8.2",
|
2023-02-08 22:51:14 +02:00
|
|
|
"7.8.1",
|
2023-01-06 18:58:59 +02:00
|
|
|
"7.8.0",
|
2022-12-02 02:47:31 +02:00
|
|
|
"7.7.0",
|
2022-11-09 14:20:17 +02:00
|
|
|
"7.6.0",
|
2022-10-03 19:55:20 +02:00
|
|
|
"7.5.0",
|
2022-09-09 18:37:03 +02:00
|
|
|
"7.4.0",
|
2022-07-18 20:05:59 +02:00
|
|
|
"7.3.0",
|
2022-05-12 01:25:46 +02:00
|
|
|
"7.2.0",
|
|
|
|
"7.0.0",
|
2022-03-03 00:08:40 +02:00
|
|
|
"0.16.0",
|
2022-02-04 20:21:33 +02:00
|
|
|
"0.15.0",
|
2022-01-06 21:26:35 +02:00
|
|
|
"0.14.0",
|
2021-12-02 00:55:47 +02:00
|
|
|
"0.12.0",
|
2021-11-23 02:15:03 +02:00
|
|
|
"0.11.0",
|
2021-10-22 22:59:05 +02:00
|
|
|
"0.10.0",
|
|
|
|
"0.9.4",
|
|
|
|
"0.9.3",
|
|
|
|
"0.9.2",
|
2021-09-17 21:56:47 +02:00
|
|
|
"0.9.1",
|
2021-08-06 19:37:28 +02:00
|
|
|
"0.9.0",
|
|
|
|
"0.8.2",
|
2021-07-16 19:30:45 +02:00
|
|
|
"0.8.1",
|
2021-07-09 18:36:57 +02:00
|
|
|
"0.8.0",
|
|
|
|
"0.7.3",
|
|
|
|
"0.7.2",
|
|
|
|
"0.7.1",
|
|
|
|
"0.7.0",
|
2021-05-10 21:22:42 +02:00
|
|
|
"0.6.7",
|
2021-04-21 21:56:14 +02:00
|
|
|
"0.6.6",
|
2021-04-13 20:04:22 +02:00
|
|
|
"0.6.5",
|
2021-03-31 20:59:07 +02:00
|
|
|
"0.6.2",
|
2021-03-19 18:59:46 +02:00
|
|
|
"0.6.1",
|
2021-03-08 19:36:14 +02:00
|
|
|
"0.6.0",
|
2021-02-03 00:34:10 +02:00
|
|
|
"0.5.0",
|
2021-01-20 00:10:14 +02:00
|
|
|
}
|
|
|
|
|
2021-03-21 10:28:26 +02:00
|
|
|
var (
|
2021-07-14 15:36:18 +02:00
|
|
|
CurrentVersion = versions[0]
|
2021-03-21 10:28:26 +02:00
|
|
|
BuildNumber string
|
|
|
|
BuildDate string
|
|
|
|
BuildHash string
|
|
|
|
Edition string
|
|
|
|
)
|
2022-08-19 19:16:18 +02:00
|
|
|
|
|
|
|
// LogServerInfo logs information about the server instance.
|
|
|
|
func LogServerInfo(logger mlog.LoggerIFace) {
|
2023-01-24 15:56:47 +02:00
|
|
|
logger.Info("Focalboard server",
|
2022-08-19 19:16:18 +02:00
|
|
|
mlog.String("version", CurrentVersion),
|
|
|
|
mlog.String("edition", Edition),
|
|
|
|
mlog.String("build_number", BuildNumber),
|
|
|
|
mlog.String("build_date", BuildDate),
|
|
|
|
mlog.String("build_hash", BuildHash),
|
|
|
|
)
|
|
|
|
}
|