Skip to content

Commit

Permalink
Added the pipeline configuration
Browse files Browse the repository at this point in the history
  • 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.
54 changes: 54 additions & 0 deletions JenkinsfileProd
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
}

}
}

0 comments on commit 4fad7ad

Please sign in to comment.