-
Notifications
You must be signed in to change notification settings - Fork 2
/
BuildVersion.typ
33 lines (32 loc) · 1.96 KB
/
BuildVersion.typ
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
TYPE
BuildVersionType : STRUCT (*BuildVersion structure definition*)
Script : BuildVersionScriptType; (*Script member*)
Git : BuildVersionGitType; (*Git member*)
Project : BuildVersionProjectType; (*Project member*)
END_STRUCT;
BuildVersionScriptType : STRUCT (*PowerShell information structure definition*)
BuiltWithGit : BOOL; (*TRUE Git structure and Project structure are updated FALSE Project structure is updated and Git structure is unmodified*)
END_STRUCT;
BuildVersionGitType : STRUCT (*Git information structure definition*)
URL : STRING[255]; (*URL of git server referenced by the default remote "origin"*)
Branch : STRING[80]; (*Current branch checked out by local repository*)
Tag : STRING[80]; (*Latest tag on current branch*)
AdditionalCommits : UINT; (*Additional commits since latest tag*)
Version : STRING[80]; (*<tag>-<add_commits>*)
Sha1 : STRING[80]; (*Full hash value from the latest commit*)
Describe : STRING[80]; (*<tag>-<addn_commits>-g<short_sha1>*)
UncommittedChanges : STRING[80]; (*Example: 5 files changed, 14 insertions(+), 11 deletions(-)*)
ChangeWarning : BOOL := TRUE; (*Uncommitted changes have been detected (true if git or repository is missing)*)
CommitDate : DATE_AND_TIME; (*Local timestamp of the latest commit*)
CommitAuthorName : STRING[80]; (*Name of author of latest commit*)
CommitAuthorEmail : STRING[80]; (*Email of author of latest commit*)
END_STRUCT;
BuildVersionProjectType : STRUCT (*Project information structure definition*)
ASVersion : STRING[80]; (*From $(AS_VERSION), see help for PLC object properties*)
UserName : STRING[80]; (*From $(AS_USER_NAME)*)
ProjectName : STRING[80]; (*From $(AS_PROJECT_NAME)*)
Configuration : STRING[80]; (*From $(AS_CONFIGURATION)*)
BuildMode : STRING[80]; (*From $(AS_BUILD_MODE), see help for possible values - Build, Rebuild, BuildAndTransfer, ...*)
BuildDate : DATE_AND_TIME; (*Local timestamp grabbed by powershell on build*)
END_STRUCT;
END_TYPE