forked from rahulrathore44/KarateFrameworkTutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rahulrathore44
authored and
rahulrathore44
committed
Dec 27, 2020
1 parent
090a2bd
commit 4fad7ad
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
pipeline{ | ||
agent any | ||
|
||
stages{ | ||
stage ('Clean WorkSpace Directory'){ | ||
steps { | ||
//define the single or multiple step | ||
bat 'echo CleanUp Stage' | ||
cleanWs notFailBuild: true | ||
} | ||
} | ||
stage ('Git CheckOut'){ | ||
steps { | ||
//define the single or multiple step | ||
bat 'echo Git Checkout' | ||
checkout([$class: 'GitSCM', branches: [[name: '**']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/rahulrathore44/KarateFrameworkTutorial.git']]]) | ||
} | ||
|
||
} | ||
stage ('Restore Packages'){ | ||
steps { | ||
//define the single or multiple step | ||
bat 'echo Restore Package' | ||
} | ||
} | ||
stage ('Build'){ | ||
steps { | ||
//define the single or multiple step | ||
bat 'echo Build' | ||
bat 'mvn clean compile' | ||
|
||
} | ||
} | ||
stage ('Deploy'){ | ||
steps { | ||
bat 'echo Deploying the application..' | ||
} | ||
} | ||
stage ('Run the Test') { | ||
steps { | ||
//define the single or multiple step | ||
bat 'echo Test Execution Started' | ||
bat 'mvn -P prod test' | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
junit 'target/surefire-reports/*.xml' | ||
cucumber failedFeaturesNumber: -1, failedScenariosNumber: -1, failedStepsNumber: -1, fileIncludePattern: '**/*.json', jsonReportDirectory: 'target/surefire-reports', pendingStepsNumber: -1, reportTitle: 'Karate Test Execution', skipEmptyJSONFiles: true, skippedStepsNumber: -1, sortingMethod: 'ALPHABETICAL', undefinedStepsNumber: -1 | ||
} | ||
|
||
} | ||
} |