File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,24 +11,24 @@ pipeline {
11
11
12
12
stage(' Set Up Python' ) {
13
13
steps {
14
- // Set up Python environment
15
- sh ' python3 -m venv venv'
16
- sh ' . venv/bin/ activate && pip install -r requirements.txt'
14
+ // Set up Python environment for Windows
15
+ bat ' python -m venv venv'
16
+ bat ' .\\ venv\\ Scripts \\ activate && pip install -r requirements.txt'
17
17
}
18
18
}
19
19
20
20
stage(' Run Tests' ) {
21
21
steps {
22
22
// Run pytest and generate HTML report
23
- sh ' . venv/bin/ activate && pytest -v -s --html=reports/ Test_Execution_Report.html'
23
+ bat ' .\\ venv\\ Scripts \\ activate && pytest -v -s --html=reports\\ Test_Execution_Report.html'
24
24
}
25
25
}
26
26
}
27
27
28
28
post {
29
29
always {
30
30
// Archive test reports
31
- archiveArtifacts artifacts : ' reports/ Test_Execution_Report.html' , fingerprint : true
31
+ archiveArtifacts artifacts : ' reports\\ Test_Execution_Report.html' , fingerprint : true
32
32
}
33
33
}
34
34
}
You can’t perform that action at this time.
0 commit comments