We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4865489 commit 83356fbCopy full SHA for 83356fb
Jenkinsfile
@@ -0,0 +1,23 @@
1
+pipeline {
2
+ agent any
3
+ parameters {
4
+ string(name: 'baseUrl', defaultValue: 'https://rahulshettyacademy.com', description: 'Base URL for API tests')
5
+ }
6
+ stages {
7
+ stage('Checkout') {
8
+ steps {
9
+ git url: 'https://github.com/spy235/RestAssured-Framework', branch: 'main'
10
11
12
+ stage('Run Tests') {
13
14
+ sh "mvn clean test -DbaseUrl=${params.baseUrl}"
15
16
17
+ stage('Publish Report') {
18
19
+ publishHTML([reportDir: 'target', reportFiles: 'ExtentReport.html', reportName: 'API Test Report'])
20
21
22
23
+}
0 commit comments