Skip to content

Commit c202c4c

Browse files
authored
Merge pull request LambdaTest#2473 from surishubham/main
stage PRs
2 parents ae67880 + 204a60c commit c202c4c

4 files changed

+29
-0
lines changed

docs/integrating-lambdaTest-with-jenkins-freestyle-project.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ python google-search-lambdatest.py
4545
```
4646

4747
<img loading="lazy" src={require('../assets/images/integrating-lambdaTest-with-jenkins-freestyle-project/5.webp').default} alt="Image" width="1024" height="484" className="doc_img"/>
48+
49+
:::tip Best Practices
50+
**Build naming**
51+
52+
Define `LT_BUILD_NAME` in your script using `${BUILD_TAG}`, and reference the same in your test capabilities. This ensures that each TestMu AI run is correctly mapped to its corresponding Jenkins build.
53+
:::
54+
4855
**Step 6:** Click on **Apply & Save** to set your configurations and then click on **"Build Now"** to execute your test.
4956

5057
## Test On Locally Hosted Web Applications
@@ -55,3 +62,4 @@ While specifying build environments, check the box to **Use Local Tunnel**. You
5562
<img loading="lazy" src={require('../assets/images/integrating-lambdaTest-with-jenkins-freestyle-project/6.webp').default} alt="Image" width="1024" height="483" className="doc_img"/>
5663

5764
Kudos! That is all you need to know for integrating your Jenkins freestyle project with <BrandName />. In case of any questions, feel free to give us a shout. You can also drop an email to [[email protected]](mailto:[email protected]). Happy testing! :)
65+

docs/integrating-lambdatest-report-with-jenkins-pipeline.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@ It will route you to a Configuration dashboard.
4343

4444
<img loading="lazy" src={require('../assets/images/lambdatestreport-jenkins/enter_script.png').default} alt="Image" width="1919" height="900" className="doc_img img_center"/> <br/>
4545

46+
:::tip Best Practices
47+
**Build naming**
48+
49+
Define `LT_BUILD_NAME` in your Jenkins pipeline using `${BUILD_TAG}`, and reference the same in your test capabilities. This ensures each TestMu AI run is correctly mapped to its corresponding Jenkins build.
50+
51+
**Report publishing**
52+
53+
Add a `post { always { ... } }` block to your pipeline so that the report is generated after every run, regardless of the status.
54+
55+
:::
56+
4657
6. From the *Sample Step* dropdown, select `lambdaTestReportPublisher:LambdaTest Pipeline Report`.
4758

4859
<img loading="lazy" src={require('../assets/images/lambdatestreport-jenkins/reportdrop.png').default} alt="Image" width="1919" height="900" className="doc_img img_center"/> <br/>

docs/integrating-your-jenkins-pipeline-with-lambdatest.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ Refer to our [Github sample repository](https://github.com/LambdaTest/nightwatch
144144
**Step 3:** Scroll down to Advanced Project Options. Paste the Code in the code pane or fetch it via SCM & hit the **Save** button. <img loading="lazy" src={require('../assets/images/uploads/jenkins-pipeline-3.webp').default} alt="Jenkins save button" width="1919" height="906" className="doc_img"/>
145145
**Note:** To run on the tunnel, Either you can use LT_TUNNEL Environment variable to set the tunnelling capability or you can pass in the code. Instructions on the tunnel are written in Repo Readme file.
146146

147+
## Additional Links
148+
149+
- [Integrate TestMu AI With Jenkins Freestyle Project](/support/docs/integrating-testmu-with-jenkins-freestyle-project/)
150+
- [Integrating TestMu AI Report With Jenkins Pipeline](/support/docs/integrating-testmu-report-with-jenkins-pipeline/)
151+
147152
<nav aria-label="breadcrumbs">
148153
<ul className="breadcrumbs">
149154
<li className="breadcrumbs__item">

docs/jenkins-plugin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ When you click on the <BrandName /> Report icon from the left side, a report tab
186186

187187
Kudos! You successfully executed your Selenium test suite using Jenkins with <BrandName /> plugin.
188188

189+
## Additional Links
190+
191+
- [Integrate TestMu AI With Jenkins Freestyle Project](/support/docs/integrating-testmu-with-jenkins-freestyle-project/)
192+
- [Integrating TestMu AI Report With Jenkins Pipeline](/support/docs/integrating-testmu-report-with-jenkins-pipeline/)
193+
189194
<nav aria-label="breadcrumbs">
190195
<ul className="breadcrumbs">
191196
<li className="breadcrumbs__item">

0 commit comments

Comments
 (0)