File tree 2 files changed +3
-2
lines changed 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -199,14 +199,15 @@ def is_running_in_evg_pipeline():
199
199
class MissingEnvironmentVariable (Exception ):
200
200
pass
201
201
202
+
202
203
def is_running_in_patch ():
203
204
is_patch = os .environ .get ("is_patch" )
204
205
return is_patch is not None and is_patch .lower () == "true"
205
206
206
207
207
208
def build_id () -> str :
208
209
"""Returns the build id used for the image tag.
209
- The build id is configurable `build_tag_type` and `version_id` in evergreen.
210
+ The build id is configurable `build_tag_type` and `version_id` in evergreen.
210
211
"""
211
212
212
213
build_tag_type = ""
@@ -215,7 +216,6 @@ def build_id() -> str:
215
216
except KeyError :
216
217
pass
217
218
218
- version_id = ""
219
219
try :
220
220
version_id = os .environ ["version_id" ]
221
221
except KeyError :
Original file line number Diff line number Diff line change @@ -325,6 +325,7 @@ def test_create_and_push_manifest_push_error(mock_run):
325
325
assert "Error pushing manifest" in str (exc_info .value )
326
326
assert mock_run .call_count == 2 # Both create and push calls
327
327
328
+
328
329
def test_build_id ():
329
330
from pipeline import build_id
330
331
You can’t perform that action at this time.
0 commit comments