Skip to content

Instantly share code, notes, and snippets.

@pgtoopx
Created May 7, 2019 18:58
Show Gist options
  • Select an option

  • Save pgtoopx/d8a8355c9f62194761b7f1e4180f4dc4 to your computer and use it in GitHub Desktop.

Select an option

Save pgtoopx/d8a8355c9f62194761b7f1e4180f4dc4 to your computer and use it in GitHub Desktop.
pipeline {
agent {
docker {
image 'markhobson/maven-chrome'
}
}
stages {
stage('Download Feature Files'){
steps {
downloadFeatureFiles serverAddress: 'http://rutadelservidor:puertodelservidor',
projectKey: 'keydelproyecto',
targetPath:'src/test/resources/features'
}
}
stage('Clean Work Space'){
steps {
sh 'mvn clean'
}
}
stage('Integration Test') {
steps {
sh 'mvn install'
}
}
}
post {
always {
archiveArtifacts(artifacts: 'target/', fingerprint: true)
junit 'target/cucumber.xml'
publishTestResults serverAddress: 'http://rutadelservidor:puertodelservidor',
projectKey: 'keydelproyecto',
filePath:'target/cucumber-report/cucumber.json',
format: 'Cucumber',
autoCreateTestCases: false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment