Skip to content

Commit f104994

Browse files
liornabat-sealightsarjun024
authored andcommitted
Add SL_VERSION environment variable support
Introduce support for the SL_VERSION environment variable in the Sealights configuration. This allows the configuration to include versioning information, enhancing the traceability and management of different builds.
1 parent e98b770 commit f104994

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/python/hooks/sealights.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ func NewSealightsConfig() *SealightsConfig {
4141
BsIdFile: "",
4242
Proxy: "",
4343
LabId: "",
44+
Version: "",
4445
}
4546
}
4647

@@ -57,6 +58,7 @@ func (sc *SealightsConfig) parseSealightsPlan(plan SealightsPlan) *SealightsConf
5758
sc.BsIdFile = sc.getEnv("SL_BUILD_SESSION_ID_FILE", plan.Credentials.BsIdFile)
5859
sc.Proxy = sc.getEnv("SL_PROXY", plan.Credentials.Proxy)
5960
sc.LabId = sc.getEnv("SL_LAB_ID", plan.Credentials.LabId)
61+
sc.Version = sc.getEnv("SL_VERSION", plan.Credentials.Version)
6062
return sc
6163
}
6264

0 commit comments

Comments
 (0)