Skip to content

Commit a7e6df1

Browse files
author
Naresh Sekar
committed
emailer changes
1 parent 6d105d7 commit a7e6df1

File tree

3 files changed

+333
-0
lines changed

3 files changed

+333
-0
lines changed

Diff for: README.md

+17
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ This project uses a In-House package which is published in PyPi for more details
2525
* Multi Thread run
2626
* Snap Mode to replace the response data as the test data
2727
* Static code analyser
28+
* Reports e-mailer using shovel
2829

2930
## Setup
3031
* Clone this repository
@@ -346,6 +347,22 @@ flake8
346347
currently there are `0` vulnerabilities with this project.
347348

348349

350+
## Shovel
351+
352+
Shovel has been added to mail the report status once the run is completed. This will be useful once we integrate with CI and helpful in debugging which commit has caused the actual problem. For more details you could visit the [Shovel file](Shovel/reports.py). (Code refactoring is yet to be done in that file). In Jenkins you could get the following values as environment variables.
353+
354+
```
355+
$BUILD_URL #Directly fetched from ENV variable
356+
$GIT_URL #Directly fetched from ENV variable
357+
$GIT_BRANCH #Directly fetched from ENV variable
358+
$GIT_COMMIT #Directly fetched from ENV variable
359+
$GIT_COMMITER_EMAIL=$(git --no-pager show -s --format='%ae' $GIT_COMMIT)
360+
$REPORTS_EMAIL_RECEIVERS="[email protected];[email protected]" #Or can be taken from parameterized build
361+
362+
#Run the rake task by,
363+
shovel reports.email $REPORTS_EMAIL_RECEIVERS $BUILD_URL $GIT_BRANCH $GIT_COMMIT $GIT_COMMITER_EMAIL
364+
```
365+
349366
## Built With
350367

351368
* [pytest](https://docs.pytest.org/en/latest/) - Core test framework

0 commit comments

Comments
 (0)