diff options
author | 2015-07-07 16:30:59 +0000 | |
---|---|---|
committer | 2015-07-08 11:40:42 +0000 | |
commit | 1314570a4d9094c6157f8e1cfe4b31e61b01a1fb (patch) | |
tree | 7d97a9e95133f1f97883232959cf9f509b708eb1 /src/main/java/com/google/devtools/build/lib/analysis | |
parent | 5a9ec720d1224f1360fa2bf732a869a22c17afc1 (diff) |
Introduce hook to BazelWorkspaceStatusModule that calls external
script(controled by workspace_status_command option, default to
tools/buildstamp/get_workspace_status) to emit addtional workspace
information to stable-status.txt.
This should address #216.
--
Change-Id: Iffb06482489f0d55393e27b0764e6e127fedbc20
Reviewed-on: https://bazel-review.git.corp.google.com/#/c/1550
MOS_MIGRATED_REVID=97678871
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/analysis')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/analysis/BuildInfo.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/BuildInfo.java b/src/main/java/com/google/devtools/build/lib/analysis/BuildInfo.java index 65cdbf6f16..2972e46103 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/BuildInfo.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/BuildInfo.java @@ -38,4 +38,14 @@ public class BuildInfo { * Build time as milliseconds since epoch */ public static final String BUILD_TIMESTAMP = "BUILD_TIMESTAMP"; + + /** + * The revision of source tree reported by source control system + */ + public static final String BUILD_SCM_REVISION = "BUILD_SCM_REVISION"; + + /** + * The status of source tree reported by source control system + */ + public static final String BUILD_SCM_STATUS = "BUILD_SCM_STATUS"; } |