Skip to content

Commit 5f49fc2

Browse files
authored
Merge pull request #628 from loganharbour/civet_event_id
Set `CIVET_EVENT_ID` in job environment
2 parents c18aedb + d11ab4c commit 5f49fc2

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎ci/client/views.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ def get_job_info(job):
263263
'CIVET_HEAD_SHA': job.event.head.sha,
264264
'CIVET_HEAD_SSH_URL': str(job.event.head.ssh_url),
265265
'CIVET_EVENT_CAUSE': job.recipe.cause_str(),
266+
'CIVET_EVENT_ID': job.event.pk,
266267
'CIVET_BUILD_CONFIG': job.config.name,
267268
'CIVET_INVALIDATED': str(job.invalidated),
268269
'CIVET_NUM_STEPS': '0'

‎client/tests/claim_response.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"CIVET_BUILD_CONFIG": "testBuildConfig",
1212
"CIVET_COMMENTS_URL": "None",
1313
"CIVET_EVENT_CAUSE": "Pull request",
14+
"CIVET_EVENT_ID": 1,
1415
"CIVET_HEAD_REF": "testBranch",
1516
"CIVET_HEAD_REPO": "testUser/testRepo",
1617
"CIVET_HEAD_SHA": "1234",

‎client/tests/claimed_job.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"CIVET_BASE_SHA": "2345",
1010
"CIVET_BASE_SSH_URL": "",
1111
"CIVET_EVENT_CAUSE": "Pull request",
12+
"CIVET_EVENT_ID": 1,
1213
"CIVET_COMMENTS_URL": "None",
1314
"CIVET_BUILD_CONFIG": "testBuildConfig",
1415
"CIVET_HEAD_REF": "testBranch",

0 commit comments

Comments
 (0)